Versions in this module Expand all Collapse all v0 v0.2.4 Oct 25, 2026 Changes in this version + const ReflectOnFinish + const ReflectOnIteration + type AwaitingInputData struct + Options []string + Payload any + Question string + func (AwaitingInputData) Type() Type + type Data interface + Type func() Type + type DoneData struct + Awaiting *AwaitingInputData + DroppedEvents int + Error string + FinalContent string + Iterations int + LLMUsage LLMUsageSummary + Reason DoneReason + func (DoneData) Type() Type + type DoneReason string + const ReasonAwaitingHuman + const ReasonError + const ReasonFinished + const ReasonMaxIterations + const ReasonStopped + const ReasonTimeout + type ErrorData struct + Error string + Fatal bool + func (ErrorData) Type() Type + type Event struct + Data Data + Iteration int + Timestamp time.Time + Type Type + func New(data Data, iteration int) Event + type LLMTurnData struct + AssistantContent string + AssistantToolCallsJSON []byte + CostAmount float64 + DurationMs int64 + InputTokens int + MaxIterations int + Model string + OutputTokens int + Provider string + RequestMessagesJSON []byte + ResponseKind string + StopCondition string + TurnIndex int + func (LLMTurnData) Type() Type + type LLMUsageSummary struct + InputTokens int + Model string + OutputTokens int + TotalTokens int + type ProgressData struct + Message string + Step string + func (ProgressData) Type() Type + type ReflectionData struct + Confidence float64 + Hint string + Mode string + Reason string + Verdict string + func (ReflectionData) Type() Type + type ResponseData struct + Content string + func (ResponseData) Type() Type + type ThinkingData struct + Message string + func (ThinkingData) Type() Type + type ToolCallData struct + Arguments string + Name string + ToolCallID string + func (ToolCallData) Type() Type + type ToolResultData struct + DurationMs int64 + Error string + Name string + Result string + ToolCallID string + func (ToolResultData) Type() Type + type Type string + const AwaitingInput + const Done + const Error + const LLMTurn + const Progress + const Reflection + const Response + const Thinking + const ToolCall + const ToolResult