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

Interface ChunkableAgentIO

x/acpio/acp_conversation.go:21–24  ·  view source on GitHub ↗

ChunkableAgentIO extends AgentIO with chunk callback support for streaming responses. This interface is what ACPConversation needs from its AgentIO implementation.

Source from the content-addressed store, hash-verified

19// ChunkableAgentIO extends AgentIO with chunk callback support for streaming responses.
20// This interface is what ACPConversation needs from its AgentIO implementation.
21type ChunkableAgentIO interface {
22 st.AgentIO
23 SetOnChunk(fn func(chunk string))
24}
25
26// ACPConversation tracks conversations with ACP-based agents.
27// Unlike PTY-based Conversation, ACP has blocking writes where the

Implementers 2

mockAgentIOx/acpio/acp_conversation_test.go
ACPAgentIOx/acpio/acpio.go

Calls

no outgoing calls

Tested by

no test coverage detected