Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

headlessagents-0.1.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

headlessagents-0.1.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file headlessagents-0.1.1.tar.gz.

File metadata

  • Download URL: headlessagents-0.1.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.10

File hashes

Hashes for headlessagents-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3300895d0f1fb99a7e6fc929a459020bfcdb2487454a2f861383a8c9c4b090e7
MD5 794842fee27895cd488adb1675461559
BLAKE2b-256 6765582348f7df5460ad50533997fc4f91cfff92ec7a0d6b29306f504ff8dffc

See more details on using hashes here.

File details

Details for the file headlessagents-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: headlessagents-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.10

File hashes

Hashes for headlessagents-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6e26f69c61f3ce6edb2a5c09051c9d0d66a20eacd0b928f9696d44a0eab1702
MD5 d821db41eefa048703dda704ba9bf6af
BLAKE2b-256 771cb62639f41504901fa35f9aed50433b7fe52b557613a03836764a4c3fc29b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page