A Python library for seamless integration with Agent.ai APIs
Project description
pyagentai
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyagentai-0.1.2.tar.gz.
File metadata
- Download URL: pyagentai-0.1.2.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04487771acb47df0123740013c373290b3b200e26c1e19ed019a7103ff1c4be7
|
|
| MD5 |
6e0739201853dfabf10ec09330308ed8
|
|
| BLAKE2b-256 |
1cc5b01cfcd40906f45fb8d29297866ec0f64199a6104942043d4b5baeb482f4
|
File details
Details for the file pyagentai-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pyagentai-0.1.2-py3-none-any.whl
- Upload date:
- Size: 49.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
830467efc06dc9a79ac229c9becc7bb4ffad8e1b0d32e8cfc1c5dd79a594a2f3
|
|
| MD5 |
7a4c02a54a0865e149bf8f4ca56fd591
|
|
| BLAKE2b-256 |
e1129a2068e33babeb61e5ec81caa98bf159cdfb1f3b320bf0effd0c2997ee63
|