MCPcopy Create free account
hub / github.com/coder/agentapi / ACPAgentIO

Struct ACPAgentIO

x/acpio/acpio.go:19–27  ·  view source on GitHub ↗

ACPAgentIO implements screentracker.AgentIO using the ACP protocol

Source from the content-addressed store, hash-verified

17
18// ACPAgentIO implements screentracker.AgentIO using the ACP protocol
19type ACPAgentIO struct {
20 ctx context.Context
21 conn *acp.ClientSideConnection
22 sessionID acp.SessionId
23 mu sync.RWMutex
24 response strings.Builder
25 logger *slog.Logger
26 onChunk func(chunk string) // called on each streaming chunk
27}
28
29// acpClient implements acp.Client to handle callbacks from the agent
30type acpClient struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected