Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
feat: improve tool execution logging (fix #10)
Manusf61e7a596870
diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.pyindex 6fe2cfd48..1d2b0708d 100644--- a/nanobot/agent/loop.py+++ b/nanobot/agent/loop.py@@ -189,7 +189,8 @@ class AgentLoop:# Execute toolsfor tool_call in response.tool_calls:- logger.debug(f"Executing tool: {tool_call.name}")+ args_str = json.dumps(tool_call.arguments)+ logger.debug(f"Executing tool: {tool_call.name} with arguments: {args_str}")result = await self.tools.execute(tool_call.name, tool_call.arguments)messages = self.context.add_tool_result(messages, tool_call.id, tool_call.name, result@@ -281,7 +282,8 @@ class AgentLoop:)for tool_call in response.tool_calls:- logger.debug(f"Executing tool: {tool_call.name}")+ args_str = json.dumps(tool_call.arguments)+ logger.debug(f"Executing tool: {tool_call.name} with arguments: {args_str}")result = await self.tools.execute(tool_call.name, tool_call.arguments)messages = self.context.add_tool_result(messages, tool_call.id, tool_call.name, result