Skip to main content

pyagentai

PyPI version Python versions License Documentation Status

A Python library for seamless integration with agent.ai APIs.

Overview

pyagentai is a Python package that provides a client for interacting with the agent.ai platform. It enables developers to:

  • Easily connect to the agent.ai API.
  • Discover and interact with agents available on the platform.
  • Integrate agent.ai services into their own Python applications.

Installation

pip install pyagentai

Or with Poetry:

poetry add pyagentai

Quick Example

Here's a quick example of how to use the client to find available agents:

from pyagentai import AgentAIClient
import asyncio

async def main():
    # Initialize the client, optionally providing an API key.
    # The client can also be configured using environment variables.
    ag = AgentAIClient(api_key="your_agentai_api_key")

    try:
        # Find the first 10 available agents
        agents = await ag.find_agents(limit=10)
        for agent in agents:
            print(f"- {agent.name}")
    finally:
        # Close the client connection
        await ag.close()

if __name__ == "__main__":
    asyncio.run(main())

Documentation

For detailed documentation, visit pyagentai.readthedocs.io.

The documentation includes:

  • Getting Started Guide
  • API Reference
  • Examples and Tutorials
  • FAQ

Contributing

We welcome contributions! Please check out our contributing guidelines for details on:

  • Setting up your development environment
  • Running tests
  • Submitting pull requests

License

This project is licensed under the GNU General Public License v3.0 (GPLv3).

Metadata

Release files for pyagentai 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyagentai 0.1.2
File Size Uploaded
pyagentai-0.1.2.tar.gz 30.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyagentai 0.1.2
File Interpreter ABI Platform
pyagentai-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 79.8 kB

Release files / pyagentai-0.1.2.tar.gz

Download URL pyagentai-0.1.2.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
04487771acb47df0123740013c373290b3b200e26c1e19ed019a7103ff1c4be7
BLAKE2b-256 checksum
How to use checksums
1cc5b01cfcd40906f45fb8d29297866ec0f64199a6104942043d4b5baeb482f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.11.9 Windows/10

Release files / pyagentai-0.1.2-py3-none-any.whl

Download URL pyagentai-0.1.2-py3-none-any.whl
Size 49.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
830467efc06dc9a79ac229c9becc7bb4ffad8e1b0d32e8cfc1c5dd79a594a2f3
BLAKE2b-256 checksum
How to use checksums
e1129a2068e33babeb61e5ec81caa98bf159cdfb1f3b320bf0effd0c2997ee63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.11.9 Windows/10

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page