Agent Stack SDK
Project description
Agent Stack Server SDK
Python SDK for packaging agents for deployment to Agent Stack infrastructure.
Overview
The agentstack-sdk provides Python utilities for wrapping agents built with any framework (LangChain, CrewAI, BeeAI Framework, etc.) for deployment on Agent Stack. It handles the A2A (Agent-to-Agent) protocol implementation, platform service integration, and runtime requirements so you can focus on agent logic.
Key Features
- Framework-Agnostic Deployment - Wrap agents from any framework for Agent Stack deployment
- A2A Protocol Support - Automatic handling of Agent-to-Agent communication
- Platform Service Integration - Connect to Agent Stack's managed LLM, embedding, file storage, and vector store services
- Context Storage - Manage data associated with conversation contexts
Installation
uv add agentstack-sdk
Quickstart
import os
from a2a.types import (
Message,
)
from a2a.utils.message import get_message_text
from agentstack_sdk.server import Server
from agentstack_sdk.server.context import RunContext
from agentstack_sdk.a2a.types import AgentMessage
server = Server()
@server.agent()
async def example_agent(input: Message, context: RunContext):
"""Polite agent that greets the user"""
hello_template: str = os.getenv("HELLO_TEMPLATE", "Ciao %s!")
yield AgentMessage(text=hello_template % get_message_text(input))
def run():
try:
server.run(host=os.getenv("HOST", "127.0.0.1"), port=int(os.getenv("PORT", 8000)))
except KeyboardInterrupt:
pass
if __name__ == "__main__":
run()
Run the agent:
uv run my_agent.py
Available Extensions
The SDK includes extension support for:
- Citations - Source attribution (
CitationExtensionServer,CitationExtensionSpec) - Trajectory - Agent decision logging (
TrajectoryExtensionServer,TrajectoryExtensionSpec) - Settings - User-configurable agent parameters (
SettingsExtensionServer,SettingsExtensionSpec) - LLM Services - Platform-managed language models (
LLMServiceExtensionServer,LLMServiceExtensionSpec) - Agent Details - Metadata and UI enhancements (
AgentDetail) - And more - See Documentation
Each extension provides both server-side handlers and A2A protocol specifications for seamless integration with Agent Stack's UI and infrastructure.
Resources
Contributing
Contributions are welcome! Please see the Contributing Guide for details.
Support
Developed by contributors to the BeeAI project, this initiative is part of the Linux Foundation AI & Data program. Its development follows open, collaborative, and community-driven practices.
Project details
Release history Release notifications | RSS feed
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 agentstack_sdk-0.7.1.tar.gz.
File metadata
- Download URL: agentstack_sdk-0.7.1.tar.gz
- Upload date:
- Size: 57.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34021bb4a818a16b3417c9924a4579a822b6b3ad736af1824871a255d7d9ce8b
|
|
| MD5 |
73c2f916a41ae77071b3e54e166cdc63
|
|
| BLAKE2b-256 |
260fa2af11afde107b9877ccaa3d2338e7a45280e627216e2f313c9e9c85c5bf
|
Provenance
The following attestation bundles were made for agentstack_sdk-0.7.1.tar.gz:
Publisher:
release.yml on i-am-bee/agentstack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentstack_sdk-0.7.1.tar.gz -
Subject digest:
34021bb4a818a16b3417c9924a4579a822b6b3ad736af1824871a255d7d9ce8b - Sigstore transparency entry: 1199153503
- Sigstore integration time:
-
Permalink:
i-am-bee/agentstack@9b59a019aa5dcab76f1d4b9b910db3ea4ba4c435 -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/i-am-bee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9b59a019aa5dcab76f1d4b9b910db3ea4ba4c435 -
Trigger Event:
push
-
Statement type:
File details
Details for the file agentstack_sdk-0.7.1-py3-none-any.whl.
File metadata
- Download URL: agentstack_sdk-0.7.1-py3-none-any.whl
- Upload date:
- Size: 99.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e32eede7de6b478a1c760c75b736793019fe9c05adc1f50bbc897e78f8d378b3
|
|
| MD5 |
e3f4cc16768791b25d1004dbe9507f98
|
|
| BLAKE2b-256 |
2f2331cb0507a11a9092e49ce48a15428e18b1493fbd85029b99dbc0228ab805
|
Provenance
The following attestation bundles were made for agentstack_sdk-0.7.1-py3-none-any.whl:
Publisher:
release.yml on i-am-bee/agentstack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentstack_sdk-0.7.1-py3-none-any.whl -
Subject digest:
e32eede7de6b478a1c760c75b736793019fe9c05adc1f50bbc897e78f8d378b3 - Sigstore transparency entry: 1199153578
- Sigstore integration time:
-
Permalink:
i-am-bee/agentstack@9b59a019aa5dcab76f1d4b9b910db3ea4ba4c435 -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/i-am-bee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9b59a019aa5dcab76f1d4b9b910db3ea4ba4c435 -
Trigger Event:
push
-
Statement type: