Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
func NewCommand ¶
type Console ¶
type Console interface {
Exec(context.Context, *Command) (ExecResult, error)
}
func NewBashConsole ¶
func NewBashConsole() Console
type ExecResult ¶
func (ExecResult) Success ¶
func (e ExecResult) Success() bool
type InputHandler ¶
type InputHandler interface { Read(ctx context.Context, defaultValue string) (string, error) WithVoiceInput( voiceInputCh chan string, audioStartCh <-chan struct{}, audioEndCh <-chan struct{}, inputStream *audio.AudioStream, ) }
func NewInputHandler ¶
func NewInputHandler( logger *slog.Logger, readyCh chan struct{}, inputCh chan string, inputErrCh chan error, ) InputHandler
type Selector ¶
type Selector interface { SelectBool(title string, defaultValue bool) bool SelectString(title string, items []string) string }
func NewSelector ¶
func NewSelector() Selector
type TextToJSONBackend ¶
type TextToJSONBackend struct {
// contains filtered or unexported fields
}
func NewTextToJSONBackend ¶
func NewTextToJSONBackend( backend baseprovider.TextToJSONProvider, logger *slog.Logger, ) TextToJSONBackend
func (TextToJSONBackend) Do ¶
func (t TextToJSONBackend) Do( ctx context.Context, conversation chat.Conversation, ) (string, error)
type TextToTextBackend ¶
type TextToTextBackend struct {
// contains filtered or unexported fields
}
func NewTextToTextBackend ¶
func NewTextToTextBackend( backend baseprovider.TextToTextProvider, logger *slog.Logger, ) TextToTextBackend
func (TextToTextBackend) Do ¶
func (t TextToTextBackend) Do( ctx context.Context, conversation chat.Conversation, ) (string, error)
type VoiceInput ¶
type VoiceInput struct {
// contains filtered or unexported fields
}
func NewVoiceInput ¶
func (*VoiceInput) Close ¶
func (v *VoiceInput) Close()
func (*VoiceInput) GetAudioEndCh ¶
func (v *VoiceInput) GetAudioEndCh() <-chan struct{}
func (*VoiceInput) GetAudioStartCh ¶
func (v *VoiceInput) GetAudioStartCh() <-chan struct{}
func (*VoiceInput) GetInputStream ¶
func (v *VoiceInput) GetInputStream() *audio.AudioStream
Click to show internal directories.
Click to hide internal directories.