Skip to main content

Python SDK for the Yutha agent-coordination control plane.

Project description

yutha

Async Python client for Yutha — open-source infrastructure for groups of AI agents. Identity, capability, accountability, and norms — built once, framework-agnostic.

Status — early-stage pre-release. Currently v0.1.0-alpha.3. Solid enough to play with end-to-end, intentionally pre-1.0. Wire formats and API surfaces may shift before 1.0; pin tightly if you build on it.

The Python SDK gives you signed agent identities, capability-gated message sending, structured envelopes, and access to the append-only receipt log of the Yutha control plane. Adapters for LangGraph, CrewAI, OpenAI Agents, and Microsoft Agent Framework ship as optional extras, so the same SDK works regardless of how you build the agents above it.


Install

pip install yutha                       # core SDK only
pip install 'yutha[langgraph]'          # + LangGraph adapter
pip install 'yutha[crewai]'             # + CrewAI adapter
pip install 'yutha[openai-agents]'      # + OpenAI Agents adapter
pip install 'yutha[maf]'                # + Microsoft Agent Framework adapter

Python 3.11+ required. The core install pulls in grpcio, protobuf, cryptography, and pydantic; the framework extras pull in their respective dependencies (LangChain core, CrewAI, OpenAI Agents, Microsoft Agent Framework, etc.).

Quickstart

A 60-second tour of what the SDK looks like — signing keys, passports, and the client surface. Full end-to-end with a live control plane is in the LangGraph guide.

import yutha

# An agent's cryptographic identity.
signing_key = yutha.SigningKey.generate()

# Its signed passport — the artifact that lets it join a swarm.
passport = yutha.Passport(
    spec_version="1.0.0",
    agent_id=yutha.AgentId.new(),
    swarm_id=yutha.SwarmId.new(),
    agent_public_key=signing_key.public_key(),
    owner="example.com/my-agent",
    framework="langgraph",
    framework_version="0.2.0",
    accepted_constitution_version="1.0.0",
    tier=yutha.PassportTier.MINIMAL,
    issued_at=yutha.Timestamp.now(),
    expires_at=yutha.Timestamp(wall_clock="2099-01-01T00:00:00Z", monotonic_ns=2**62),
).sign(signing_key)

# Connect to a running control plane and register.
async with yutha.YuthaClient.connect(
    "127.0.0.1:50051",
    agent_id=passport.agent_id,
    swarm_id=passport.swarm_id,
    signing_key=signing_key,
) as client:
    await client.admission.register(passport)
    # ... send envelopes, issue capabilities, query receipts ...

What's next

  • 15-minute LangGraph walkthrough — build a five-agent workflow with capability gating and a full audit trail.
  • CrewAI walkthrough — the same SDK with CrewAI idioms.
  • OpenAI Agents research-crew example — end-to-end OpenAI Agents adapter walkthrough (handoff bridging, citation-enforcing constitution, cap-gated function_tools).
  • Microsoft Agent Framework DevOps example — end-to-end MAF adapter walkthrough (SRE countersign, schema-change quarantine, ChatAgent integration).
  • Worked examples — runnable end-to-end demos covering customer support, code review with security boundaries, AP / invoice processing, research-crew citation enforcement, and DevOps incident-response.
  • Concepts — passports, envelopes, capabilities, receipts, and the Cedar-based constitution layer in fifteen minutes.

How it fits together

    ┌──────────────────────────────────────────┐
    │  yutha.YuthaClient                       │
    │  ─────────────────                       │
    │   .admission  →  AdmissionService stub   │
    │   .capability →  CapabilityService stub  │
    │   .envelope   →  EnvelopeService stub    │
    │   .receipt    →  ReceiptService stub     │
    │   .constitution → ConstitutionService    │
    └─────────────────┬────────────────────────┘
                      │
    ┌─────────────────▼─────────────────┐
    │  yutha.auth.BearerSession         │  ← mints + refreshes
    │  (Ed25519 over canonical bytes)   │     AgentBearerToken
    └─────────────────┬─────────────────┘
                      │
    ┌─────────────────▼───────────────┐
    │  yutha._proto.*  (grpcio stubs) │
    └─────────────────────────────────┘

The client is a thin async wrapper over five gRPC services. Bearer tokens are short-lived, Ed25519-signed over the request's canonical bytes; the session handles minting and refresh transparently.

License

Apache 2.0. See LICENSE.

Contributing

Contributor setup, codegen, and the integration-test workflow are documented in the repository's CONTRIBUTING guide.

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

yutha-0.1.0a4.tar.gz (122.2 kB view details)

Uploaded Source

Built Distribution

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

yutha-0.1.0a4-py3-none-any.whl (156.7 kB view details)

Uploaded Python 3

File details

Details for the file yutha-0.1.0a4.tar.gz.

File metadata

  • Download URL: yutha-0.1.0a4.tar.gz
  • Upload date:
  • Size: 122.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yutha-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 46e688ea215cb80e5ac30dd130257a0098228bb88063c91202a996bd15c79163
MD5 a93f2f49506eb97b9095f2d8d1a362a1
BLAKE2b-256 e98294db4ae4b1ddde4d858813811f7285ad0651274c834ebc879bcfa2bb0ba5

See more details on using hashes here.

File details

Details for the file yutha-0.1.0a4-py3-none-any.whl.

File metadata

  • Download URL: yutha-0.1.0a4-py3-none-any.whl
  • Upload date:
  • Size: 156.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yutha-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 e35f42dc3e8bc8ec8e5ad483a1619488c8ba5d27ca23a5841d893b2dffe0302a
MD5 3c056facd5a436ca830e044d9163c49b
BLAKE2b-256 6e0a33f75077c052dd951922233a69c09118dbee7242d45ed8790127fffd9cb4

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