Post
2512
Two lines in your terminal and you have an AI agent running whatever model and tools you want π€―
Just tried the new Tiny Agents in Python. Asked it which team won the Italian Serie A soccer league and to export the final table to CSV. Coolest thing is you can interact with the agent, guide it, and correct its mistakes.
The agent connected to web browsing tools, searched for Serie A standings, identified the champion, and generated a CSV export.
The setup:
That's it. The MCP protocol handles all the tool integrations automatically - no custom APIs to write, no complex setups. Want file system access? It's already there. Need web browsing? Built in.
You can swap models, change inference providers, run local models, or add new tools just by editing a simple JSON config. You can also use Gradio Spaces as MCP servers! The entire agent is ~70 lines of Python - essentially a while loop that streams responses and executes tools. Everything is open-source. β€οΈ Hugging Face
Blog post: https://huggingface.co/blog/python-tiny-agents
Just tried the new Tiny Agents in Python. Asked it which team won the Italian Serie A soccer league and to export the final table to CSV. Coolest thing is you can interact with the agent, guide it, and correct its mistakes.
The agent connected to web browsing tools, searched for Serie A standings, identified the champion, and generated a CSV export.
The setup:
pip install "huggingface_hub[mcp]>=0.32.0"
tiny-agents run
That's it. The MCP protocol handles all the tool integrations automatically - no custom APIs to write, no complex setups. Want file system access? It's already there. Need web browsing? Built in.
You can swap models, change inference providers, run local models, or add new tools just by editing a simple JSON config. You can also use Gradio Spaces as MCP servers! The entire agent is ~70 lines of Python - essentially a while loop that streams responses and executes tools. Everything is open-source. β€οΈ Hugging Face
Blog post: https://huggingface.co/blog/python-tiny-agents