You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the ToolCallingAgent.step() method, when tool_name == "final_answer", memory_step.action_output is assigned the value of final_answer and is returned. However, when tool_name != "final_answer", memory_step.action_output is not assigned a value.
classToolCallingAgent(MultiStepAgent):
defstep(self, memory_step: ActionStep) ->Union[None, Any]:
iftool_name=="final_answer":
# ✅ action_output is assigned.memory_step.action_output=final_answerreturnfinal_answerelse:
# ❓ Why is action_output not assigned?memory_step.observations=updated_informationreturnNone
This discussion was converted from issue #1025 on March 19, 2025 11:43.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In the ToolCallingAgent.step() method, when tool_name == "final_answer", memory_step.action_output is assigned the value of final_answer and is returned. However, when tool_name != "final_answer", memory_step.action_output is not assigned a value.
Beta Was this translation helpful? Give feedback.
All reactions