Agentuity SDK for Python
Project description
Agentuity Python SDK
Visit https://agentuity.com to get started with Agentuity.
The Agentuity Python SDK is a powerful toolkit for building, deploying, and managing AI agents in Python environments. This SDK provides developers with a comprehensive set of tools to create intelligent, event-driven agents that can process various types of content, communicate with each other, and integrate with external systems.
Key Features
- Multi-Agent Architecture: Build and orchestrate multiple interconnected agents that can communicate and collaborate.
- Event-Driven Design: Respond to various triggers including webhooks, cron jobs, SMS, voice, email, and more.
- Rich Content Handling: Process and generate multiple content types including JSON, text, markdown, HTML, and binary formats (images, audio, PDFs).
- Persistent Storage: Built-in key-value and vector storage capabilities for maintaining state and performing semantic searches.
- Observability: Integrated OpenTelemetry support for comprehensive logging, metrics, and tracing.
- Cross-Runtime Support: Works seamlessly with both Node.js and Bun runtimes.
Use Cases
- Building conversational AI systems
- Creating automated workflows with multiple specialized agents
- Developing content processing and generation pipelines
- Implementing intelligent data processing systems
- Building AI-powered APIs and services
IO Modules
The SDK provides several IO modules for handling different types of input and output:
Process and reply to emails with support for attachments, HTML content, and rich formatting.
Discord
Handle Discord messages and send replies with full integration to Discord's API.
Telegram
Process Telegram messages and send replies with support for typing indicators and message formatting.
from agentuity.io.telegram import Telegram, parse_telegram
# Parse a Telegram message from raw data
telegram_message = await parse_telegram(raw_data)
# Access message properties
print(f"From: {telegram_message.from_first_name}")
print(f"Message: {telegram_message.text}")
# Send a reply
await telegram_message.send_reply(request, context, "Hello! I received your message.")
# Send typing indicator
await telegram_message.send_typing(request, context)
See the examples/telegram_example.py for a complete usage example.
Getting Started
To use this SDK in a real project, you should install the Agentuity CLI.
curl -fsSL https://agentuity.sh | sh
Once installed, you can create a new project with the following command:
agentuity new
Development Setup
Prerequisites
Installation
Clone the repository and install dependencies:
# Clone the repository
git clone https://github.com/agenuity/sdk-py.git
cd sdk-py
# Install dependencies
uv sync
Local Development
Create a new agent project or use an existing one like normal.
To link your local python SDK to your project, run the following commands:
Install the dependencies
make install
Build the SDK:
make build
In your project, install the local SDK build:
uv add ~/path/to/sdk-py/dist/agentuity-0.0.83.post2+d07b43907c8002056fe3550ddef946d1dbb0eeff.tar.gz
Make sure to replace the path with the actual path to the SDK build.
Now you can run your project like normal.
agentuity dev
License
See the LICENSE file for details.
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 agentuity-0.0.106.tar.gz.
File metadata
- Download URL: agentuity-0.0.106.tar.gz
- Upload date:
- Size: 183.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
138fab17585180578becad91d8747156f229bfe315989e084a4f9f82fce79f6a
|
|
| MD5 |
06dd335b168bea088ccc26efa0f8d553
|
|
| BLAKE2b-256 |
74d5b1d64c9798ff5099e3605034c4d44852a76f18c604f9d2848025faa9af07
|
Provenance
The following attestation bundles were made for agentuity-0.0.106.tar.gz:
Publisher:
pypi-release.yml on agentuity/sdk-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentuity-0.0.106.tar.gz -
Subject digest:
138fab17585180578becad91d8747156f229bfe315989e084a4f9f82fce79f6a - Sigstore transparency entry: 465345159
- Sigstore integration time:
-
Permalink:
agentuity/sdk-py@7aafb06a7abeb1cc3f5443200a3cc42b7f9b49a1 -
Branch / Tag:
refs/tags/v0.0.106 - Owner: https://github.com/agentuity
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@7aafb06a7abeb1cc3f5443200a3cc42b7f9b49a1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file agentuity-0.0.106-py3-none-any.whl.
File metadata
- Download URL: agentuity-0.0.106-py3-none-any.whl
- Upload date:
- Size: 50.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46b714e6e1eee1aac767a6f2e76410ef8999aa726c7101b3d853b58690e7ae4b
|
|
| MD5 |
e643a94cd070f3b44ab928385a8989be
|
|
| BLAKE2b-256 |
98338656a6621ce0e68a9e001049f14bcf439f4bf6b8e70510afb7fd2f460e1a
|
Provenance
The following attestation bundles were made for agentuity-0.0.106-py3-none-any.whl:
Publisher:
pypi-release.yml on agentuity/sdk-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentuity-0.0.106-py3-none-any.whl -
Subject digest:
46b714e6e1eee1aac767a6f2e76410ef8999aa726c7101b3d853b58690e7ae4b - Sigstore transparency entry: 465345185
- Sigstore integration time:
-
Permalink:
agentuity/sdk-py@7aafb06a7abeb1cc3f5443200a3cc42b7f9b49a1 -
Branch / Tag:
refs/tags/v0.0.106 - Owner: https://github.com/agentuity
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@7aafb06a7abeb1cc3f5443200a3cc42b7f9b49a1 -
Trigger Event:
push
-
Statement type: