Skip to main content

Python SDK for UMAI Agent Mesh Governance and guardrails.

Project description

UMAI Agent SDK for Python

Production Python SDK for UMAI Agent Mesh Governance, guardrails, signed agent identity, and agent work-tree observability.

pip install umai-agent-sdk
pip install umai-agent-sdk[openai]
from umai import UmaiClient
from umai.stores import FileIdentityStore

umai = UmaiClient(endpoint="https://api.umai.ai", api_key="...")
agent = umai.agent(
    "support-agent",
    identity_store=FileIdentityStore(allow_plaintext_private_key=True),
)

await agent.register(bootstrap_token="...")
run = await agent.start_run(guardrail_id="gr-prod")
decision = await agent.guard_tool_input(
    guardrail_id="gr-prod",
    run_id=run.run_id,
    tool_name="crm.lookup",
    payload_summary="Lookup customer profile",
    messages=[{"role": "assistant", "content": "Call crm.lookup"}],
)
await agent.complete_run(run.run_id)

The SDK is a convenience layer over UMAI HTTP APIs. Every SDK feature maps to public UMAI endpoints and can be implemented without the SDK.

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

umai_agent_sdk-0.1.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

umai_agent_sdk-0.1.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file umai_agent_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: umai_agent_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for umai_agent_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7fd94d6ebd7d1ece69b507ced34f0cdb61f9eda2fcf8b1e02b1e2044db01ea70
MD5 5303e594a5c6c6ffd353cf51423179ee
BLAKE2b-256 3344d9c0db878dd24e478617b96a9c9fb9494adadac117bb079731fb9019004f

See more details on using hashes here.

Provenance

The following attestation bundles were made for umai_agent_sdk-0.1.0.tar.gz:

Publisher: python-sdk.yml on UMAI-Solutions/umai-agent-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file umai_agent_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: umai_agent_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for umai_agent_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9470edb233ec2b489aa3e907c1c2a2ff4dd9ce35c5d3a6a4332af03dd6c4409f
MD5 f992247f6dbf290848e874f8f0a50889
BLAKE2b-256 46195a1da8e85767971aae8a4605782197739a782b1d202b87e31c10e5dff3db

See more details on using hashes here.

Provenance

The following attestation bundles were made for umai_agent_sdk-0.1.0-py3-none-any.whl:

Publisher: python-sdk.yml on UMAI-Solutions/umai-agent-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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