Skip to content

[DOCS] Document message/send JSON-RPC method in TypeScript ADK #62

Closed

Description

@claude

Summary

The TypeScript ADK (@inference-gateway/adk) shipped its first A2A JSON-RPC method handler in inference-gateway/typescript-adk#66: a synchronous message/send implementation that mirrors the Go ADK's HandleMessageSend / CreateTaskFromMessage semantics. The handler validates MessageSendParams, creates a PENDING task, persists and enqueues it via TaskStorage, and returns the wire-format Task without waiting for any background worker.

Until now, the docs site's A2A coverage only references the Go ADK. Newcomers building agents in TypeScript will land on a2a.md looking for ADK guidance and find nothing TS-specific. This ticket also creates the opportunity to bootstrap a dedicated TypeScript ADK section if one does not yet exist.

Acceptance Criteria

  • New docs section (under a2a.md or a dedicated typescript-adk.md) covering handler registration via server.registerMethod(MESSAGE_SEND_METHOD, createMessageSendHandler({ storage })).
  • Document the request shape (MessageSendParams with required message, optional configuration, optional metadata) and the response shape (wire-format Task with initial PENDING status).
  • Document the validation contract: missing message, non-object message, and missing/empty message.parts all surface as JSON-RPC -32602 Invalid Params.
  • Document the id semantics: message.contextId is reused when present (otherwise a fresh UUID is minted), message.messageId is minted when empty, and the task id is always freshly minted.
  • Document the synchronous-from-caller contract: the handler enqueues the task and returns immediately; downstream processing happens out of band.
  • Call out parity with the Go ADK explicitly so readers can cross-reference Go examples in inference-gateway/adk.
  • Add a runnable curl + raw JSON-RPC example mirroring the integration fixtures in tests/server/message-send.test.ts.

Notes

  • Source PR: feat: implement message/send JSON-RPC method typescript-adk#66 (merged).
  • Package is @inference-gateway/adk, ESM-only, Node 24 LTS+, currently in early bootstrap (public API not stable). Flag the pre-1.0 status so readers know the surface may shift.
  • ASCII-only constraint: no em dash or en dash anywhere in this issue body or the resulting docs PR.

Activity

  1. edenreich commented on May 26, 2026

    @edenreich
    Contributor

    @claude Can you document this? use /maintainer

  2. added theissue type on May 26, 2026
  3. added
    documentation
    on May 26, 2026
  4. claude commented on May 26, 2026

    @claude
    ContributorAuthor

    Claude finished @edenreich's task in 5m 49s —— View job • claude/issue-62-20260526-2222 • Create PR ➔


    Documenting message/send in the TypeScript ADK

    • Load maintainer skill for ecosystem guidance
    • Explore current docs structure (a2a.md, sidebar, .vitepress/config.ts)
    • Cross-reference TypeScript ADK PR docs(typescript-adk): document message/stream SSE event sequence #66 source files to capture handler signature, validation, id semantics, wire status
    • Decided: dedicated typescript-adk.md under "Agent-To-Agent (A2A)" sidebar group
    • Write typescript-adk.md (handler registration, validation contract, id semantics, sync contract, curl + raw JSON-RPC example, Go ADK parity callout, pre-1.0 note)
    • Add page to themeConfig.sidebar and themeConfig.nav (Protocols menu)
    • Cross-link from a2a.md (tip block in "Creating Custom Agents" + related-resources entry)
    • npm run lint:md (clean), npm run format:check (clean for files touched by this PR), npm run build (succeeds, page emitted, sitemap entry present)
    • Commit 635676e

    What landed

    • New page: typescript-adk.md covering every acceptance-criteria item from the issue:
      • Handler registration via server.registerMethod(MESSAGE_SEND_METHOD, createMessageSendHandler({ storage }))
      • Request shape (MessageSendParams with required message, optional configuration, optional metadata)
      • Response shape (wire-format Task) - including the PENDING (internal) -> TASK_STATE_SUBMITTED (wire) status mapping that the source code reveals but the issue body didn't surface
      • -32602 Invalid Params validation contract for missing message, non-object message, missing/empty message.parts
      • Id semantics: task id always minted, contextId/messageId reused-or-minted
      • Synchronous-from-caller contract with "enqueued before return" callout
      • Explicit parity statement with the Go ADK + link
      • Runnable curl + raw JSON-RPC happy-path + invalid-params examples mirroring tests/server/message-send.test.ts
      • Pre-1.0 status callout up top
    • Nav wiring: added under Agent-To-Agent (A2A) in the left sidebar and under Protocols in the top nav.
    • a2a.md: added a tip in the "Creating Custom Agents" section and a related-resources entry pointing at the new page.

    Notes for the maintainer

    • .github/workflows/infer.yml has a pre-existing prettier formatting drift (single vs double quote on trigger-phrase) that was introduced by the recent chore: update infer.yml commit. npm run format:check flags it on main, so CI on this PR will also flag it. I cannot modify workflow files (GitHub App permission limit). A one-character follow-up commit by you (prettier --write .github/workflows/infer.yml) clears it.

    • ASCII-only constraint honoured throughout - no em or en dashes in the new page, the a2a.md edits, or the commit/PR copy.

    • Branch: claude/issue-62-20260526-2222 - Commit: 635676e

  5. moved this from Todo to In progress in 2026on May 26, 2026
  6. moved this from In progress to Done in 2026on May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions