Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 Changes in this version + const AnswerNo + const AnswerYes + const ChoiceKeep + const ChoiceKeepSpeak + const ChoiceListen + const ChoiceSpeak + const ChoiceStop + const ChoiceStopSpeak + const ContractExtractionInstruction + const QuestionElsewhere + const QuestionOccurrence + const QuestionQuiet + const QuestionRequest + const QuestionStop + const QuestionUrgent + var AddressedElsewhereInstruction = ... + var ChoiceInstruction string + var ElsewhereQuestion = StepQuestion + var LiftConfirmInstruction = ... + var LiftInstruction = ... + var OccurrenceQuestion = StepQuestion + var QuietQuestion = StepQuestion + var ReplyQuestion = StepQuestion + var RequestQuestion = StepQuestion + var SightQuestion = StepQuestion + var StopQuestion = StepQuestion + var UrgentQuestion = StepQuestion + func AnswerFor(question string, choice Choice) string + func ChoiceOptions(speaking bool) []string + func ChoiceOptionsFor(state Situation) []string + func DescribeAnswers(asked []AskedQuestion) string + func ToolCallLine(call trajectory.ToolCall) string + func YesNo() []string + type AcousticEndpoint struct + Latency time.Duration + Model string + Probability float64 + WindowMS float64 + type AcousticProjection struct + func NewAcousticProjection(threshold float64) (AcousticProjection, error) + func (projection AcousticProjection) Name() string + func (projection AcousticProjection) Project(context Context) Projection type AgentOutput + Generating int + GenerationsFinished uint64 + GenerationsStarted uint64 + type AskedQuestion struct + Answer string + Confidence float64 + DurationMS float64 + Measured bool + Question string + type Choice struct + Speak bool + Speaking bool + Stop bool + func ComposeChoice(speaking bool, answers map[string]bool) Choice + func ParseChoice(token string, speaking bool) (Choice, error) + func (choice *Choice) UnmarshalText(text []byte) error + func (choice Choice) Idle() bool + func (choice Choice) MarshalText() ([]byte, error) + func (choice Choice) Token() string + func (choice Choice) Validate() error type Context + AcousticEndpoint *AcousticEndpoint + type ContractExtractor interface + ExtractContract func(ctx context.Context, contract string) (Extraction, error) type Decision + Question string + Speaking bool + type DroppedPin struct + Reason string + Text string type Extraction + Calls []ModelCall + Dropped []DroppedPin + type ModelCall struct + Answer string + DurationMS float64 + Error string + Question string type Situation + AnsweredSoFar string + HeardSinceStep string + SinceStepKnown bool + Steps []string + UnansweredQuestion string + func (state Situation) RenderEvidence() string + func (state Situation) RenderForChoice() string + func (state Situation) RenderForQuestion(question StepQuestion) string type StandingInstruction + Operator bool + type StepQuestion struct + Name string + Text string v0.1.0 Sep 6, 2026 Changes in this version + const DefaultCadence + const DefaultLowerBudget + const DefaultUpperBudget + const ReasonBackgroundResult + const ReasonCompositeResume + const ReasonHolding + const ReasonToolFailure + const SignalBackgroundResult + const SignalCompositeResume + const SignalEscalated + const WaitToken + var ArrivedInstruction = ... + var CountingInstruction = ... + var ExtractionInstruction = buildExtraction() + var Instruction = buildInstruction() + var RestrictingInstruction = ... + var ScopeInstruction = ... + var StandingPolicyGroundingInstruction = ... + func AgentOutputType() element.Type + func AutonomousObservation(batch eventloop.Batch) bool + func DefaultBackchannelTokens() map[BackchannelChoice]string + func ExplicitVisualActionAt(task string, index int) (string, bool) + func ExplicitVisualActionCount(task string) int + func ExplicitVisualMonitor(task string) bool + func ImmediateNonvisualClause(task string) string + func RecentLines(items []trajectory.Item, max int) []string + func RenderForExtraction(existing []StandingInstruction, recent []string, utterance string) string + func SpeakerOf(item trajectory.Item) string + func ValidateTranscriptEventOptions(options TranscriptEventOptions) error + type Act string + const ActActSilently + const ActAnswer + const ActInterrupt + const ActKeepSpeaking + const ActSpeakThrough + const ActStaySilent + const ActStopSpeaking + func AllActs() []Act + func InertialAct(state Situation) Act + type ActBargeInOptions struct + Timeout time.Duration + type ActFloorOptions struct + Liveness time.Duration + MinimumBetweenInterruptions time.Duration + SilenceDuration time.Duration + Timeout time.Duration + type AgentOutput struct + Active bool + Audible bool + InFlight string + Pending string + ProtectedStreams []string + Queued bool + Revision uint64 + Saying string + Spoken string + func (AgentOutput) InspectionCause() element.InspectionCauseKind + type AlwaysRun struct + func (AlwaysRun) Admit(Waiting) (bool, string) + func (AlwaysRun) Conditions() []session.TransitionKind + func (AlwaysRun) Name() string + type Backchannel interface + Decide func(context.Context, Context) (BackchannelDecision, error) + func NewModelBackchannel(decider Decider, options BackchannelOptions) (Backchannel, error) + type BackchannelChoice string + const BackchannelAcknowledge + const BackchannelAffirm + const BackchannelNone + type BackchannelDecision struct + Choice BackchannelChoice + Reason string + Token string + type BackchannelOptions struct + MinimumInterval time.Duration + MinimumSpeech time.Duration + Tokens map[BackchannelChoice]string + type BargeIn interface + Decide func(BargeInInput) BargeInDecision + func NewActBargeIn(model *InteractionModel, options ActBargeInOptions) (BargeIn, error) + func NewImmediateBargeIn() BargeIn + func NewNeverBargeIn() BargeIn + func NewSustainedBargeIn(hold time.Duration) BargeIn + type BargeInDecision struct + Cancel bool + Reason string + type BargeInInput struct + Evidence OverlapEvidence + OverlapNS uint64 + type Cause struct + AutonomousObservation bool + BackgroundResult bool + CompositeResume bool + Escalated bool + Observation bool + Parallel bool + PendingRepair bool + SlowInvocations int + ToolError bool + ToolResult bool + type Commitment interface + Decide func(CommitmentInput) CommitmentDecision + func NewCompleteCommitment() Commitment + func NewSentenceCommitment(minimumCharacters int) Commitment + type CommitmentDecision struct + Emit string + Hold string + Reason string + func (decision CommitmentDecision) Committed() bool + type CommitmentInput struct + Complete bool + SpeechAuthority string + Text string + type Context struct + Duplex session.Snapshot + NowNS uint64 + Phase trajectory.Phase + Revision Revision + Situation *Situation + type Decider interface + Decide func(ctx context.Context, request Decision) (Outcome, error) + Name func() string + type Decision struct + Evidence string + Images []Image + Options []string + Prompt string + func (decision Decision) Validate() error + type Deferral interface + Admit func(Waiting) (bool, string) + Conditions func() []session.TransitionKind + func NewClientDriven() Deferral + func NewDuplexDeferral(options DeferralOptions) Deferral + type DeferralOptions struct + AllowWhileAgentSpeaking bool + AllowWhileUserSpeaking bool + DeferUnderBackpressure bool + type Duplexer interface + Observe func(session.Observer) func() + Snapshot func() session.Snapshot + type EndpointDecision struct + Act Act + Ended bool + Projected bool + Reason string + ReconsiderAfter time.Duration + type EngineFloorOptions struct + MinimumSpeech time.Duration + Projection TurnProjection + ProjectionHold time.Duration + SilenceDuration time.Duration + type Extraction struct + Pins []StandingInstruction + Revokes []string + func ParseExtraction(text string) (Extraction, error) + type Extractor interface + Extract func(ctx context.Context, existing []StandingInstruction, recent []string, ...) (Extraction, error) + HasArrived func(ctx context.Context, policies []StandingInstruction, said string) bool + Name func() string + func NewExtractor(generator Generator) (Extractor, error) + type Floor interface + Endpoint func(Context) EndpointDecision + EngineOwned func() bool + Holder func(session.Snapshot) Holder + func NewActFloor(model *InteractionModel, options ActFloorOptions) (Floor, error) + func NewEngineFloor(options EngineFloorOptions) Floor + func NewModelFloor(name string) Floor + type FloorSemantics string + const FloorPreserve + const FloorTake + const FloorUnchanged + const FloorYield + func FloorForAct(act Act) FloorSemantics + type Gate struct + func Bind(policy Deferral, duplex Duplexer, waker Waker) (*Gate, error) + func (gate *Gate) AdmitRun(_ context.Context, batch eventloop.Batch) (bool, string) + func (gate *Gate) Close() + func (gate *Gate) Name() string + func (gate *Gate) RequestResponse() + func (gate *Gate) SetBackpressure(under bool) + type Generator interface + Generate func(ctx context.Context, prompt, evidence string, maxTokens int) (string, error) + Name func() string + type Holder string + const HolderAgent + const HolderNobody + const HolderUser + type Image struct + Bytes []byte + MIMEType string + type InteractionModel struct + func NewInteractionModel(decider Decider) (*InteractionModel, error) + func (model *InteractionModel) Decide(ctx context.Context, state Situation) (Act, Outcome, error) + func (model *InteractionModel) DecideVisualIntent(ctx context.Context, task string) (VisualIntent, Outcome, error) + func (model *InteractionModel) DecisionTimeout() time.Duration + func (model *InteractionModel) Name() string + type Named interface + Name func() string + type NoBackchannel struct + func (NoBackchannel) Decide(context.Context, Context) (BackchannelDecision, error) + func (NoBackchannel) Name() string + type Opportunity struct + AtNS uint64 + Open bool + Reason string + Revision uint64 + type Outcome struct + Confidence float64 + ElapsedNS uint64 + Index int + Measured bool + Option string + func (outcome Outcome) Sure(threshold float64) bool + type OverlapClassifier interface + Classify func(context.Context, Context) OverlapEvidence + func NewModelOverlapClassifier(decider Decider) (OverlapClassifier, error) + type OverlapEvidence string + const OverlapAmbiguous + const OverlapBackchannel + const OverlapDirected + const OverlapSide + type Pinboard struct + func (board *Pinboard) EndTurn() + func (board *Pinboard) InForce() []StandingInstruction + func (board *Pinboard) InForceExcept(turn uint64) []StandingInstruction + func (board *Pinboard) Lines(nowNS uint64) []string + func (board *Pinboard) LinesExcept(nowNS, turn uint64) []string + func (board *Pinboard) Pin(instruction StandingInstruction) + func (board *Pinboard) Revoke(text string) bool + func (board *Pinboard) SetForTurn(turn uint64, instructions []StandingInstruction) (added int) + type Plan struct + Abstained bool + Act Act + Confidence float64 + Deadline time.Time + EvidenceRef string + Floor FloorSemantics + Policy string + func NewPlan(act Act, policy, evidenceRef string, deadline time.Time, outcome Outcome) (Plan, error) + func (plan Plan) Validate() error + type Policies struct + Backchannel Backchannel + BargeIn BargeIn + Commitment Commitment + Deferral Deferral + Extraction Extractor + Floor Floor + Interaction *InteractionModel + Overlap OverlapClassifier + Preparation Preparation + Repair Repair + Rollout Rollout + ShadowInteraction func(ShadowDecision) + TranscriptEvents *TranscriptEventPolicy + Trigger Trigger + TurnProjection TurnProjection + func Defaults() Policies + func (policies Policies) Report() Report + func (policies Policies) Validate() error + type Preparation interface + Prepare func(Context) PreparationDecision + Reset func() + func NewContinuousPreparation(slowPace time.Duration) Preparation + func NewEndpointPreparation() Preparation + type PreparationDecision struct + Phases []trajectory.Phase + Reason string + Start bool + type ProjectingFloor interface + Projection func() TurnProjection + type Projection struct + Confidence float64 + Continuing bool + Ending bool + Reason string + type ProjectionOptions struct + Confidence float64 + MinimumSilence time.Duration + type Repair interface + Decide func(RepairInput) RepairDecision + func NewAudibleRepair() Repair + func NewAudibleRepairAfter(threshold time.Duration) Repair + func NewSilentRepair() Repair + type RepairAction string + const RepairNone + const RepairSilent + const RepairSpeak + type RepairDecision struct + Action RepairAction + Reason string + type RepairInput struct + InvalidatedByRevision uint64 + PlayedAudioMS uint64 + TargetPhase trajectory.Phase + type Report struct + Backchannel string + BargeIn string + Commitment string + Deferral string + Extraction string + Floor string + Interaction string + Overlap string + Preparation string + Repair string + Rollout string + TranscriptEvents string + Trigger string + TurnProjection string + type RequestConsumption interface + ConsumesResponseRequest func(Waiting) bool + type Revision struct + Final bool + ID uint64 + ObservedNS uint64 + SilenceNS uint64 + StableText string + UnstableText string + func (revision Revision) Empty() bool + func (revision Revision) Text() string + type Rollout interface + Plan func(RolloutInput) []Step + func NewEndpointedSlowOnlyRollout(options RolloutOptions) Rollout + func NewFastOnlyRollout() Rollout + func NewFastThenSlowRollout(options RolloutOptions) Rollout + func ParseRollout(value string, options RolloutOptions) (Rollout, error) + type RolloutInput struct + Cause Cause + type RolloutOptions struct + MaxSlowInvocations int + ToolResultProgress bool + type Scope string + const ScopeConversation + const ScopeTurn + type ShadowDecision struct + Act string + Agreed bool + ElapsedNS uint64 + Error string + NowNS uint64 + Predicates map[string]string + Situation string + type Situation struct + AgentOutputProtected bool + AgentPending string + AgentSaying string + AgentSpeaking bool + AgentSpoken string + AllowedActs []Act + Contract string + Heard string + HeardSince string + InFlight string + Pins []string + Quiet bool + Recent []string + Restricted bool + Seeing []Image + Seen string + Silence string + SincePrevious string + Speaker string + Speaking bool + Tools []string + TranscriptEvent TranscriptEventKind + func (state Situation) AvailableActs() []Act + func (state Situation) Decidable() bool + func (state Situation) Render() string + type StandingInstruction struct + After time.Duration + Counting bool + Restricting bool + Scope Scope + SetNS uint64 + Text string + Turn uint64 + func ParsePin(text string) (kind string, instruction StandingInstruction, ok bool) + func (instruction StandingInstruction) Due(quiet time.Duration) bool + type Step struct + Kind StepKind + Reason string + func (step Step) Phase() trajectory.Phase + type StepKind string + const StepFast + const StepSlow + type TranscriptEventKind string + const TranscriptFinal + const TranscriptPartial + type TranscriptEventOptions struct + Final TranscriptEventRules + Partial TranscriptEventRules + type TranscriptEventPolicy struct + func NewTranscriptEventPolicy(decider Decider, options TranscriptEventOptions) (*TranscriptEventPolicy, error) + func (policy *TranscriptEventPolicy) AllowedActs(kind TranscriptEventKind) []Act + func (policy *TranscriptEventPolicy) Decide(ctx context.Context, kind TranscriptEventKind, state Situation) (Act, Outcome, error) + func (policy *TranscriptEventPolicy) DecisionTimeout(kind TranscriptEventKind) time.Duration + func (policy *TranscriptEventPolicy) Name() string + type TranscriptEventRules struct + Acts []Act + Instruction string + Timeout time.Duration + type Trigger interface + Interval func() time.Duration + Next func(Context) Opportunity + Reset func() + func NewEndpointTrigger() Trigger + func NewFixedCadenceTrigger(cadence time.Duration) Trigger + func NewRevisionTrigger() Trigger + type TurnProjection interface + Project func(Context) Projection + func NewModelProjection(decider Decider, options ProjectionOptions) (TurnProjection, error) + type UnclassifiedOverlap struct + func (UnclassifiedOverlap) Classify(context.Context, Context) OverlapEvidence + func (UnclassifiedOverlap) Name() string + type VADOnlyProjection struct + func (VADOnlyProjection) Name() string + func (VADOnlyProjection) Project(Context) Projection + type VisualIntent string + const VisualIntentDirect + const VisualIntentMonitor + const VisualIntentNone + func ExplicitVisualAuthority(task string) (VisualIntent, bool) + type Waiting struct + AutonomousObservation bool + Backpressure bool + Deliberation bool + Duplex session.Snapshot + Observation bool + Parallel bool + Repair bool + Requested bool + ToolResult bool + func WaitingFrom(batch eventloop.Batch, state session.Snapshot) Waiting + type Waker interface + Wake func(reason string) + type Window struct + LowerBudget int + UpperBudget int + func (window *Window) Lines(items []trajectory.Item) []string