AutoGen function and tool schema for discovering x402-payable services
Project description
autogen-x402-discovery
AutoGen function tool for discovering x402-payable services at runtime.
Install
pip install autogen-x402-discovery
Usage
import autogen
from x402discovery_autogen import x402_discover_function, X402_DISCOVERY_TOOL_SCHEMA
# Register as a function tool
config = autogen.AssistantAgent(
name="x402_researcher",
llm_config={
"functions": [X402_DISCOVERY_TOOL_SCHEMA],
"config_list": [{"model": "gpt-4o", "api_key": "..."}],
},
)
user = autogen.UserProxyAgent(
name="user",
function_map={"x402_discover": x402_discover_function},
)
user.initiate_chat(
config,
message="Find the best research service under $0.10/call"
)
Powered by the x402 Service Discovery API.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autogen_x402_discovery-1.0.0.tar.gz.
File metadata
- Download URL: autogen_x402_discovery-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa312d4db7ff69a2e0b8e6b857fcaf0a6f0f60a8436a280dc4f0d44160282dcc
|
|
| MD5 |
6aaec349ede1ede2c1d8087a8e5198a3
|
|
| BLAKE2b-256 |
d66f8b89547158b3a3e09a2e8f8deccb93d643a487c725b0487b43f8975c1b63
|
File details
Details for the file autogen_x402_discovery-1.0.0-py3-none-any.whl.
File metadata
- Download URL: autogen_x402_discovery-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
303dc11b5274ac511cf47bfa8206c9064363b24cd4a284a50a18cabbade39146
|
|
| MD5 |
45822b2ec5b57ee01c41c27a4d05716c
|
|
| BLAKE2b-256 |
c7fd89b8f82778e36bb3a16894ac918f624052b2dc5c7a4f2f87fe2f9d1640fe
|