Versions in this module Expand all Collapse all v0 v0.0.2 Jun 9, 2026 v0.0.1 Jun 3, 2026 Changes in this version + type ChatRequest struct + Messages []message.Message + Tools []openai.Tool + type ChatResponse struct + Content string + HasChoice bool + type ChatStream interface + Close func() error + Recv func() (StreamDelta, error) + type ChatStreamer interface + ChatStream func(ctx context.Context, req ChatRequest) (ChatStream, error) + Model func() string + ModelRef func() coremodel.ModelRef + ProtocolWarnings func(messages []message.Message) []ProtocolWarning + type ChunkParseError struct + Err error + func (e ChunkParseError) Error() string + func (e ChunkParseError) Unwrap() error + type ProtocolWarning struct + Field string + Kind string + Message string + MessageIndex int + Model string + Provider string + type StreamDelta struct + Content string + ContentPartExtra map[int]message.Extra + ContentParts []message.ContentPart + FinishReason openai.FinishReason + HasChoice bool + MessageExtra message.Extra + Refusal string + Role string + ToolCallExtra map[int]message.Extra + ToolCalls []openai.ToolCall + Usage *openai.Usage + type Summarizer interface + Chat func(ctx context.Context, req ChatRequest) (ChatResponse, error) + Model func() string + ModelRef func() coremodel.ModelRef