Skip to main content

AgentOS SDK

Project description

AgentOS SDK

Unified Python SDK for AgentOS platform (the Firewall for AI Agents). All policy checks and telemetry route through the AgentOS Platform API (default: https://app.agentosai.org).

Install

pip install agentos-client

After installing, you can log in to the platform (assuming you have created an account in https://app.agentosai.org):

agentos login

CLI Usage

# Init a starter agent project
agentos init my-agent --template llm

# Build a tarball to deploy
cd my-agent
agentos build . -o my-agent.tar.gz

# Deploy to the platform
agentos deploy my-agent.tar.gz --name my-agent

# List and invoke
agentos list
agentos invoke <agent-id> --payload '{"message": "hello"}'
agentos logs <invocation-id> --follow

SDK Usage

from agentos.sdk import Agent, PolicyDeniedError

agent = Agent(
    agent_id="my-remote-agent",
    tags=["pii_strict"],
)

try:
    text = agent.llm("Summarize our Q3 performance.")
finally:
    agent.complete(result={"ok": True})

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

agentos_client-0.1.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

agentos_client-0.1.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentos_client-0.1.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for agentos_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5b88d587ff5ec0c11b908b5ac2afce7ec38917fb9b3b307cee0c588efa733698
MD5 0c1bc73fa9b0516c3f8d786e1263355e
BLAKE2b-256 b994bb8f2dc385d9c80e57dfbc054ee62d2c1ce462c82f183018e92bc42f16fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentos_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for agentos_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d2f131c8e98685a049de6e61a6f5aa3e1c7bd32869f77159f64956f2da04d28
MD5 247373b77ca0db5c53531bbfce4a786d
BLAKE2b-256 6c4520ec07688074017f3e0998a75a5bdd2e067b816b68c8e4f32973a1c6057b

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