Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

AGNT5 Python SDK

CI License

Build reliable AI agents and durable workflows in Python. The AGNT5 SDK provides typed components, workflow checkpoints, retries, streaming, tools, human-in-the-loop coordination, evaluation, and runtime observability.

Requirements

  • Python 3.11 or newer
  • An AGNT5 runtime for deployed execution

Installation

pip install agnt5

Quick start

Define a function. Type hints are used to derive its input and output schema.

from agnt5 import FunctionContext, function


@function(retries=3, backoff="exponential")
async def greet(ctx: FunctionContext, name: str) -> dict[str, str]:
    ctx.logger.info("greeting user", extra={"name": name})
    return {"message": f"Hello, {name}!"}

Register application components with a worker for runtime-backed execution:

import asyncio

from agnt5 import Worker


async def main() -> None:
    worker = Worker(service_name="hello-python")
    await worker.run()


asyncio.run(main())

Decorated functions, workflows, agents, tools, and scorers are registered when their modules are imported. See examples/app.py for a complete application entrypoint.

Invoke a deployed component

from agnt5 import Client

client = Client(
    gateway_url="https://gw.agnt5.com",
    api_key="agnt5_sk_...",
    deployment_id="deployment-id",
)

result = client.run("greet", {"name": "Ada"})
print(result)

Client also supports asynchronous submission, status and result polling, streaming events, batches, cancellation, workflow resume, chat, and evaluation. Configuration can be supplied explicitly or through AGNT5_GATEWAY_URL, AGNT5_API_KEY, and AGNT5_DEPLOYMENT_ID.

Core APIs

API Purpose
@function Typed, retryable units of work
@workflow Durable multi-step orchestration and checkpointing
Agent and @agent Model and tool orchestration
@tool Typed tools with generated schemas
ctx.state Durable workflow and component state
ctx.memory Conversation and application memory
Client / AsyncClient Invoke and observe deployed components
Worker Register components and serve runtime dispatch

The shared Rust runtime foundation lives in agnt5dev/sdk-core. Vendor sandbox adapters live in agnt5dev/sdk-integrations.

Examples and documentation

  • examples/ contains functions, workflows, agents, tools, streaming, HITL, MCP, chat, and evaluation examples.
  • docs/ contains SDK-specific guides.
  • AGNT5 documentation covers platform concepts and deployment.

Development

uv sync --all-groups
uv run ruff check src tests
uv run pytest tests/unit -q
uv build --sdist

Development builds use a sibling checkout of sdk-core.

Contributing

See CONTRIBUTING.md. Report security issues according to SECURITY.md.

License

Licensed under the Apache License 2.0.

Release files for agnt5 0.11.0b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agnt5 0.11.0b1
File Size Uploaded
agnt5-0.11.0b1.tar.gz 866.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for agnt5 0.11.0b1
File
agnt5-0.11.0b1-cp310-abi3-manylinux_2_39_x86_64.whl CPython 3.10 abi3 Linux glibc 2.39+ x86-64 Details
agnt5-0.11.0b1-cp310-abi3-manylinux_2_39_aarch64.whl CPython 3.10 abi3 Linux glibc 2.39+ ARM64 Details
agnt5-0.11.0b1-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
agnt5-0.11.0b1-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
agnt5-0.11.0b1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 90.8 MB

Release files / agnt5-0.11.0b1.tar.gz

Download URL agnt5-0.11.0b1.tar.gz
Size 866.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1a619b9067c50fb383aa047f0d5633db327479ac63475399d2bacb779f8fb64e
BLAKE2b-256 checksum
How to use checksums
969659ade36cfcfa0d5c959b20cafed97da35173478e46e4070ffd1976ab049d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / agnt5-0.11.0b1-cp310-abi3-manylinux_2_39_x86_64.whl

Download URL agnt5-0.11.0b1-cp310-abi3-manylinux_2_39_x86_64.whl
Size 17.9 MB
Tags CPython 3.10 Linux glibc 2.39+ x86-64 abi3
SHA-256 checksum
How to use checksums
6588ff6d0bedefe335113d367b74965f5fe9d26ed36682d26ce91d560729026f
BLAKE2b-256 checksum
How to use checksums
22d7d087da4fcf63a4711f6b851a8228bb70df7d7bfe9c2d60cb818d561aa42c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / agnt5-0.11.0b1-cp310-abi3-manylinux_2_39_aarch64.whl

Download URL agnt5-0.11.0b1-cp310-abi3-manylinux_2_39_aarch64.whl
Size 18.9 MB
Tags CPython 3.10 Linux glibc 2.39+ ARM64 abi3
SHA-256 checksum
How to use checksums
526d20fd9ee2ea45c5ecc50e68b6f5856ec52d999b55290824f76a1399d81020
BLAKE2b-256 checksum
How to use checksums
fb51fb6def354d36933a75d744bf6927b84d6bebfc2727e299b2973c461e604c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / agnt5-0.11.0b1-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL agnt5-0.11.0b1-cp310-abi3-manylinux_2_28_x86_64.whl
Size 18.0 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
25a7af379ae9917bf937d3985ef9871c56346b0ac9893bd3439ddc253623248a
BLAKE2b-256 checksum
How to use checksums
1f29ccc13be3edb49e8a38ae43d84d63c108daea168c867eb20ed65cee54853c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / agnt5-0.11.0b1-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL agnt5-0.11.0b1-cp310-abi3-manylinux_2_28_aarch64.whl
Size 18.9 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
41352f9115fbc2fefbe098803ddafe8121f5930f115a9555c2f34befd14b1aaf
BLAKE2b-256 checksum
How to use checksums
6caf6a051ca8dc974ec87059cb0104e60b19f81ffb980e301cda4a81f254769a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / agnt5-0.11.0b1-cp310-abi3-macosx_11_0_arm64.whl

Download URL agnt5-0.11.0b1-cp310-abi3-macosx_11_0_arm64.whl
Size 16.2 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9befb50b3a9199e0fea05f4369fab03bf1a0bbc80c91cef62e85c15b7dece316
BLAKE2b-256 checksum
How to use checksums
07d7cd9b85fe9a5a84c1d370b209bff6512433e316bb2b0f68f30e92180e0763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.13.6

4 release files

0.13.5

4 release files

0.13.4

4 release files

0.13.3

4 release files

0.13.2

4 release files

0.13.1

4 release files

0.13.0

4 release files

0.12.0

4 release files

This release

0.11.0b1 This release

6 release files

0.9.8

3 release files

0.9.7

3 release files

0.9.6

3 release files

0.9.5

3 release files

0.9.4

3 release files

0.9.3

3 release files

0.9.2

3 release files

0.9.1

3 release files

0.9.0

4 release files

0.8.7

4 release files

0.8.5

4 release files

0.8.4

4 release files

0.8.3

4 release files

0.8.2

4 release files

0.8.1

4 release files

0.8.0

4 release files

0.7.20

4 release files

0.7.18

4 release files

0.7.11

4 release files

0.7.10

4 release files

0.7.9

4 release files

0.7.8

4 release files

0.7.6

4 release files

0.7.5

4 release files

0.7.4

4 release files

0.7.3

4 release files

0.7.2

4 release files

0.7.1

4 release files

0.6.1

4 release files

0.6.0

4 release files

0.5.2

4 release files

0.5.1

4 release files

0.5.0

4 release files

0.4.3

4 release files

0.4.2

4 release files

0.4.1

4 release files

0.4.0

4 release files

0.3.7

4 release files

0.3.6

4 release files

0.3.5

4 release files

0.3.4

4 release files

0.3.3

4 release files

0.3.1

4 release files

0.2.7

4 release files

0.2.6

4 release files

0.2.5

4 release files

0.2.4

4 release files

0.2.3

4 release files

0.2.2

3 release files

0.2.1

3 release files

0.2.0

5 release files

0.1.3

6 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page