agent-runtime-sdk
Single-agent runtime SDK for exposing MCP tools as an A2A-compatible agent service.
Install
pip install agent-runtime-sdk
Install optional Langfuse/smolagents observability support:
pip install "agent-runtime-sdk[observability]"
Basic Usage
Create an agent project:
my-agent/
├── agent_app/
│ ├── agent.yaml
│ └── plugin.py
└── main.py
Example main.py:
from pathlib import Path
from agent_runtime.standalone import build_single_agent_app, run_single_agent_app
app = build_single_agent_app(
Path(__file__).resolve().parent / "agent_app" / "agent.yaml"
)
if __name__ == "__main__":
run_single_agent_app(app)
Example SDK import:
from agent_runtime import AgentBuilder
Minimal Configuration
Example agent_app/agent.yaml:
agent:
agent_id: example-agent
name: Example Agent
description: Example A2A agent backed by MCP tools.
runtime:
public_base_url: ${AGENT_PUBLIC_BASE_URL:-http://127.0.0.1:10020}
model:
provider: openai_compatible
api_base: ${MODEL_SOURCE_API_BASE}
model_id: ${MODEL_SOURCE_MODEL_ID}
api_key_env: MODEL_SOURCE_API_KEY
mcps:
- name: example
url: ${MCP_EXAMPLE_URL}
transport: streamable-http
Run:
export MODEL_SOURCE_API_BASE="https://your-model-api.example.com"
export MODEL_SOURCE_MODEL_ID="your-model-id"
export MODEL_SOURCE_API_KEY="your-api-key"
export MCP_EXAMPLE_URL="http://127.0.0.1:8000/mcp"
export AGENT_PUBLIC_BASE_URL="http://127.0.0.1:10020"
python main.py
Langfuse
After installing agent-runtime-sdk[observability], configure:
export MCP_AGENT_LANGFUSE_ENABLED=true
export LANGFUSE_BASE_URL="http://your-langfuse-host:3000"
export LANGFUSE_PUBLIC_KEY="pk-lf-..."
export LANGFUSE_SECRET_KEY="sk-lf-..."
Set MCP_AGENT_LANGFUSE_ENABLED=false to disable instrumentation.
Metadata
Release files for agent-runtime-sdk 0.1.1
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 |
|---|---|---|---|---|
| agent_runtime_sdk-0.1.1.tar.gz | 51.8 kB | Without provenance | Details for agent_runtime_sdk-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_runtime_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for agent_runtime_sdk-0.1.1-py3-none-any.whl |
Total release size: 120.2 kB
Release files / agent_runtime_sdk-0.1.1.tar.gz
| Download URL | agent_runtime_sdk-0.1.1.tar.gz |
|---|---|
| Size | 51.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd74ac3a36c2c58f3835b69b825d67434735fcbcf75f6057093413fc9b44f223
|
|
BLAKE2b-256 checksum How to use checksums |
eba8a4ae0e9ac71bcd04865f7a777deb2db1d68a693713a36688c397e2e43096
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / agent_runtime_sdk-0.1.1-py3-none-any.whl
| Download URL | agent_runtime_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 68.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb50da2e61fb1fc536cc15f0ccc9203960d60a3d8bc315095e2ff101d7c49000
|
|
BLAKE2b-256 checksum How to use checksums |
748242eaf7b9b56b6684c6111afbd1562d5f20d84ae62eafd551ef3fa943eb80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for agent-runtime-sdk 0.1.1
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.