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.2.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.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: orra_sdk-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 166be23141be5baba728f99812e6417200e115350ef8e9d281af41f0a164902d
MD5 cdab04cadeb956d51f163c6c0cdf1592
BLAKE2b-256 7d618ba9c39abd2defbe32ac21ba5460bc677d2f56fbc505f1379c8b74f3eebd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: orra_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e5a40499c894048a87479fedc3144a57d92566f93bee003d72d47baf72123f3
MD5 3382af8c8d4049569aaeef9cdaa6e407
BLAKE2b-256 07c5fe1c5c6af0131cfffef42f583dd7c3042c41cb106872fa92ad3a057ed14c

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