Documentation
¶
Overview ¶
Package sse provides SSE (Server-Sent Events) decoding for Kilo Gateway's non-standard streaming protocol with concatenated data:, reasoning, and fragmented tool_calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KiloDecoder ¶
type KiloDecoder struct {
// contains filtered or unexported fields
}
KiloDecoder handles Kilo Gateway's non-standard SSE (concatenated data:, reasoning, fragmented tool_calls)
func NewKiloDecoder ¶
func NewKiloDecoder() *KiloDecoder
NewKiloDecoder creates a new KiloDecoder instance.
type SSECompleteResponse ¶
type SSECompleteResponse struct {
FinishReason message.FinishReason
Usage TokenUsage
}
SSECompleteResponse contains the final response data
type SSEEvent ¶
type SSEEvent struct {
Type EventType
Content string
Thinking string
ToolCall *message.ToolCall
Error error
Response *SSECompleteResponse
}
SSEEvent represents a decoded SSE event
type TokenUsage ¶
TokenUsage represents token usage information
Click to show internal directories.
Click to hide internal directories.