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.
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.
Click to show internal directories.
Click to hide internal directories.