Skip to content

fix(output): show protocol version in card Interfaces - #89

Open
abhicodes-007 wants to merge 3 commits into
a2aproject:mainfrom
abhicodes-007:fix/88-card-interfaces-protocol-version
Open

abhicodes-007 wants to merge 3 commits into
a2aproject:mainfrom
abhicodes-007:fix/88-card-interfaces-protocol-version

Conversation

@abhicodes-007

Copy link
Copy Markdown

Summary

  • formatCard prints ProtocolVersion beside each interface binding + URL when set.
  • Cards that expose JSONRPC at more than one protocol version are now distinguishable.

Fixes #88

Test plan

  • go test ./internal/output/

Abhishek Deepak and others added 3 commits October 5, 2026 22:02
formatCard printed only ProtocolBinding and URL, so a card exposing
JSONRPC at both 0.3 and 1.0 looked like two identical lines. Include
ProtocolVersion when present.

Fixes a2aproject#88
Use generic domain name like `example.com`

@msampathkumar msampathkumar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completed a quick testing. Here is the current expected output with this changes.

I wonder if there is a better readability format of showing v1.0 and v0.3.

    Name:         Example Agent
    Description:  Demo agent exposing JSON-RPC at two protocol versions plus REST
    Version:      1.0.0
    Interfaces:
      JSONRPC      0.3    https://example.com/a2a/v03
      JSONRPC      1.0    https://example.com/a2a
      HTTP+JSON    https://example.com/rest
    Streaming:    true
    Skills:
      echo                 Echo

@msampathkumar

Copy link
Copy Markdown
Member

Leaning on following pattern

    Interfaces:
      PROTOCOL   BINDING      URL
      A2A v0.3   JSONRPC      https://example.com/a2a/v03
      A2A v1.0   JSONRPC      https://example.com/a2a

We can also do

    Interfaces:
      JSONRPC (A2A v0.3)     https://example.com/a2a/v03
      JSONRPC (A2A v1.0)     https://example.com/a2a

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.

bug: a2a get card does not show the protocol version as part of Interfaces output

2 participants