Agent Authoring and A2A
Use this sub-skill when a task is about writing a Python Bindu agent, calling bindufy(), validating handler/config shape, advertising skills, reading agent cards, sending A2A JSON-RPC messages, polling tasks, or debugging the task lifecycle.
Route here for
- Creating a minimal Python agent with
bindu.penguin.bindufy.bindufy(config, handler).
- Understanding handler return values: plain completion text,
input-required, and auth-required structured responses.
- Building or validating Bindu config dictionaries:
author, name, deployment.url, skills, private_skills, storage, scheduler, execution_cost, and telemetry/debug fields.
- Understanding
AgentManifest, BinduApplication, TaskManager, ManifestWorker, and A2A JSON-RPC methods.
- Loading
skill.yaml or SKILL.md skill bundles and exposing /agent/skills documentation.
- Interpreting
/agent/negotiation skill-match results.
Route elsewhere
- DID signatures, Hydra bearer auth, private catalog authorization, mTLS, and x402 internals →
../security-identity-and-payments/.
- TypeScript SDK, proto changes, gRPC registration, callback ports, and heartbeats →
../grpc-and-language-sdks/.
bindu serve, bindu deploy, boxd runtime, source packaging, storage/scheduler operations, and observability → ../deployment-runtime-and-operations/.
- Gateway planner and Inbox operator workflows →
../gateway-inbox-and-orchestration/.
References and helper
references/api-reference.md — Python API surface, config keys, handler contract, app routes, and skills loader.
references/a2a-task-lifecycle.md — JSON-RPC message/send, tasks/get, states, ownership, artifacts, and polling.
references/skills-and-negotiation.md — skill formats, endpoints, private/public distinction, and negotiation scoring.
references/troubleshooting.md — handler/config/skill/UUID/task-state troubleshooting.
scripts/inspect_bindu_agent_surface.py — safe package-surface inspection without starting a server.
Minimal pattern
from bindu.penguin.bindufy import bindufy
def handler(messages):
latest = messages[-1].get("content", "") if messages else ""
if not latest:
return {"state": "input-required", "prompt": "Send a message."}
return f"Echo: {latest}"
bindufy({
"author": "you@example.com",
"name": "echo-agent",
"description": "A small Bindu echo agent.",
"deployment": {"url": "http://localhost:3773", "expose": False},
"skills": [],
"storage": {"type": "memory"},
"scheduler": {"type": "memory"},
}, handler)
Operating reminders
- The handler must be callable and must accept exactly one parameter named
messages for local Python agents.
deployment.url is required and must be HTTP or HTTPS.
message/send returns a submitted task; poll tasks/get or stream status for the final answer.
- Terminal tasks are immutable. Continue with a new task id in the same context.
- Skills describe capabilities for discovery/routing; the handler still implements behavior.
1---2name: agent-authoring-and-a2a3description: "Author, run, and troubleshoot Python Bindu agents, A2A task flow,4 skill advertising, and negotiation surfaces."5metadata:6 source: https://skillmd.com/skills/vectorspacelab/agent-authoring-and-a2a7 disco-role: operating8disable-model-invocation: true9license: NOASSERTION10---1112# Agent Authoring and A2A1314Use this sub-skill when a task is about writing a Python Bindu agent, calling `bindufy()`, validating handler/config shape, advertising skills, reading agent cards, sending A2A JSON-RPC messages, polling tasks, or debugging the task lifecycle.1516## Route here for1718- Creating a minimal Python agent with `bindu.penguin.bindufy.bindufy(config, handler)`.19- Understanding handler return values: plain completion text, `input-required`, and `auth-required` structured responses.20- Building or validating Bindu config dictionaries: `author`, `name`, `deployment.url`, `skills`, `private_skills`, `storage`, `scheduler`, `execution_cost`, and telemetry/debug fields.21- Understanding `AgentManifest`, `BinduApplication`, `TaskManager`, `ManifestWorker`, and A2A JSON-RPC methods.22- Loading `skill.yaml` or `SKILL.md` skill bundles and exposing `/agent/skills` documentation.23- Interpreting `/agent/negotiation` skill-match results.2425## Route elsewhere2627- DID signatures, Hydra bearer auth, private catalog authorization, mTLS, and x402 internals → `../security-identity-and-payments/`.28- TypeScript SDK, proto changes, gRPC registration, callback ports, and heartbeats → `../grpc-and-language-sdks/`.29- `bindu serve`, `bindu deploy`, boxd runtime, source packaging, storage/scheduler operations, and observability → `../deployment-runtime-and-operations/`.30- Gateway planner and Inbox operator workflows → `../gateway-inbox-and-orchestration/`.3132## References and helper3334- `references/api-reference.md` — Python API surface, config keys, handler contract, app routes, and skills loader.35- `references/a2a-task-lifecycle.md` — JSON-RPC message/send, tasks/get, states, ownership, artifacts, and polling.36- `references/skills-and-negotiation.md` — skill formats, endpoints, private/public distinction, and negotiation scoring.37- `references/troubleshooting.md` — handler/config/skill/UUID/task-state troubleshooting.38- `scripts/inspect_bindu_agent_surface.py` — safe package-surface inspection without starting a server.3940## Minimal pattern4142```python43from bindu.penguin.bindufy import bindufy4445def handler(messages):46 latest = messages[-1].get("content", "") if messages else ""47 if not latest:48 return {"state": "input-required", "prompt": "Send a message."}49 return f"Echo: {latest}"5051bindufy({52 "author": "you@example.com",53 "name": "echo-agent",54 "description": "A small Bindu echo agent.",55 "deployment": {"url": "http://localhost:3773", "expose": False},56 "skills": [],57 "storage": {"type": "memory"},58 "scheduler": {"type": "memory"},59}, handler)60```6162## Operating reminders6364- The handler must be callable and must accept exactly one parameter named `messages` for local Python agents.65- `deployment.url` is required and must be HTTP or HTTPS.66- `message/send` returns a submitted task; poll `tasks/get` or stream status for the final answer.67- Terminal tasks are immutable. Continue with a new task id in the same context.68- Skills describe capabilities for discovery/routing; the handler still implements behavior.