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.16.tar.gz (36.3 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.16-py3-none-any.whl (57.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nl_agentos_sdk-0.3.16.tar.gz
Algorithm Hash digest
SHA256 7a2dc8721794726d5d2f7db94b6bb52707f7f794faea919a3e900268a7d14f2c
MD5 6dcab50ed6454099b998ec49e0679f97
BLAKE2b-256 6fb8eb652c19b13016e6780d6ae1ade67ef23dd9fef00fd0a8cfe8cf11c55707

See more details on using hashes here.

Provenance

The following attestation bundles were made for nl_agentos_sdk-0.3.16.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.16-py3-none-any.whl.

File metadata

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

File hashes

Hashes for nl_agentos_sdk-0.3.16-py3-none-any.whl
Algorithm Hash digest
SHA256 45856b70b9483230c511528f56fd7cddc2865b197abe6f743f9488b23f2cb486
MD5 dda2f93e212bd148a884efe01a39bc15
BLAKE2b-256 66e7e464ba75221146c57927c29364937d2d30a9c515a1f1e46acf06b06a8099

See more details on using hashes here.

Provenance

The following attestation bundles were made for nl_agentos_sdk-0.3.16-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