Skip to main content

Official Python SDK + CLI for AgentOS

Project description

AgentOS SDK

Official Python SDK for integrating your custom AI agents with AgentOS.

Installation

pip install nl-agentos-sdk

(For private or internal usage, you can install directly from the repository using pip install git+<repo-url> or by building and sharing a wheel .whl file.)

Usage

import os
from agentos_sdk import AgentOS

def my_handler(action, payload):
    print(f"Executing {action} with {payload}")
    return {"success": True, "data": "Results from agent"}

client = AgentOS(url=os.getenv("AGENTOS_URL"), key=os.getenv("AGENTOS_KEY"))

manifest = {
    "agent_id": "my_agent",
    "version": "1.0.0",
    "team": "My Team",
    "capabilities": ["do_work"],
    "actions": [{"label": "Do work", "action": "DO_WORK"}],
    "ui_url": "http://localhost:3000"
}

client.run(manifest=manifest, handler=my_handler)

Release Checklist

This package uses PyPI Trusted Publishing via GitHub Actions. To release a new version:

  1. Update Version: Bump version = "X.Y.Z" in pyproject.toml.
  2. Commit: Commit your changes.
  3. Tag & Push:
    git tag vX.Y.Z
    git push origin master --tags
    
  4. Publish: The GitHub Action .github/workflows/pypi-publish.yml will automatically build the wheel and publish to PyPI using OIDC!

Initial PyPI Setup (Trusted Publishing) If you are deploying this for the first time, you must configure PyPI to trust this repository:

  1. Go to pypi.org > Manage > Publishing.
  2. Add a new "GitHub" publisher.
  3. Set the repository name (Sachin-NLtechnologies/agentos-sdk), workflow filename (pypi-publish.yml), and environment name (pypi).
  4. (No API tokens required to be stored in GitHub Secrets!)

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

nl_agentos_sdk-0.3.15.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

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

nl_agentos_sdk-0.3.15-py3-none-any.whl (56.6 kB view details)

Uploaded Python 3

File details

Details for the file nl_agentos_sdk-0.3.15.tar.gz.

File metadata

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

File hashes

Hashes for nl_agentos_sdk-0.3.15.tar.gz
Algorithm Hash digest
SHA256 836da17c0549ca837672d1865f75858a1fe3cc139c80182b4e89d637b5acc5a9
MD5 14d4282cd3f3bbf0f244927813ed24d9
BLAKE2b-256 42549e7d349f4e86c0147d64ef8ff567b42ba3eb730c768989908d746e2bdfe9

See more details on using hashes here.

Provenance

The following attestation bundles were made for nl_agentos_sdk-0.3.15.tar.gz:

Publisher: pypi-publish.yml on Sachin-NLtechnologies/agentos-sdk

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

File details

Details for the file nl_agentos_sdk-0.3.15-py3-none-any.whl.

File metadata

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

File hashes

Hashes for nl_agentos_sdk-0.3.15-py3-none-any.whl
Algorithm Hash digest
SHA256 dbf90be5b678faf15232df64004f99ffc38459da7b9912e8da9df1fa89c46fa7
MD5 e51879cff7471606a25e4e1777a2f397
BLAKE2b-256 a40465fb440ed7fdf35ca0bf6b146c4947bda67a4f989fec94bb3fbb7114ac03

See more details on using hashes here.

Provenance

The following attestation bundles were made for nl_agentos_sdk-0.3.15-py3-none-any.whl:

Publisher: pypi-publish.yml on Sachin-NLtechnologies/agentos-sdk

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