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.0.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.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: headlessagents-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 3414a16b5950e364026dfaa8c8d938d45b2a869eebe93a24d9a9786e7a9b5a0c
MD5 0276bca37062621b80447be9e8b280e7
BLAKE2b-256 6fb98d00cd7aece9bb29c69756f4fa8208538a7baeb885b4d23005379577dc39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: headlessagents-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf5cd4fb19cfd9776b6555237b1f6e31f6fce1e1d20cb56100a6b87a74281315
MD5 2ae0fc4dd4c522244b8875067a0e31d1
BLAKE2b-256 18f2250ca9baa9e30db5fd4e482b0c871a0cde3867c9a79b15f873dcb328206a

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