ACPAgentIO implements screentracker.AgentIO using the ACP protocol
| 17 | |
| 18 | // ACPAgentIO implements screentracker.AgentIO using the ACP protocol |
| 19 | type 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 |
| 30 | type acpClient struct { |
nothing calls this directly
no outgoing calls
no test coverage detected