github coder/acp-go-sdk v0.4.9
v0.4.9: Schema 0.4.9 with documented generated APIs

latest releases: v0.13.5, v0.13.4, v0.13.0...
8 months ago

Tracks ACP schema 0.4.9. The Go protocol surface is unchanged — this release is a documentation refresh of the generated bindings and a schema-source switch to upstream release artifacts. No code changes are required to upgrade.

Changed

  • Generated APIs are now documented from the schema (#2 by @ThomasK33). The code generator now emits godoc comments derived from schema.json descriptions onto:

    • methods of the Agent, AgentLoader, AgentExperimental, and Client interfaces, and
    • variant fields of union wrappers such as AgentRequest, ClientRequest, AgentNotification, ClientNotification, ContentBlock, McpServer, SessionUpdate, ToolCallContent, RequestPermissionOutcome, and AvailableCommandInput.

    These comments include links to the protocol docs (e.g. Initialization, Prompt Turn, Terminals, Session Modes) and surface capability gating notes (e.g. that terminal/* requires the terminal client capability, that LoadSession requires the loadSession agent capability, or that SetSessionModel is UNSTABLE) directly in IDE hovers and go doc output. Example:

    type Agent interface {
        // Request parameters for the initialize method. Sent by the client to
        // establish connection and negotiate capabilities.
        // See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/initialization)
        Initialize(ctx context.Context, params InitializeRequest) (InitializeResponse, error)
        // ...
    }
  • Schema artifacts fetched from GitHub Releases. The Makefile now downloads schema/meta.json and schema/schema.json from the upstream agent-client-protocol GitHub Releases assets instead of the raw tag URLs. This only affects contributors regenerating bindings locally; SDK consumers are unaffected.

  • Schema and module version bumped from 0.4.5 to 0.4.9. There are no breaking changes — the Agent, AgentLoader, AgentExperimental, and Client interface signatures, and all generated request/response types, are identical to v0.4.5.

Full Changelog: v0.4.5...v0.4.9

Don't miss a new acp-go-sdk release

NewReleases is sending notifications on new releases.