assist

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package assist implements the Assist Mode pipeline: STT transcript → Codeword check → LLM → TTS → Result with both text and audio.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

type Pipeline struct {
	// contains filtered or unexported fields
}

Pipeline orchestrates the Assist Mode flow.

func NewPipeline

func NewPipeline(assistFlow *core.Flow[flows.AssistInput, flows.AssistOutput, struct{}], ttsRouter *tts.Router, ttsEnabled bool) *Pipeline

NewPipeline creates an Assist Pipeline.

func (*Pipeline) Process

func (p *Pipeline) Process(ctx context.Context, transcript string, opts ProcessOpts) (*Result, error)

Process takes a transcript and produces a Result with text and optional audio.

type ProcessOpts

type ProcessOpts struct {
	Locale    string // "de", "en", etc.
	Selection string // Currently selected text
	Context   string // Additional context
}

ProcessOpts configures a single Assist request.

type Result

type Result struct {
	Text      string // Full response text (always present)
	SpeakText string // TTS-optimized text
	Audio     []byte // TTS audio bytes (present when TTS enabled)
	Format    string // Audio format ("mp3", "wav", etc.)
	Action    string // "respond", "execute", "silent", "shortcut"
	Locale    string // Response language
	Shortcut  string // Matched shortcut intent, if any
}

Result is the framework output for Assist Mode. Always contains Text. Contains Audio when TTS is enabled.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL