Creates a builder for starting and observing an ACP session.
Pass a string for the common case where only cwd is needed, or pass a
full NewSessionRequest when you need MCP servers, _meta, or additional
session fields.
Creates a builder for starting and observing an ACP session.
Pass a string for the common case where only cwd is needed, or pass a
full NewSessionRequest when you need MCP servers, _meta, or additional
session fields.
Sends a request to the agent by ACP method name.
Built-in method literals infer their params and response types. Custom methods can specify their response and params types with generics.
Sends a request to the agent by ACP method name.
Built-in method literals infer their params and response types. Custom methods can specify their response and params types with generics.
Optionalparams: ParamsSends a notification to the agent by ACP method name.
Built-in method literals infer their params type. Custom notifications can specify their params type with a generic.
Sends a notification to the agent by ACP method name.
Built-in method literals infer their params type. Custom notifications can specify their params type with a generic.
Optionalparams: Params
Context used by clients to call agent-side ACP methods.
connectWithpasses aClientContextto the callback. Client handlers also receive one asctx.agentwhen they need to call back into the agent.