Skip to content

Commit

Permalink
final formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
christoukmaji committed Sep 18, 2023
1 parent 4c81d7d commit 659fd9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def convertAgentOutputToString(sample_output: dict) -> str:
final_string = ""
for action in sample_output['intermediate_steps']:
final_string += action[0].tool + ": " + \
action[0].tool_input + ": " + action[0].log + \
": \n\n" + action[1] + "\n\n"
action[0].tool_input + "\n" + action[0].log + \
"\n\n" + action[1] + "\n\n"
final_string += "Final Answer: \n\n" + sample_output['output']

return final_string

0 comments on commit 659fd9c

Please sign in to comment.