Skip to content

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.

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_COMPLETED is 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_FAILED and a message explaining why.
  • Advertise a JSON-RPC interface at the URL you’re really reachable at. The client picks the supportedInterfaces entry whose protocolBinding is JSONRPC. Derive the advertised url from the same configuration that decides where you listen.
  • Declare capabilities.streaming honestly. With streaming: false, Parivox uses SendMessage and polls GetTask, so the task you return must carry an id.
  • 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 append and lastChunk on the update beside artifact, keep the artifactId stable, and include your own whitespace: fragments are joined verbatim.

These separate “works” from “good”.

  • Send a keepalive about every 20 seconds: a WORKING status 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/v1 extension, 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 permittedContext in 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_REQUIRED relays 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 version when behavior changes. Parivox records it with every delegation.

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.
  • CancelTask is never sent.
  • url parts are shown as links and never fetched.
  • Card at /.well-known/agent-card.json, served unauthenticated
  • supportedInterfaces advertises a JSONRPC binding at the URL you really listen on
  • capabilities.streaming matches what you implement
  • Card version changes 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
  • permittedContext treated as quoted reference material, and optional
  • Own runtime bounded below the caller’s deadline
  • Protocol-level must suite of a2a-tck passing