Skip to content

feat(jsonrpc): add tracked response receipts - #338

Open
danielkov wants to merge 1 commit into
agentclientprotocol:mainfrom
danielkov:feat/tracked-response-receipts
Open

feat(jsonrpc): add tracked response receipts#338
danielkov wants to merge 1 commit into
agentclientprotocol:mainfrom
danielkov:feat/tracked-response-receipts

Conversation

@danielkov

@danielkov danielkov commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Adds optional responder APIs that return a receipt for the outgoing JSON-RPC response:

  • Responder::respond_tracked
  • Responder::respond_with_result_tracked
  • ResponseReceipt

Awaiting the receipt confirms that the response frame has been queued for transport. For a batched request, the receipt waits until the complete batch response is assembled and queued, not merely until one response entry is ready.

The existing responder APIs keep their current behavior. Callers only pay for tracking when they use the new methods.

This gives handlers an ordering point for follow-up work that must happen after the response, such as emitting a notification that refers to a newly accepted resource.

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant