Skip to main content

A Python library for seamless integration with Agent.ai APIs

Project description

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).

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

pyagentai-0.1.1.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

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

pyagentai-0.1.1-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyagentai-0.1.1.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.9 Windows/10

File hashes

Hashes for pyagentai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b3a2adf5b382992683c24a3ff4abccee53635ab2e6bbbfeaf38cf6d459f25f92
MD5 effc3b1136adcf8d32d6de41e35df680
BLAKE2b-256 e87737e079b49b637bbc8b6c2eeb1296a7f8eb466c83d5abb9cc1163eba081ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyagentai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.9 Windows/10

File hashes

Hashes for pyagentai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef4a6bd6f9d171fb96729329b58f2b3d5d0fb1a0f7645b1b732b1c3f7c846924
MD5 6ce63ec41015cb2132c40970a183b29a
BLAKE2b-256 9aff42b44fec8a337db4916b9b9d484b748e4a91627a107b5a4aaf4cc8e836b6

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