Versions in this module Expand all Collapse all v0 v0.1.3-rc.1 Jul 8, 2026 v0.1.2 Jul 7, 2026 v0.1.1 Jul 7, 2026 v0.1.0 Jul 7, 2026 Changes in this version + const ActionModelGenerate + const ActionSpawn + func ContinueConversation(status goal.Status, text string, images ...llm.Image) (goal.Status, error) + type ApprovalDecision struct + Allow bool + Feedback string + Scope string + type ApprovalPrompter interface + Prompt func(ctx context.Context, req ApprovalRequest) (ApprovalDecision, error) + type ApprovalRequest struct + Action string + Grace time.Duration + Host string + Scope state.Scope + type ChildResult struct + Failed bool + ID string + Result string + type Convergence struct + func (Convergence) Met(_ context.Context, _ goal.Spec, status goal.Status) (bool, string, error) + type Event struct + Child string + Goal string + Input json.RawMessage + IsError bool + Kind EventKind + Result string + StopReason string + Text string + Tool string + ToolUseID string + Turn int + Usage llm.Usage + type EventKind string + const EventAssistantText + const EventChildCompleted + const EventChildSpawned + const EventToolCall + const EventToolResult + const EventTurnCompleted + const EventTurnStarted + type Executor struct + func NewExecutor(model llm.Model, opts ...Option) *Executor + func (e *Executor) Execute(ctx context.Context, r resource.Resource) (json.RawMessage, error) + type Fanout interface + Poll func(ctx context.Context, ids []string) (results []ChildResult, allDone bool, err error) + Spawn func(ctx context.Context, parent resource.Resource, sub SubGoal) (id string, err error) + type GenerationEnvelope struct + Deterministic bool + Pinned bool + Seed int64 + Temperature float64 + TopP float64 + type GenerationRecorder interface + RecordGeneration func(ctx context.Context, env GenerationEnvelope) + type Option func(*Executor) + func PlanOptions(plan harness.Plan) []Option + func WithAdmitter(a dispatch.Admitter) Option + func WithApproval(g *approval.Gate) Option + func WithApprovalClock(c clock.Clock) Option + func WithApprovalGrace(d time.Duration) Option + func WithApprovalPrompter(prompter ApprovalPrompter, signer approval.Signer, host string) Option + func WithBrakes(h *brakes.Hook) Option + func WithBudget(h *budget.Hook) Option + func WithCompactionBudget(tokens int) Option + func WithEventSink(s dispatch.EventSink) Option + func WithFanout(f Fanout) Option + func WithGenerationRecorder(r GenerationRecorder) Option + func WithGrant(g capability.Grant) Option + func WithMaxTokens(n int) Option + func WithObserver(r Reporter) Option + func WithSampling(s *llm.Sampling) Option + func WithSandbox(sb sandbox.Sandbox) Option + func WithSimplifiedSchemas() Option + func WithSystem(system string) Option + func WithTools(tools ...Tool) Option + func WithVerifyPasses(n int) Option + type Reporter interface + Report func(ctx context.Context, ev Event) + type ResultSummarizer interface + SummarizeResult func(input json.RawMessage, result string) string + type SubGoal struct + Actions []string + Agent string + Objective string + type Tool interface + Def func() llm.Tool + Invoke func(ctx context.Context, input json.RawMessage) (string, error) + func Func(def llm.Tool, ...) Tool + type TrustedWork interface + WorkTrust func() sandbox.Trust