A Python library for interacting with headless agents through various AI providers
Project description
HeadlessAgents Python
A Python library for interacting with headless agents through various AI providers.
Installation
pip install headlessagents
Usage
from headlessagents import HeadlessAgent
# Initialize the agent
agent = HeadlessAgent(
agent_id="20250119021511fa6df4c248b0", # Your agent ID
user_id="3aYTwTRJCb8P4Jtf3e0v", # Your user ID
client_provider="openai" # or "anthropic", "o1", "xai"
)
# Get agent tools
tools = agent.get_tools()
print(f"Available tools: {tools}")
# Query the agent
response = agent.query("Your query here")
print(f"Agent response: {response}")
Features
- Support for multiple AI providers (OpenAI, Anthropic, O1, XAI)
- Easy-to-use API for interacting with headless agents
- Tool retrieval and formatting
- Configurable base URL for API endpoints
Configuration
The default base URL is https://agents-api-434678060995.us-central1.run.app. You can override it by passing a custom base_url parameter to the HeadlessAgent constructor:
agent = HeadlessAgent(
agent_id="your_agent_id",
user_id="your_user_id",
client_provider="openai",
base_url="https://your-custom-url.com"
)
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
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 headlessagents-0.1.2.tar.gz.
File metadata
- Download URL: headlessagents-0.1.2.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a221cd9c56088ef931d9d7e409350f497915674190377a90e7e36ff1396dc19
|
|
| MD5 |
899d42cc3902af79052fcd088fc839a1
|
|
| BLAKE2b-256 |
9e82d1ccceba6e0b0e0121b0c06fb01dc8b6102fc9365cb618f1d6a47302ea8c
|
File details
Details for the file headlessagents-0.1.2-py3-none-any.whl.
File metadata
- Download URL: headlessagents-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
573cc2bb2fa1c28c8b0c22c518f9c7b9265eab3ed61946086b53432038b90cdd
|
|
| MD5 |
1f3b12e6c9118540cf2919dec94f31b6
|
|
| BLAKE2b-256 |
e94126b714a01b785c60d8cf94d2c499139196d0c27fd230b0ac9d80e1a59ced
|