Skip to content

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

License

Notifications You must be signed in to change notification settings

MeepoLabs/pyagentai

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

About

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

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages