Async API
Working with Asynchronous Agents in the Agentuity Python SDK
Async API
The Agentuity Python SDK now supports fully asynchronous operations, enabling more efficient handling of concurrent requests and streaming responses.
Agent Request
The AgentRequest
class now uses async patterns to handle incoming data:
Agent Response
The AgentResponse
class supports async streaming and iteration:
Async Iteration
Responses can be iterated over asynchronously:
Data Streaming
The SDK provides several specialized stream readers for different data types:
Performance Benefits
The async implementation provides several advantages:
- Efficient handling of concurrent requests
- Streaming of large data payloads without blocking
- Reduced memory usage for processing large files
- Better integration with modern async Python applications
Need Help?
Join our Community for assistance or just to hang with other humans building agents.
Send us an email at hi@agentuity.com if you'd like to get in touch.
Please Follow us on
If you haven't already, please Signup for your free account now and start building your first agent!