Skip to content

Commit 12b6d50

Browse files
black formatting.
1 parent f8a5a3c commit 12b6d50

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/agentlab/agents/tool_use_agent/tool_use_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def get_action(self, obs: Any) -> float:
490490
# This avoids the assertion error with self.llm.user().add_responded_tool_calls(tool_calls)
491491
msg = self.llm.msg("tool")
492492
msg.responded_tool_calls = response.tool_calls
493-
messages.append(msg)
493+
messages.append(msg)
494494

495495
agent_info = bgym.AgentInfo(
496496
think=think,

src/agentlab/llm/response_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ def to_markdown(self) -> str:
151151
# Tool call markdown repr
152152
if self.responded_tool_calls is not None:
153153
for i, tool_call in enumerate(self.responded_tool_calls.tool_calls, 1):
154-
parts.append(f"\n**Tool Call {i}**: {tool_call_to_python_code(tool_call.name, tool_call.arguments)}")
154+
parts.append(
155+
f"\n**Tool Call {i}**: {tool_call_to_python_code(tool_call.name, tool_call.arguments)}"
156+
)
155157
response = tool_call.tool_response
156158
if response is not None:
157159
parts.append(f"\n**Tool Response {i}:**")

0 commit comments

Comments
 (0)