mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-24 14:15:17 +02:00
update format_exps
This commit is contained in:
parent
a2bb67a1f0
commit
f61506bd32
1 changed files with 2 additions and 1 deletions
|
|
@ -25,7 +25,8 @@ class BaseContextBuilder(BaseModel, ABC):
|
|||
|
||||
result = []
|
||||
for i, exp in enumerate(self.exps, start=1):
|
||||
result.append(f"{i}. " + EXP_TEMPLATE.format(req=exp.req, resp=exp.resp, score=exp.metric.score.val))
|
||||
score_val = exp.metric.score.val if exp.metric and exp.metric.score else "N/A"
|
||||
result.append(f"{i}. " + EXP_TEMPLATE.format(req=exp.req, resp=exp.resp, score=score_val))
|
||||
|
||||
return "\n".join(result)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue