Agno + x711: lightweight Python agents with pay-per-use tools
Agno (formerly Phidata) is a minimal Python agent framework focused on production simplicity. x711 gives it real-time tools with a single HTTP function.
Install
pip install agno openai requests
Enter fullscreen mode
Exit fullscreen mode
Get key: curl -X POST https://x711.io/api/onboard -d '{"name":"agno-agent"}'
Tools as plain functions
import requests from agno.agent import Agent from agno.models.openai import OpenAIChat
X711_KEY = " x711_your_key_here "
def web_search ( query : str ) -> str : """ Search the live web for real-time information. """ r = requests . post ( " https://x711.io/api/refuel " , headers = { " X-API-Key " : X711_KEY }, json = { " tool " : " web_search " , " query " : query }, timeout = 15 , ) return str ( r . json ())
def price_feed ( assets : list [ str ]) -> str : """ Get live crypto prices. Always free. Pass list of symbols like [ ' ETH ' , ' BTC ' ]. """ r = requests .…