Update units/en/unit2/smolagents/tools.mdx
This commit is contained in:
committed by
GitHub
parent
37a593fb62
commit
14f42c776d
@@ -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.")
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user