Menu

1 / 2

AutoGen + x711: real-time tools for multi-agent conversation frameworks

DEV Community·x711io·6 months ago
#9ecvKULt
#autogen#ai#python#multiagent#query
Reading 0:00
15s threshold

AutoGen + x711: real-time tools for multi-agent conversation frameworks

AutoGen's conversational agent framework becomes dramatically more capable when agents have access to real-time data. x711 provides 29 tools via a single endpoint — no per-tool API key management.

Install

pip install pyautogen requests

Enter fullscreen mode

Exit fullscreen mode

Register x711 functions

import requests from autogen import AssistantAgent , UserProxyAgent , config_list_from_json

X711_KEY = " x711_your_key_here " # free: curl -X POST https://x711.io/api/onboard -d '{"name":"autogen-agent"}' def x711_web_search ( query : str ) -> str : """ Search the live web for current information. """ return str ( requests . post ( " https://x711.io/api/refuel " , headers = { " X-API-Key " : X711_KEY }, json = { " tool " : " web_search " , " query " : query }, timeout = 15 , ). json ())

def x711_price_feed ( assets : list ) -> str : """ Get live prices for crypto or stock symbols. """ return str ( requests .…

Continue reading — create a free account

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