Versions in this module Expand all Collapse all v0 v0.3.0 Oct 14, 2026 Changes in this version + type Diagnostics struct + BufferBytes int + ContentErrorCode string + DescribeError func(error) (code, message string, ok bool) + Error func(code, summary, detail string) error + ForwardError func(error) error + Incompatible func(code, message string) error + Name string + Prefix string + Subject string + type Policy struct + CloseFailedStream bool + CompletionIncludesReasoning bool + CustomInputInstruction string + Diagnostics Diagnostics + ExecInstruction string + FormatInstructionPrefix string + NoHostedSearchInstruction string + ReplaySummaries bool + ResolveEffort func(string) (string, error) + RestoreReasoning func(string) (map[string]any, error) + SealReasoning func(any) string + type Stream struct + func Translate(fields map[string]json.RawMessage, model, format string, policy Policy) (map[string]any, *Stream, error) + func (tr *Stream) Read(reader io.Reader, emit func(map[string]any) error, ...) (result map[string]any, streamErr error)