Documentation
¶
Overview ¶
Package llmstream contains provider stream decoders and transport lifecycle helpers for the unified LLM event model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunningEvent ¶
RunningEvent is a heartbeat/progress signal for streams whose upstream model is alive but temporarily quiet.
func StartedEvent ¶
StartedEvent reports that the local agent process has been spawned. It is emitted by adapters before provider stdout produces its first model delta.
Types ¶
type Decoder ¶
Decoder converts provider-specific stream frames into unified LLM events. DecodeLine may return multiple events because one provider frame can contain several semantic blocks, such as text followed by a tool call.
func NewClaudeDecoder ¶
func NewClaudeDecoder() Decoder
NewClaudeDecoder returns a stateful decoder for Claude Code --output-format stream-json output, including --include-partial-messages.
type DecoderFunc ¶
DecoderFunc adapts a stateless line parser to Decoder.
func (DecoderFunc) DecodeLine ¶
func (f DecoderFunc) DecodeLine(line []byte) []event.Event
func (DecoderFunc) Flush ¶
func (f DecoderFunc) Flush() []event.Event