Versions in this module Expand all Collapse all v0 v0.1.5 Mar 23, 2026 Changes in this version + type AgentEvent struct + Data string + Type EventType + type CapabilitySource int + const SourceAPI + const SourceConfig + const SourceDefault + type ConversationTurn struct + Content string + Role string + type EventType string + const EventBash + const EventError + const EventReading + const EventRequest + const EventSnapshot + const EventText + const EventWriting + type ModelAdapter interface + Capabilities func(ctx context.Context) ModelCapabilities + ID func() string + RunAgent func(ctx context.Context, history []ConversationTurn, prompt string, ...) (ModelResponse, error) + type ModelCapabilities struct + ContextWindow int + ContextWindowSource CapabilitySource + MaxOutputTokens int + MidConvoSystem bool + ModelID string + ParallelToolCalls bool + Provider string + SupportedInputMedia []string + SystemRole bool + ToolFormat ToolFormat + ToolFormatSource CapabilitySource + type ModelResponse struct + CostUSD float64 + Error string + InputTokens int64 + Interrupted bool + LatencyMS int64 + ModelID string + OutputTokens int64 + ProposedWrites []tools.FileWrite + ReasoningTokens int64 + Steps int + StopReason StopReason + Text string + ToolCalls map[string]int + func (r ModelResponse) OK() bool + type PartialSnapshot struct + CostUSD float64 + InputTokens int64 + LatencyMS int64 + OutputTokens int64 + ReasoningTokens int64 + Text string + ToolCalls map[string]int + Writes []tools.FileWrite + type StopReason string + const StopReasonCancelled + const StopReasonComplete + const StopReasonContextOverflow + const StopReasonError + const StopReasonMaxSteps + const StopReasonTimeout + type ToolFormat int + const ToolFormatFunctionCall + const ToolFormatNative + const ToolFormatNone + const ToolFormatTextInPrompt v0.1.0 Mar 14, 2026