Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 Changes in this version + type UtteranceReusable interface + EndUtterance func() error v0.1.0 Sep 6, 2026 Changes in this version + const Version + var ErrNilConsumer = errors.New("stream consumer must not be nil") + func CarriesSpeech(text string) bool + type AudioFrame struct + Index uint64 + PCM16LE []byte + SampleOffset uint64 + SampleRateHz uint32 + func (frame AudioFrame) EndSample() (uint64, error) + func (frame AudioFrame) Validate() error + type Capabilities map[Capability]bool + func (capabilities Capabilities) Has(capability Capability) bool + type Capability string + const CapabilityCancellation + const CapabilityDeterministic + const CapabilityPCM16Output + const CapabilityRevisions + const CapabilityStreamingInput + const CapabilityStreamingOutput + type CognitionProvider interface + Descriptor func() Descriptor + Respond func(context.Context, PerceptionRevision) (ResponseCandidate, error) + type DeliberationProvider interface + Deliberate func(context.Context, GoalSnapshot, func(DeliberationUpdate) error) error + Descriptor func() Descriptor + type DeliberationStatus string + const DeliberationFailed + const DeliberationFinal + const DeliberationProgress + type DeliberationUpdate struct + ComputeUnits uint64 + Error string + GoalID string + QualityScore uint32 + RevisionID uint64 + Sequence uint64 + Status DeliberationStatus + Text string + func (update DeliberationUpdate) ValidateFor(goal GoalSnapshot) error + type Descriptor struct + Capabilities Capabilities + Name string + Version string + func (descriptor Descriptor) Validate() error + type FastAction string + const FastAcknowledge + const FastAnswer + const FastDefer + const FastListen + const FastYield + type FastDecision struct + Action FastAction + GoalID string + ProgressClaim ProgressClaim + RevisionID uint64 + StartSlowPath bool + Text string + func (decision FastDecision) ValidateFor(goal GoalSnapshot) error + type FastDecisionProvider interface + Decide func(context.Context, GoalSnapshot) (FastDecision, error) + Descriptor func() Descriptor + type GoalSnapshot struct + CreatedNS uint64 + DeadlineNS uint64 + GoalID string + Question string + RevisionID uint64 + func (goal GoalSnapshot) Validate() error + type PerceptionProvider interface + Descriptor func() Descriptor + Finalize func(context.Context, uint64) (PerceptionRevision, error) + PushFrame func(context.Context, AudioFrame) ([]PerceptionRevision, error) + type PerceptionRevision struct + Delta string + Final bool + RevisionID uint64 + Source string + SourceSample uint64 + StableText string + UnstableText string + func (revision PerceptionRevision) CarriesSpeech() bool + type ProgressClaim string + const ProgressCompleted + const ProgressNone + const ProgressWorking + type ProviderSet struct + Cognition CognitionProvider + Deliberation DeliberationProvider + Fast FastDecisionProvider + Perception PerceptionProvider + Speech SpeechProvider + type ResponseCandidate struct + CandidateID string + Semantic bool + SourceRevision uint64 + Text string + ValiditySummary string + type SpeechChunk struct + CandidateID string + ChunkID string + Final bool + PCM16LE []byte + SampleOffset uint64 + SampleRateHz uint32 + func (chunk SpeechChunk) DurationNS() (uint64, error) + func (chunk SpeechChunk) EndSample() (uint64, error) + func (chunk SpeechChunk) Validate() error + type SpeechPlan struct + CandidateID string + Text string + func (plan SpeechPlan) Validate() error + type SpeechProvider interface + Descriptor func() Descriptor + Synthesize func(context.Context, SpeechPlan) ([]SpeechChunk, error) + type StreamingSpeechProvider interface + Stream func(context.Context, SpeechPlan, func(SpeechChunk) error) error