Update units/en/unit2/smolagents/tools.mdx

This commit is contained in:
Sergio Paniego Blanco
2025-04-03 15:04:01 +02:00
committed by GitHub
parent 37a593fb62
commit 14f42c776d

View File

@@ -292,7 +292,7 @@ server_parameters = StdioServerParameters(
env={"UV_PYTHON": "3.12", **os.environ},
)
with ToolCollection.from_mcp(server_parameters) as tool_collection:
with ToolCollection.from_mcp(server_parameters, trust_remote_code=True) as tool_collection:
agent = CodeAgent(tools=[*tool_collection.tools], model=model, add_base_tools=True)
agent.run("Please find a remedy for hangover.")
```