groq

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.groq"
	PluginVersion = "1.5.15"
	PluginPackage = "rtp-agent.plugins.groq"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GroqLLM

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

func NewGroqLLM

func NewGroqLLM(apiKey string, model string, opts ...GroqLLMOption) *GroqLLM

func (*GroqLLM) Chat

func (l *GroqLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)

func (*GroqLLM) Model added in v0.0.15

func (l *GroqLLM) Model() string

func (*GroqLLM) Provider added in v0.0.15

func (l *GroqLLM) Provider() string

type GroqLLMOption added in v0.0.17

type GroqLLMOption func(*GroqLLM)

func WithGroqLLMBaseURL added in v0.0.17

func WithGroqLLMBaseURL(baseURL string) GroqLLMOption

func WithGroqLLMReasoningEffort added in v0.0.17

func WithGroqLLMReasoningEffort(reasoningEffort string) GroqLLMOption

type GroqSTT added in v0.0.6

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

func NewGroqSTT added in v0.0.6

func NewGroqSTT(apiKey string, model string, opts ...GroqSTTOption) (*GroqSTT, error)

func (*GroqSTT) Capabilities added in v0.0.6

func (s *GroqSTT) Capabilities() stt.STTCapabilities

func (*GroqSTT) Label added in v0.0.6

func (s *GroqSTT) Label() string

func (*GroqSTT) Model added in v0.0.17

func (s *GroqSTT) Model() string

func (*GroqSTT) Provider added in v0.0.17

func (s *GroqSTT) Provider() string

func (*GroqSTT) Recognize added in v0.0.6

func (s *GroqSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)

func (*GroqSTT) Stream added in v0.0.6

func (s *GroqSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)

type GroqSTTOption added in v0.0.17

type GroqSTTOption func(*GroqSTT)

func WithGroqSTTBaseURL added in v0.0.17

func WithGroqSTTBaseURL(baseURL string) GroqSTTOption

func WithGroqSTTDetectLanguage added in v0.0.17

func WithGroqSTTDetectLanguage(detectLanguage bool) GroqSTTOption

func WithGroqSTTLanguage added in v0.0.17

func WithGroqSTTLanguage(language string) GroqSTTOption

func WithGroqSTTPrompt added in v0.0.17

func WithGroqSTTPrompt(prompt string) GroqSTTOption

type GroqTTS added in v0.0.15

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

func NewGroqTTS added in v0.0.15

func NewGroqTTS(apiKey string, voice string, opts ...GroqTTSOption) *GroqTTS

func (*GroqTTS) Capabilities added in v0.0.15

func (t *GroqTTS) Capabilities() tts.TTSCapabilities

func (*GroqTTS) Label added in v0.0.15

func (t *GroqTTS) Label() string

func (*GroqTTS) Model added in v0.0.17

func (t *GroqTTS) Model() string

func (*GroqTTS) NumChannels added in v0.0.15

func (t *GroqTTS) NumChannels() int

func (*GroqTTS) Provider added in v0.0.17

func (t *GroqTTS) Provider() string

func (*GroqTTS) SampleRate added in v0.0.15

func (t *GroqTTS) SampleRate() int

func (*GroqTTS) Stream added in v0.0.15

func (t *GroqTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)

func (*GroqTTS) Synthesize added in v0.0.15

func (t *GroqTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)

func (*GroqTTS) UpdateOptions added in v0.0.17

func (t *GroqTTS) UpdateOptions(model string, voice string)

type GroqTTSOption added in v0.0.15

type GroqTTSOption func(*GroqTTS)

func WithGroqTTSBaseURL added in v0.0.15

func WithGroqTTSBaseURL(baseURL string) GroqTTSOption

func WithGroqTTSModel added in v0.0.15

func WithGroqTTSModel(model string) GroqTTSOption

func WithGroqTTSVoice added in v0.0.15

func WithGroqTTSVoice(voice string) GroqTTSOption

Jump to

Keyboard shortcuts

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