Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
weizjajj committed Jul 11, 2024
1 parent 8bcf3b1 commit 3ec6e25
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ def on_tool_end(
"""If not the final action, print out observation."""
if observation_prefix is not None:
self.queueStream.put_nowait({
" type": "ReAct",
"type": "ReAct",
"data": {
"output": '\n' + observation_prefix + output,
"agent_info": self.agent_info
}
})
else:
self.queueStream.put_nowait({
" type": "ReAct",
"type": "ReAct",
"data": {
"output": '\n Observation:' + output,
"agent_info": self.agent_info
Expand All @@ -83,7 +83,7 @@ def on_agent_finish(
) -> None:
"""Run on agent end."""
self.queueStream.put_nowait({
" type": "ReAct",
"type": "ReAct",
"data": {
"output": '\nThought:' + finish.output,
"agent_info": self.agent_info
Expand Down

0 comments on commit 3ec6e25

Please sign in to comment.