Menu

Post image 1
Post image 2
1 / 2
0

Agno + x711: lightweight Python agents with pay-per-use tools

DEV Community·x711io·21 days ago
#215u5Oe3
#agno#ai#python#agents#x711#agent
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More