Skip to main content

Unified Python SDK for Agents24 agent runtime and control APIs.

Project description

agents24

Last Updated: 2026-05-25

Unified Python SDK for Agents24.

Endpoint methods are generated from packages/agents24-sdk-contract/agents24.sdk.json. Do not edit files under agents24/generated/ directly. For SDK maintenance, see docs/references/agents24_sdk_development_guide.md.

from agents24 import Agents24

client = Agents24(
    base_url="http://localhost:8000",
    api_key="tpk_...",
    organization_id="org-id",
    project_id="project-id",
)

agent = client.agent({
    "name": "Support Agent",
    "instructions": "Answer briefly.",
}).create()

client.agents.publish(agent["id"])

Artifact Authoring

Artifact code imports lightweight helpers from agents24.artifacts:

from agents24.artifacts import tool


@tool(
    name="echo",
    input_schema={
        "type": "object",
        "properties": {"text": {"type": "string"}},
        "required": ["text"],
    },
    output_schema={
        "type": "object",
        "properties": {"text": {"type": "string"}},
        "required": ["text"],
    },
)
async def echo(input, config, context):
    return {"text": input["text"]}

The agents24.artifacts module is transport-free and safe for artifact runtime code.

Development

pnpm run generate:sdk
pnpm run check:sdk-contract
pnpm run test:agents24-python

Generated endpoint methods must stay in parity with the TypeScript @agents24/sdk package.

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

agents24-0.1.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

agents24-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agents24-0.1.0.tar.gz
Algorithm Hash digest
SHA256 43155e60676a42c66025bf510a5e4c4530c83e3bb70f154b48f006d3786bf40e
MD5 90fb9f69be5c9e600379cbcaa87fb535
BLAKE2b-256 cf2424eab30d15e553a87a9132e5db3bcab9ee34d81f50ef44fbd2e9554ccd3c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for agents24-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96064e427864c8770722aee25645f80e9dfa191956a9a976d7feb2018a78f93b
MD5 ef5c54ee79382d6034488e0571676290
BLAKE2b-256 248dd6039b0919180db6ce5aec814f8144cf9c4097e741d61f296cc705506a41

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