We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe37bb8 commit 72feab7Copy full SHA for 72feab7
src/agentlab/agents/tool_use_agent/tool_use_agent.py
@@ -486,8 +486,11 @@ def get_action(self, obs: Any) -> float:
486
tools_msg = MessageBuilder("tool_description").add_text(tools_str)
487
488
# Adding these extra messages to visualize in gradio
489
- messages.insert(0, tools_msg) # insert at the beginning of the messages
490
- messages.append(response.tool_calls)
+ messages.insert(0, tools_msg) # insert at the beginning of the message
+ # This avoids the assertion error with self.llm.user().add_responded_tool_calls(tool_calls)
491
+ msg = self.llm.msg("tool")
492
+ msg.responded_tool_calls = response.tool_calls
493
+ messages.append(msg)
494
495
agent_info = bgym.AgentInfo(
496
think=think,
0 commit comments