agents24
Last Updated: 2026-07-10
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"])
Published-Agent Runtime
Use client.embed from server code to call a published agent through the public embed runtime:
def on_event(event):
print(event["event"])
result = client.embed.stream_agent(
"published-agent-id",
{
"input": "Help me with my account.",
"external_user_id": "customer-user-123",
},
on_event=on_event,
)
The namespace also includes thread detail/delete, run-context, cancel, and attachment-upload methods.
Thread history can be listed for one agent or across several agents:
threads = client.embed.list_agent_threads(
"published-agent-id",
external_user_id="customer-user-123",
)
sidebar_threads = client.embed.list_agent_threads_multi({
"agent_ids": ["agent-a", "agent-b"],
"external_user_id": "customer-user-123",
})
Async backends can use AsyncAgents24.embed.list_agent_threads_multi(agent_ids, external_user_id=...).
Artifact Authoring
Artifact code imports lightweight helpers from agents24.artifacts:
from pydantic import BaseModel, Field
from agents24.artifacts import tool
class EchoInput(BaseModel):
text: str = Field(description="Text to echo.")
class EchoOutput(BaseModel):
text: str
@tool(
name="echo",
input_schema=EchoInput,
output_schema=EchoOutput,
)
async def echo(input, config, context):
return {"text": input["text"]}
The agents24.artifacts module is transport-free and safe for artifact runtime code. If artifact code imports Pydantic, declare pydantic as an artifact dependency.
Self-hosted Python services can expose decorated tools through the framework-neutral server helper:
from agents24.server import create_artifact_server
server = create_artifact_server(
exports=[echo],
signing_secret="shared-environment-secret",
)
manifest = server.manifest()
response = await server.invoke(body=request_body, headers=request_headers)
Mount server.manifest() at GET /.well-known/agents24/artifact and server.invoke(...) at POST /agents24/artifact/invoke. The helper verifies the same timestamped HMAC contract as @agents24/sdk/server without depending on a specific Python web framework.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agents24-0.1.4.tar.gz.
File metadata
- Download URL: agents24-0.1.4.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5084de3accddd54c5e07f9663be5270e193d6150ddf8f9b047f6678742f00e4
|
|
| MD5 |
692e8ddf63aeb88e1847441963e71a40
|
|
| BLAKE2b-256 |
15e7bbcc771b6a593a88385388f3f7cf94fa28f14ba674f4e8c3488c068d3c68
|
Provenance
The following attestation bundles were made for agents24-0.1.4.tar.gz:
Publisher:
agents24-sdk-release.yml on daniel5426/talmudpedia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agents24-0.1.4.tar.gz -
Subject digest:
a5084de3accddd54c5e07f9663be5270e193d6150ddf8f9b047f6678742f00e4 - Sigstore transparency entry: 2146662145
- Sigstore integration time:
-
Permalink:
daniel5426/talmudpedia@79001093b1050638f9035db33a529526056037f5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/daniel5426
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
agents24-sdk-release.yml@79001093b1050638f9035db33a529526056037f5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file agents24-0.1.4-py3-none-any.whl.
File metadata
- Download URL: agents24-0.1.4-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5b06500f0ae22ccf0a01ad99c34421af615f4fe89bd2a1eac04c83b43ed5939
|
|
| MD5 |
af896d2a3c2ff3b6356bc441a3571120
|
|
| BLAKE2b-256 |
005f81d278153acb07e0aa6db7b031c51b0e435b66e0b8cb5458f93c5e22bcf1
|
Provenance
The following attestation bundles were made for agents24-0.1.4-py3-none-any.whl:
Publisher:
agents24-sdk-release.yml on daniel5426/talmudpedia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agents24-0.1.4-py3-none-any.whl -
Subject digest:
d5b06500f0ae22ccf0a01ad99c34421af615f4fe89bd2a1eac04c83b43ed5939 - Sigstore transparency entry: 2146662246
- Sigstore integration time:
-
Permalink:
daniel5426/talmudpedia@79001093b1050638f9035db33a529526056037f5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/daniel5426
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
agents24-sdk-release.yml@79001093b1050638f9035db33a529526056037f5 -
Trigger Event:
push
-
Statement type: