TinyAgent
As part of the bare bones library, we provide our own Python implementation based on HuggingFace Tiny Agents.
You can find it in any_agent.frameworks.tinyagent.
Examples
Section titled “Examples”Use MCP Tools
Section titled “Use MCP Tools”from any_agent import AnyAgent, AgentConfigfrom any_agent.config import MCPStdio
agent = AnyAgent.create( "tinyagent", AgentConfig( model_id="mistral:mistral-small-latest", instructions="You must use the available tools to find an answer", tools=[ MCPStdio( command="uvx", args=["duckduckgo-mcp-server"] ) ] ))
result = agent.run( "Which Agent Framework is the best??")print(result.final_output)