Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 Changes in this version type AudioObserver + func (observer *AudioObserver) Dispose() error + func (observer *AudioObserver) EagerEndOfTurn() bool v0.1.0 Sep 6, 2026 Changes in this version + const ActionableNarrationPrompt + const DefaultNarrationPrompt + func CarriesSpeech(text string) bool + type AudioConfig struct + Cadence time.Duration + Name string + Provider func() (v1.PerceptionProvider, error) + Source string + type AudioObserver struct + func NewAudioObserver(config AudioConfig) (*AudioObserver, error) + func (observer *AudioObserver) Accepts(frame Frame) bool + func (observer *AudioObserver) Cadence() time.Duration + func (observer *AudioObserver) Close() error + func (observer *AudioObserver) DurationMS() uint64 + func (observer *AudioObserver) Flush(ctx context.Context) ([]Observation, error) + func (observer *AudioObserver) Gate(Frame) bool + func (observer *AudioObserver) Name() string + func (observer *AudioObserver) Observe(ctx context.Context, frames []Frame) ([]Observation, error) + func (observer *AudioObserver) Reset() + func (observer *AudioObserver) SpeechEndpointed() bool + type ComponentSpec string + const ComponentKeyframeNarration + const ComponentKeyframeOnly + const ComponentNarrationOnly + func ParseComponents(value string) (ComponentSpec, error) + type EnergyGate struct + func NewEnergyGate(config GateConfig, sampleRate uint32) (*EnergyGate, error) + func (gate *EnergyGate) ForceStop() (endMS int, stopped bool) + func (gate *EnergyGate) Push(pcm16 []byte) (GateResult, error) + func (gate *EnergyGate) Reopen() + func (gate *EnergyGate) SilenceNS() uint64 + func (gate *EnergyGate) Speaking() bool + func (gate *EnergyGate) WrittenMS() int + type Factory struct + Kind FrameKind + Name string + New func(Retainer) (Observer, error) + func VideoFactory(config VideoConfig) Factory + func (factory Factory) Validate() error + type Frame struct + CapturedNS uint64 + Height int + Image []byte + Index uint64 + Kind FrameKind + MIMEType string + PCM16LE []byte + SampleOffset uint64 + SampleRateHz uint32 + Source string + Width int + func (frame Frame) Bytes() int + func (frame Frame) Validate() error + type FrameKind string + const FrameAudio + const FrameImage + type GateConfig struct + PrefixPaddingMS int + SilenceDurationMS int + SpeechDurationMS int + Threshold float64 + func DefaultGateConfig() GateConfig + type GateResult struct + Audio []byte + AudioEndMS int + AudioStartMS int + SilenceNS uint64 + Started bool + Stopped bool + type Image struct + Bytes []byte + Height int + MIMEType string + Width int + type ModelNarrator struct + func NewDedicatedNarrator(vision Vision) (*ModelNarrator, error) + func NewNarrator(config NarratorConfig) (*ModelNarrator, error) + func NewSessionNarrator(vision Vision) (*ModelNarrator, error) + func (narrator *ModelNarrator) Metrics() NarratorMetrics + func (narrator *ModelNarrator) Name() string + func (narrator *ModelNarrator) Narrate(ctx context.Context, frames []Frame, _ trajectory.Snapshot) (string, error) + type Narrator interface + Name func() string + Narrate func(context.Context, []Frame, trajectory.Snapshot) (string, error) + type NarratorConfig struct + Class admission.Class + Deadline time.Duration + Governor *admission.Governor + Label string + Prompt string + Vision Vision + type NarratorMetrics struct + Narrations uint64 + Suppressed uint64 + Unadmitted uint64 + type Observation struct + Authority trajectory.Authority + Described bool + Final bool + Media []trajectory.MediaRef + Observer string + OccurredNS uint64 + Provisional bool + Revision uint64 + Source string + StableText string + Supersedes uint64 + Text string + func (Observation) InspectionCause() element.InspectionCauseKind + func (observation Observation) Meta() *trajectory.ObservationMeta + func (observation Observation) Producer() trajectory.Producer + func (observation Observation) Validate() error + type Observer interface + Accepts func(Frame) bool + Cadence func() time.Duration + Flush func(context.Context) ([]Observation, error) + Gate func(Frame) bool + Name func() string + Observe func(context.Context, []Frame) ([]Observation, error) + Reset func() + type ObserverSetSpec string + const SetAudioOnly + const SetAudioVideo + const SetVideoOnly + func ParseObserverSet(value string) (ObserverSetSpec, error) + type RefreshableObserver interface + RefreshNext func() + type Retainer interface + Retain func(trajectory.MediaRef, []byte) (trajectory.MediaRef, error) + type Set struct + func NewSet(observers ...Observer) (*Set, error) + func (set *Set) For(frame Frame) []Observer + func (set *Set) Names() []string + func (set *Set) Observers() []Observer + func (set *Set) Reset() + type SourceRefreshableObserver interface + RefreshSource func(source string) + type StaticNarrator struct + Text string + func (narrator StaticNarrator) Name() string + func (narrator StaticNarrator) Narrate(context.Context, []Frame, trajectory.Snapshot) (string, error) + type VideoConfig struct + AttachKeyframes bool + Cadence time.Duration + ChangeThreshold float64 + ExternalCadence bool + Name string + Narrator Narrator + Now func() uint64 + Retainer Retainer + Sources []string + type VideoMetrics struct + Admitted uint64 + Frames uint64 + Narrations uint64 + type VideoObserver struct + func NewVideoObserver(config VideoConfig) (*VideoObserver, error) + func (observer *VideoObserver) Accepts(frame Frame) bool + func (observer *VideoObserver) Cadence() time.Duration + func (observer *VideoObserver) Flush(context.Context) ([]Observation, error) + func (observer *VideoObserver) Gate(frame Frame) bool + func (observer *VideoObserver) Metrics() VideoMetrics + func (observer *VideoObserver) Name() string + func (observer *VideoObserver) Observe(ctx context.Context, frames []Frame) ([]Observation, error) + func (observer *VideoObserver) RefreshNext() + func (observer *VideoObserver) RefreshSource(source string) + func (observer *VideoObserver) Reset() + type Vision interface + Describe func(ctx context.Context, images []Image, prompt string) (string, error) + Name func() string