A note on the language of ACP - #606
Merged
Merged
Conversation
…liges the other side to send
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.
Adds
docs/agent/acp-language.md: what the Agent Client Protocol's messages mean, and what each one obliges the other side to send, in what order. It is written for whoever builds the bridge between ACP and an agent runtime. It describes ACP itself, not labkit's implementation;packages/app-acp/protocol-reference.mdanddocs/agent/acp-conformance.mdkeep covering that.docs/agent/guidance.mdlinks to it.Contents
@agentclientprotocol/sdk1.5.0 (AgentRequestParamsByMethod→AgentRequestResponsesByMethodand the client-side maps), and what the types leave out: ordering rules such assession/loadreplaying before it answers.session/updatekinds, tool calls, permission, client file system, terminals, elicitation, config options and modes, authentication, transports, extensibility and error codes.Sources
The specification repository agentclientprotocol/agent-client-protocol at commit
90f44f4(stable pages underdocs/protocol/v1/, RFDs underdocs/rfds/), and the SDK'sdist/schema/types.gen.d.tsanddist/acp.d.ts. Three research passes extracted rules with their sources, one each for lifecycle, prompt turn and tools/client services, and the note was written from those results. Rules that exist only in UNSTABLE SDK types, draft pages or RFDs are marked unstable.Verification
Docs only. The method-to-type table was checked against
AgentRequestHandlersByMethodandClientRequestHandlersByMethodin the installed SDK, and the package exports were checked to confirm the zod schemas are not exported. The PR touches nothing underpackages/, so it gets no area label.