Skip to main content

Python SDK for Orra - Build reliable multi-agent applications

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.1.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orra_sdk-0.1.3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file orra_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: orra_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.9 Darwin/24.1.0

File hashes

Hashes for orra_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 69235055d4e23b8fc0a88b63c869b51ff40199c05508555e31bbe4fc32c2fa39
MD5 e33d5e667f86a9425ab55b60875f1ed4
BLAKE2b-256 83eb09138971d4cbdfe4783a4f8b341c75722ef4df2cdbffdaf69b9c7df253ed

See more details on using hashes here.

File details

Details for the file orra_sdk-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: orra_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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

Hashes for orra_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c3187b7280b59b0089e6c5523dc0c8d5d77558214278192d7550ff462f394c0b
MD5 9d129fc00b2118cd416531ffa4b80ce1
BLAKE2b-256 2c1cc37e8ab9c2338c53b37a3aa7ffb1adc739b821ee24982b4b44402da0b9da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page