refactor(agent_builder, custom_tools): simplify tool configuration handling and ensure parameter defaults

This commit is contained in:
Davidson Gomes
2025-05-09 20:42:30 -03:00
parent 9deeb02df8
commit b32a044cac
4 changed files with 45 additions and 23 deletions

View File

@@ -32,8 +32,7 @@ class AgentBuilder:
"""Create an LLM agent from the agent data."""
# Get custom tools from the configuration
custom_tools = []
if agent.config.get("tools"):
custom_tools = self.custom_tool_builder.build_tools(agent.config["tools"])
custom_tools = self.custom_tool_builder.build_tools(agent.config)
# Get MCP tools from the configuration
mcp_tools = []