Repository navigation
feat(a2a): baqueano-a2a client with A2A v1.0 and v0.3 negotiation - #36
Merged
Merged
Conversation
New crate with a library and the baqueano-a2a binary. It polls the agent card, negotiates A2A v1.0 (JSON-RPC, preferred) or v0.3, sends one JSON data part, waits for a terminal task state and writes the first JSON-object data part atomically to --output. One overall deadline, bounded reads, no credentials in errors. Round trips are tested against in-process v1.0 and v0.3 servers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second v0.2 deliverable: the A2A client that module scripts call, as fixed by the module contract.
baqueano-a2a send --agent URL --input FILE --output FILE [--timeout SECS=60]crates/baqueano-a2a(lib + bin), hand-written serde types over the workspacereqwest; no A2A SDK, no new workspace dependencies./.well-known/agent-card.jsonuntil HTTP 200, then negotiates: a v1.0 JSON-RPC interface first, then a v0.3 one (insupportedInterfacesor the v0.3 top-levelurl/additionalInterfaces). Relative interface URLs resolve against the agent base.SendMessage/GetTask,A2A-Version: 1.0,ROLE_USER,{data, mediaType}parts,TASK_STATE_*. v0.3:message/send(blocking: true)/tasks/get,kinddiscriminators, kebab-case states. Shapes checked against the v1.0 proto, the v0.3 JSON schema and the official Rust SDK.--timeout1..=86400); bodies capped at 8 MiB,--inputcapped at 8 MiB; no URLs with credentials or raw bodies in errors. Exit 0 ok, 1 runtime failure, 2 usage.Note for the next release: crates.io Trusted Publishing cannot create a new crate, so the first
baqueano-a2apublish needs a one-time bootstrap token, then a trusted publisher.AI use: implemented with an AI coding assistant under maintainer direction; reviewed (spec verify plus an independent bug review) before merge.