Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 Changes in this version + const NothingSaidSincePrompt v0.1.0 Sep 6, 2026 Changes in this version + const BackgroundResultHint + const CompletionMarker + const HeardPreamble + const InternalStatePreamble + const NoticeableGap + const ObserverContentPrefix + const ObserverContentSuffix + const PendingRepairInstruction + const PendingRepairPrompt + const TerminalToolProposalNotice + const WaitToken + var ErrPreempted = errors.New("continuation preempted at resource safe point") + var ErrStalePrefix = errors.New("continuation computed from a stale trajectory prefix") + func AssistantHeardContent(content string, mark spoken.Mark) string + func CarriesBackgroundResult(item trajectory.Item) bool + func CarriesInternalState(content string) bool + func ElapsedNotes(items []trajectory.Item) map[string]string + func HasBackgroundContent(content string) bool + func LatestMediaHandles(items []trajectory.Item) map[string]struct + func ObservationContent(item trajectory.Item, elapsed string) string + func ObservationRunContent(run ProviderRun, elapsed map[string]string) string + func PendingToolProposalContent(call *trajectory.ToolCall) (string, bool) + func ProducedSilently(item trajectory.Item) bool + func StripMarkers(content string) (string, bool) + func StripRuntimeAnnotations(content string) (string, bool) + func TraceRequest(descriptor Descriptor, invocationID string, body []byte) + func ValidateDescriptor(descriptor Descriptor) error + func ValidateEvent(event Event) error + func ValidateInvocation(invocation Invocation, descriptor Descriptor) error + type Capability struct + Available bool + ConfirmationRequired bool + Description string + ExecutionPhase string + Name string + type Completion struct + ProviderState json.RawMessage + ProviderStateType string + ReasoningInContent bool + StopReason string + Usage Usage + type Descriptor struct + Effort Effort + ExecutableTools bool + Model string + NativeStateType string + Phase trajectory.Phase + Provider string + RetainsToolCalls bool + SamplingTemperature string + SpeechAuthority SpeechAuthority + Streaming bool + ToolAuthority ToolAuthority + Vision bool + func (descriptor Descriptor) EffectiveSpeechAuthority() SpeechAuthority + func (descriptor Descriptor) EffectiveToolAuthority() ToolAuthority + type Effort string + const EffortHigh + const EffortLow + const EffortMedium + const EffortMinimal + func ParseEffort(value string) (Effort, error) + func (effort Effort) Budget() (int, bool) + func (effort Effort) Named() bool + type Emit func(Event) error + type Event struct + Kind EventKind + Text string + ToolCall *trajectory.ToolCall + type EventKind string + const EventAssistantDelta + const EventReasoningDelta + const EventToolCall + type Invocation struct + Capabilities []Capability + Effort Effort + Instruction string + MaxOutputTokens int + SourceRevision uint64 + Tools []ToolDefinition + type Media struct + Bytes []byte + MIMEType string + type MediaResolver func(handle string) (Media, error) + type Prepared struct + func (prepared *Prepared) ProvisionalText() string + func (prepared *Prepared) Ready() bool + type Provider interface + Continue func(context.Context, Request, Emit) (Completion, error) + Descriptor func() Descriptor + type ProviderRun struct + Items []trajectory.Item + UserObservations bool + func ProviderRuns(items []trajectory.Item) []ProviderRun + type Request struct + Descriptor Descriptor + Invocation Invocation + InvocationID string + Media MediaResolver + Trajectory trajectory.Snapshot + type RunResult struct + AppendedIDs []string + AssistantText string + Committed bool + Completion Completion + EndVersion uint64 + Finished bool + Interrupted bool + InvocationID string + SourceRevision uint64 + StartVersion uint64 + ToolCalls []trajectory.ToolCall + ToolProposals []trajectory.ToolCall + type Runner struct + func NewRunner(config RunnerConfig) (*Runner, error) + func (runner *Runner) Adopt(prepared *Prepared) (RunResult, error) + func (runner *Runner) Prepare(ctx context.Context, provider Provider, invocation Invocation, ...) (*Prepared, error) + func (runner *Runner) Run(ctx context.Context, provider Provider, invocation Invocation, ...) (RunResult, error) + func (runner *Runner) RunLive(ctx context.Context, provider Provider, invocation Invocation, live string, ...) (RunResult, error) + func (runner *Runner) RunLiveProjected(ctx context.Context, provider Provider, invocation Invocation, live string, ...) (RunResult, error) + func (runner *Runner) RunProjected(ctx context.Context, provider Provider, invocation Invocation, ...) (RunResult, error) + type RunnerConfig struct + Media MediaResolver + NextID func(prefix string) string + Now func() uint64 + RetainReasoning bool + Store *trajectory.Store + type RuntimeAnnotationFilter struct + func (filter *RuntimeAnnotationFilter) Finish() string + func (filter *RuntimeAnnotationFilter) Found() bool + func (filter *RuntimeAnnotationFilter) Push(content string) string + type SpeechAuthority string + const SpeechAuthoritySilent + const SpeechAuthorityVoice + type StreamObserver func(Event) error + type ToolAuthority string + const ToolAuthorityExecute + const ToolAuthorityNone + const ToolAuthorityPropose + type ToolDefinition struct + Background bool + Description string + Name string + Parameters json.RawMessage + type TrajectoryProjection func(trajectory.Snapshot) (trajectory.Snapshot, error) + type Usage struct + CachedInputTokens int64 + CachedInputTokensReported bool + InputTokens int64 + OutputTokens int64 + ReasoningTokens int64 + TotalTokens int64