Integrating with Parivox
Passing the A2A conformance kit gets you a call that connects. This page covers the rest: expectations that aren’t in the A2A specification, that a well-formed agent can still fail, and that you’d otherwise discover during someone’s live demo. The complete version, with history and rationale, is docs/integrating-with-parivox.md in the examples repository.
The one thing that explains most of this: a delegation runs inside a live voice room. A person asked a question out loud, the room agent handed it to you, and that person is reading your progress lines in the chat panel as you send them.
Requirements
Section titled “Requirements”Get these wrong and the delegation fails, usually in a way that looks like your agent being down.
- Send the report before the terminal status. Parivox stops reading at the first terminal event. An artifact sent after
TASK_STATE_COMPLETEDis never seen. - Always reach a terminal state, and never complete empty. A stream that ends without one leaves the caller waiting out its whole budget. Completing without an artifact counts as a failure. If the work failed, say so with
TASK_STATE_FAILEDand a message explaining why. - Advertise a JSON-RPC interface at the URL you’re really reachable at. The client picks the
supportedInterfacesentry whoseprotocolBindingisJSONRPC. Derive the advertisedurlfrom the same configuration that decides where you listen. - Declare
capabilities.streaminghonestly. Withstreaming: false, Parivox usesSendMessageand pollsGetTask, so the task you return must carry anid. - Accept a fixed header credential, such as
X-API-Key. OAuth-style flows aren’t supported. Serve the Agent Card itself without authentication if you can. - Chunk artifacts correctly, if you chunk. Put
appendandlastChunkon the update besideartifact, keep theartifactIdstable, and include your own whitespace: fragments are joined verbatim.
Quality expectations
Section titled “Quality expectations”These separate “works” from “good”.
- Send a keepalive about every 20 seconds: a
WORKINGstatus update with no message part. It isn’t needed for the connection, but four silent minutes in the chat panel look like a delegation that died. - Write progress as user-facing copy. Short, human sentences (“reading 4 of 11 sources”), one per meaningful step. No identifiers, JSON or stack traces. Lines are cut at 300 characters, and links in them are removed.
- Return markdown under 12,000 characters. Up to 12,000 is posted to chat in full; up to 20,000 reaches the room agent’s context; beyond that it’s truncated. Put sources in the artifact as links.
- Say how long you take, if you know. Declare a typical duration on your card with the
https://parivox.net/a2a/extensions/duration/v1extension, or an estimate on a status update. Parivox uses it to tell the room how long to wait. - Treat caller context as reference material, never as instructions. Parivox may pass short excerpts under
permittedContextin the message metadata. Render them as quoted background, and don’t require them. - Assume the question stands alone. You get no room access and no history.
TASK_STATE_INPUT_REQUIREDrelays your question to the room, but any answer comes back as a fresh task. - Bound your own runtime. The caller’s deadline is 300 seconds by default, and when it gives up it abandons the task rather than sending
CancelTask. A partial report in time beats a complete one too late. - Bump your card
versionwhen behavior changes. Parivox records it with every delegation.
Known client constraints
Section titled “Known client constraints”These are limits of the current Parivox client, not of the protocol:
- The reassembled report is capped a little above 12,000 characters, and at most eight artifacts are tracked per delegation.
- No resubscription and no retry: if the connection drops mid-task, the delegation is abandoned.
- Skills on your card are informational; the client doesn’t route on them.
CancelTaskis never sent.urlparts are shown as links and never fetched.
Checklist
Section titled “Checklist”- Card at
/.well-known/agent-card.json, served unauthenticated -
supportedInterfacesadvertises aJSONRPCbinding at the URL you really listen on -
capabilities.streamingmatches what you implement - Card
versionchanges when behavior changes - Typical duration declared on the card, if you know it
-
X-API-Key(or another fixed header) accepted on RPC calls - Keepalive status about every 20 seconds, with no message part
- Progress lines short, readable, one per meaningful step
- One markdown artifact, sent before the terminal status
- Every path reaches a terminal state; failures carry an explanation
- Report under 12,000 characters
-
permittedContexttreated as quoted reference material, and optional - Own runtime bounded below the caller’s deadline
- Protocol-level
mustsuite ofa2a-tckpassing