MCPcopy Index your code
hub / github.com/coder/coder / NewSSEParser

Function NewSSEParser

aibridge/sse_parser.go:29–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func NewSSEParser() *SSEParser {
30 return &SSEParser{
31 events: make(map[string][]SSEEvent),
32 }
33}
34
35func (p *SSEParser) Parse(reader io.Reader) error {
36 scanner := bufio.NewScanner(reader)

Callers 4

TestAnthropicMessagesFunction · 0.92
TestErrorHandlingFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestAnthropicMessagesFunction · 0.74
TestErrorHandlingFunction · 0.74