A2A guide
Hybridbox exposes an A2A gateway for agent-oriented function discovery, session management, and function execution.1. Discover the agent card
Fetch the agent card first. It advertises gateway identity, auth, the function list URL, the JSON-RPC endpoint, and session bootstrap URLs.2. Authenticate or create a session
Most useful functions need a bearer session. Login returns bothsession_id and session_token; use the token in the Authorization header and pass the session ID in execute requests.
Login request:
session_id and session_token exactly like a user session:
3. List available functions
Use/v1/functions to list pseudo-functions visible to the current session.
4. Execute code through /v1/execute
Use code mode for function execution. A request can contain one call or multiple calls. Code requests run synchronously by default.
One function call:
- one function call per line
- variables and expression reuse
ifstatementsforloopsrange(...)- sequential execution in source order
responses[]contains every function call result in order.result.last_valuecontains the result from the last successful function call.- If a call fails, the response includes completed calls before the failure and identifies the failed call index.
5. /v1/execute vs /rpc
Both surfaces can execute the same code path, but they are meant for different clients.
/v1/executeis the direct HTTP execution endpoint. Use it when your client just wants to run Hybridbox functions./rpcis the A2A JSON-RPC message surface. Use it when your client speaks A2Amessage/sendand wants requests wrapped as JSON-RPC messages.
Function catalog
Open the function catalog when you need callable names, compact signatures, arguments, return fields, auth metadata, and public API route mappings.Function catalog
Browse generated function references by domain.