Python SDK for Orra - Build reliable AI applications that handle complex service interactions. Automatic error recovery and state management. Requires Orra control plane.
Project description
Orra SDK for Python
Python SDK for building reliable multi-agent applications with Orra.
Installation
pip install orra-sdk
Usage
from orra import OrraService, Task
from pydantic import BaseModel
# Initialize the SDK
svc = OrraService(
name="my-service",
description="A simple echo service",
url="https://api.orra.dev",
api_key="your-api-key"
)
# Define your models
class Input(BaseModel):
message: str
class Output(BaseModel):
response: str
# Register your service
@svc.handler()
async def handle_message(request: Task[Input]) -> Output:
return Output(response=f"Echo: {request.input.message}")
# Run the service
if __name__ == "__main__":
svc.start()
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
orra_sdk-0.2.0.tar.gz
(12.4 kB
view details)
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
orra_sdk-0.2.0-py3-none-any.whl
(15.3 kB
view details)
File details
Details for the file orra_sdk-0.2.0.tar.gz.
File metadata
- Download URL: orra_sdk-0.2.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.9 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6c26a5f9a3216256a6b73e64dbc1e16e41101f11bd8b2974ff50db35fa657f6
|
|
| MD5 |
8e5f074d12b267d42eb9e597b08fe347
|
|
| BLAKE2b-256 |
ba6f7d460cb21d1e586e87bf8dda5a9d6fb0e3183e4b83cdd71a369956121c58
|
File details
Details for the file orra_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: orra_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.9 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac5449b3464034f308a8df948453273db029a8183268e66cb904ab44052b31eb
|
|
| MD5 |
870fc5dee7daf6a6605c798650156252
|
|
| BLAKE2b-256 |
6d290b997d554754ff8d7d86b84ceb8d9795af0af507214d2e5f5c3b9fb7a42d
|