Developer SDK + CLI for building, packaging, and deploying A2A agents.
Project description
a2a-pack
Developer SDK + CLI for building, packaging, and deploying A2A agents.
One Python class becomes a sandboxed, discoverable, MCP-compatible AI agent on the a2a cloud platform. Other agents reach yours via HMAC-signed grants. The platform owns deployment, execution, permissions, and (when you're ready) billing.
pip install a2a-pack
a2a signup --email you@example.com --password ...
a2a init research-agent
cd research-agent
a2a deploy
# → https://research-agent.a2acloud.io (TLS, MCP, OpenAPI, all wired)
What an agent looks like
from pydantic import BaseModel
from a2a_pack import (
A2AAgent, LLMProvisioning, NoAuth, Pricing, RunContext, skill,
)
class GreeterConfig(BaseModel):
suffix: str = "!"
class Greeter(A2AAgent[GreeterConfig, NoAuth]):
name = "greeter"
description = "Say hi."
version = "0.1.0"
config_model = GreeterConfig
auth_model = NoAuth
# Use the caller's own LLM key (forwarded by the platform) — the
# author's price stays small; the LLM bill goes to the caller's
# provider directly.
llm_provisioning = LLMProvisioning.CALLER_PROVIDED
pricing = Pricing(price_per_call_usd=0.01, caller_pays_llm=True)
@skill(description="Greet someone.")
async def greet(self, ctx: RunContext[NoAuth], who: str) -> str:
await ctx.emit_progress(f"greeting {who}")
return f"hello {who}{self.config.suffix}"
That's it. a2a deploy packages the source, the control plane builds
the image, ArgoCD reconciles, you get a public URL.
Public surface
| Concept | Where |
|---|---|
A2AAgent base class + @skill decorator |
a2a_pack.agent |
RunContext, ctx.llm, ctx.ask, ctx.request_scope |
a2a_pack.context |
| Grant mint/verify (HMAC, audience-bound, glob-filtered, time-limited) | a2a_pack.grants |
| Workspace negotiation surface | a2a_pack.workspace |
| Sandbox client (microVM via libkrun) | a2a_pack.sandbox |
| Agent-to-agent client (HTTP, in-memory, custom) | a2a_pack.a2a_client |
| MCP server (skills → tools, mountable into your FastAPI app) | a2a_pack.mcp |
| Lifecycle / Resources / Pricing / LLMProvisioning declarations | a2a_pack.runtime |
| Card schema (auto-derived from your class) | a2a_pack.card |
Full reference + auto-generated docs at https://docs.a2acloud.io.
Self-hosting
The platform pieces (control plane, sandbox runtime, gitea, ArgoCD, MinIO, LiteLLM) live at gitea.a2acloud.io — the SDK is the only piece you need on PyPI. If you want to run the whole stack locally or in your own cluster, the bootstrap recipe is in the platform README.
License
MIT — see LICENSE.
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 a2a_pack-0.1.1.tar.gz.
File metadata
- Download URL: a2a_pack-0.1.1.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7921bd5e47aaa5b86613a3e109946a53c85285eaec3db2060c02c7d41ffac58
|
|
| MD5 |
416549cca9b9bf8c37d5da6a525562fb
|
|
| BLAKE2b-256 |
ccc2cff6695dd737af7169e86749c4db5b66d3c2b75a9515bf712c4679e3731c
|
File details
Details for the file a2a_pack-0.1.1-py3-none-any.whl.
File metadata
- Download URL: a2a_pack-0.1.1-py3-none-any.whl
- Upload date:
- Size: 58.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c86d3935bf21bae652f016dd8ebfd28ef398985cec52ba8f11705bd2aacf7da0
|
|
| MD5 |
567372fd48e29582ce98a5a14de6882c
|
|
| BLAKE2b-256 |
2dfe65f28fa98cf3c38d79b6232b738cace7dc3c414211a1b4be934ced409f89
|