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

Interface Emitter

lib/screentracker/conversation.go:95–100  ·  view source on GitHub ↗

Emitter receives conversation state updates.

Source from the content-addressed store, hash-verified

93
94// Emitter receives conversation state updates.
95type Emitter interface {
96 EmitMessages([]ConversationMessage)
97 EmitStatus(ConversationStatus)
98 EmitScreen(string)
99 EmitError(message string, level ErrorLevel)
100}
101
102type ConversationMessage struct {
103 Id int `json:"id"`

Callers 12

StartMethod · 0.65
handleChunkMethod · 0.65
executePromptMethod · 0.65
StartMethod · 0.65
SendMethod · 0.65
StartMethod · 0.65
handleChunkMethod · 0.65
executePromptMethod · 0.65
StartMethod · 0.65
handleChunkMethod · 0.65
executePromptMethod · 0.65
StartMethod · 0.65

Implementers 5

testEmitterlib/screentracker/pty_conversation_tes
noopEmitterlib/screentracker/pty_conversation.go
EventEmitterlib/httpapi/events.go
mockEmitterx/acpio/acp_conversation_test.go
noopEmitterx/acpio/acp_conversation.go

Calls

no outgoing calls

Tested by

no test coverage detected