corti-agent-sdk
corti-agent-sdk is the Python SDK for building, deploying, and observing autonomous agents on the Corti runtime. It provides the primitives Corti expects — tool definitions, memory stores, guardrails, and hand-offs — and a typed client for running agents locally, in a sandbox, or against the Corti hosted control plane.
Features
- Define agents with typed tools, schemas, and system prompts as dataclasses.
- Run agents locally or dispatch them to a Corti sandbox for isolation.
- First-class memory: short-term scratchpad and long-term vector memory.
- Guardrails and policy hooks for input/output validation and PII redaction.
- Structured tracing and span emission compatible with OpenTelemetry.
- Streaming token, tool-call, and step events for live UIs.
Installation
pip install corti-agent-sdk
Quick start
from corti_agent_sdk import Agent, tool, run
@tool
def get_order(order_id: str) -> dict:
"""Look up a customer order."""
return {"id": order_id, "status": "shipped"}
agent = Agent(
name="support",
instructions="You are a helpful support agent. Use tools before answering.",
tools=[get_order],
)
for event in run(agent, "Where is order 1042?"):
print(event.type, event.payload)
API
Agent(name, instructions, tools, memory=..., guardrails=...)— agent definition.@tool— decorator that registers a function as a typed, schema-derived tool.run(agent, input, stream=True)— execute an agent, yielding step and token events.CortiClient(api_key=...)— control-plane client for deploying and monitoring agents.
Configuration
Set CORTI_API_KEY to use the hosted control plane. Local runs need no key.
License
MIT
Metadata
Release files for corti-agent-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| corti_agent_sdk-0.1.0.tar.gz | 5.3 kB | Without provenance | Details for corti_agent_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| corti_agent_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for corti_agent_sdk-0.1.0-py3-none-any.whl |
Total release size: 11.4 kB
Release files / corti_agent_sdk-0.1.0.tar.gz
| Download URL | corti_agent_sdk-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccda71323d281f2776e21e7bf65436c473c23bfa0f060eac2560b519f8803f96
|
|
BLAKE2b-256 checksum How to use checksums |
fe3642b008e9be85ea88c960ff31a0c8df06b007c917e5812dc1bb46e3786704
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / corti_agent_sdk-0.1.0-py3-none-any.whl
| Download URL | corti_agent_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be534309b8a8b9ddbf72632cbca6cc365f794c446e31daf7bdf512526dfee928
|
|
BLAKE2b-256 checksum How to use checksums |
aac0b70b921c91b2dbf5ed40c42ce8d60920ed537fae07a07ba1345c8892e97b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for corti-agent-sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.