Documentation
¶
Index ¶
- Constants
- func NewAzureLLM(model, azureEndpoint, azureDeployment, apiVersion, apiKey, azureADToken string, ...) (*adapteropenai.OpenAILLM, error)
- type AzureLLMOption
- func WithAzureLLMADTokenProvider(provider func(context.Context) (string, error)) AzureLLMOption
- func WithAzureLLMBaseURL(baseURL string) AzureLLMOption
- func WithAzureLLMMaxOutputTokens(maxOutputTokens int) AzureLLMOption
- func WithAzureLLMOrganization(organization string) AzureLLMOption
- func WithAzureLLMParallelToolCalls(parallelToolCalls bool) AzureLLMOption
- func WithAzureLLMProject(project string) AzureLLMOption
- func WithAzureLLMPromptCacheKey(promptCacheKey string) AzureLLMOption
- func WithAzureLLMPromptCacheRetention(promptCacheRetention string) AzureLLMOption
- func WithAzureLLMReasoning(reasoning map[string]any) AzureLLMOption
- func WithAzureLLMReasoningEffort(reasoningEffort string) AzureLLMOption
- func WithAzureLLMServiceTier(serviceTier string) AzureLLMOption
- func WithAzureLLMTemperature(temperature float64) AzureLLMOption
- func WithAzureLLMTimeout(timeout time.Duration) AzureLLMOption
- func WithAzureLLMToolChoice(toolChoice llm.ToolChoice) AzureLLMOption
- func WithAzureLLMTopP(topP float64) AzureLLMOption
- func WithAzureLLMUser(user string) AzureLLMOption
- func WithAzureLLMVerbosity(verbosity string) AzureLLMOption
- type AzureSTT
- func (s *AzureSTT) Capabilities() stt.STTCapabilities
- func (s *AzureSTT) Close() error
- func (s *AzureSTT) InputSampleRate() uint32
- func (s *AzureSTT) Label() string
- func (s *AzureSTT) Model() string
- func (s *AzureSTT) Provider() string
- func (s *AzureSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, languageStr string) (*stt.SpeechEvent, error)
- func (s *AzureSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- func (s *AzureSTT) UpdateOptions(language string, opts ...AzureSTTOption)
- type AzureSTTOption
- func WithAzureSTTAuthToken(authToken string) AzureSTTOption
- func WithAzureSTTExplicitPunctuation(explicit bool) AzureSTTOption
- func WithAzureSTTLanguage(language string) AzureSTTOption
- func WithAzureSTTLanguages(languages ...string) AzureSTTOption
- func WithAzureSTTNumChannels(numChannels int) AzureSTTOption
- func WithAzureSTTProfanity(profanity string) AzureSTTOption
- func WithAzureSTTSampleRate(sampleRate int) AzureSTTOption
- func WithAzureSTTSegmentationMaxTime(maxTimeMS int) AzureSTTOption
- func WithAzureSTTSegmentationSilenceTimeout(timeoutMS int) AzureSTTOption
- func WithAzureSTTSegmentationStrategy(strategy string) AzureSTTOption
- func WithAzureSTTSpeechEndpoint(speechEndpoint string) AzureSTTOption
- func WithAzureSTTSpeechHost(speechHost string) AzureSTTOption
- func WithAzureSTTTrueTextPostProcessing(enabled bool) AzureSTTOption
- func WithAzureSTTWebsocketURL(websocketURL string) AzureSTTOption
- type AzureTTS
- func (t *AzureTTS) Capabilities() tts.TTSCapabilities
- func (t *AzureTTS) Close() error
- func (t *AzureTTS) Label() string
- func (t *AzureTTS) Language() string
- func (t *AzureTTS) Model() string
- func (t *AzureTTS) NumChannels() int
- func (t *AzureTTS) Provider() string
- func (t *AzureTTS) SampleRate() int
- func (t *AzureTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *AzureTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- func (t *AzureTTS) UpdateOptions(voice string, language string, opts ...AzureTTSOption) error
- type AzureTTSOption
- func WithAzureTTSAuthToken(authToken string) AzureTTSOption
- func WithAzureTTSDeploymentID(deploymentID string) AzureTTSOption
- func WithAzureTTSLanguage(language string) AzureTTSOption
- func WithAzureTTSLexiconURI(lexiconURI string) AzureTTSOption
- func WithAzureTTSProsody(prosody AzureTTSProsody) AzureTTSOption
- func WithAzureTTSSampleRate(sampleRate int) AzureTTSOption
- func WithAzureTTSSpeechEndpoint(speechEndpoint string) AzureTTSOption
- func WithAzureTTSStyle(style AzureTTSStyle) AzureTTSOption
- type AzureTTSProsody
- type AzureTTSStyle
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.azure" PluginVersion = "v0.4.0" PluginPackage = "rtp-agent.plugins.azure" )
Variables ¶
This section is empty.
Functions ¶
func NewAzureLLM ¶ added in v0.0.10
func NewAzureLLM(model, azureEndpoint, azureDeployment, apiVersion, apiKey, azureADToken string, opts ...AzureLLMOption) (*adapteropenai.OpenAILLM, error)
Types ¶
type AzureLLMOption ¶ added in v0.1.2
type AzureLLMOption = adapteropenai.OpenAILLMOption
AzureLLMOption forwards provider options to the OpenAI-compatible Azure responses implementation.
func WithAzureLLMADTokenProvider ¶ added in v0.1.2
func WithAzureLLMADTokenProvider(provider func(context.Context) (string, error)) AzureLLMOption
func WithAzureLLMBaseURL ¶ added in v0.1.2
func WithAzureLLMBaseURL(baseURL string) AzureLLMOption
func WithAzureLLMMaxOutputTokens ¶ added in v0.1.2
func WithAzureLLMMaxOutputTokens(maxOutputTokens int) AzureLLMOption
func WithAzureLLMOrganization ¶ added in v0.1.2
func WithAzureLLMOrganization(organization string) AzureLLMOption
func WithAzureLLMParallelToolCalls ¶ added in v0.1.2
func WithAzureLLMParallelToolCalls(parallelToolCalls bool) AzureLLMOption
func WithAzureLLMProject ¶ added in v0.1.2
func WithAzureLLMProject(project string) AzureLLMOption
func WithAzureLLMPromptCacheKey ¶ added in v0.1.2
func WithAzureLLMPromptCacheKey(promptCacheKey string) AzureLLMOption
func WithAzureLLMPromptCacheRetention ¶ added in v0.1.2
func WithAzureLLMPromptCacheRetention(promptCacheRetention string) AzureLLMOption
func WithAzureLLMReasoning ¶ added in v0.1.2
func WithAzureLLMReasoning(reasoning map[string]any) AzureLLMOption
func WithAzureLLMReasoningEffort ¶ added in v0.1.2
func WithAzureLLMReasoningEffort(reasoningEffort string) AzureLLMOption
func WithAzureLLMServiceTier ¶ added in v0.1.2
func WithAzureLLMServiceTier(serviceTier string) AzureLLMOption
func WithAzureLLMTemperature ¶ added in v0.1.2
func WithAzureLLMTemperature(temperature float64) AzureLLMOption
func WithAzureLLMTimeout ¶ added in v0.1.2
func WithAzureLLMTimeout(timeout time.Duration) AzureLLMOption
func WithAzureLLMToolChoice ¶ added in v0.1.2
func WithAzureLLMToolChoice(toolChoice llm.ToolChoice) AzureLLMOption
func WithAzureLLMTopP ¶ added in v0.1.2
func WithAzureLLMTopP(topP float64) AzureLLMOption
func WithAzureLLMUser ¶ added in v0.1.2
func WithAzureLLMUser(user string) AzureLLMOption
func WithAzureLLMVerbosity ¶ added in v0.1.2
func WithAzureLLMVerbosity(verbosity string) AzureLLMOption
type AzureSTT ¶
type AzureSTT struct {
// contains filtered or unexported fields
}
func NewAzureSTT ¶
func NewAzureSTT(apiKey string, region string, opts ...AzureSTTOption) (*AzureSTT, error)
func (*AzureSTT) Capabilities ¶
func (s *AzureSTT) Capabilities() stt.STTCapabilities
func (*AzureSTT) InputSampleRate ¶ added in v0.1.0
func (*AzureSTT) Recognize ¶
func (s *AzureSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, languageStr string) (*stt.SpeechEvent, error)
func (*AzureSTT) UpdateOptions ¶ added in v0.1.0
func (s *AzureSTT) UpdateOptions(language string, opts ...AzureSTTOption)
type AzureSTTOption ¶ added in v0.1.0
type AzureSTTOption func(*AzureSTT)
func WithAzureSTTAuthToken ¶ added in v0.1.0
func WithAzureSTTAuthToken(authToken string) AzureSTTOption
func WithAzureSTTExplicitPunctuation ¶ added in v0.1.0
func WithAzureSTTExplicitPunctuation(explicit bool) AzureSTTOption
func WithAzureSTTLanguage ¶ added in v0.1.0
func WithAzureSTTLanguage(language string) AzureSTTOption
func WithAzureSTTLanguages ¶ added in v0.1.2
func WithAzureSTTLanguages(languages ...string) AzureSTTOption
func WithAzureSTTNumChannels ¶ added in v0.1.2
func WithAzureSTTNumChannels(numChannels int) AzureSTTOption
func WithAzureSTTProfanity ¶ added in v0.1.0
func WithAzureSTTProfanity(profanity string) AzureSTTOption
func WithAzureSTTSampleRate ¶ added in v0.1.0
func WithAzureSTTSampleRate(sampleRate int) AzureSTTOption
func WithAzureSTTSegmentationMaxTime ¶ added in v0.1.0
func WithAzureSTTSegmentationMaxTime(maxTimeMS int) AzureSTTOption
func WithAzureSTTSegmentationSilenceTimeout ¶ added in v0.1.0
func WithAzureSTTSegmentationSilenceTimeout(timeoutMS int) AzureSTTOption
func WithAzureSTTSegmentationStrategy ¶ added in v0.1.0
func WithAzureSTTSegmentationStrategy(strategy string) AzureSTTOption
func WithAzureSTTSpeechEndpoint ¶ added in v0.1.0
func WithAzureSTTSpeechEndpoint(speechEndpoint string) AzureSTTOption
func WithAzureSTTSpeechHost ¶ added in v0.1.0
func WithAzureSTTSpeechHost(speechHost string) AzureSTTOption
func WithAzureSTTTrueTextPostProcessing ¶ added in v0.1.0
func WithAzureSTTTrueTextPostProcessing(enabled bool) AzureSTTOption
func WithAzureSTTWebsocketURL ¶ added in v0.1.0
func WithAzureSTTWebsocketURL(websocketURL string) AzureSTTOption
type AzureTTS ¶
type AzureTTS struct {
// contains filtered or unexported fields
}
func NewAzureTTS ¶
func NewAzureTTSWithOptions ¶ added in v0.1.0
func (*AzureTTS) Capabilities ¶
func (t *AzureTTS) Capabilities() tts.TTSCapabilities
func (*AzureTTS) NumChannels ¶
func (*AzureTTS) SampleRate ¶
func (*AzureTTS) Synthesize ¶
func (*AzureTTS) UpdateOptions ¶ added in v0.1.0
func (t *AzureTTS) UpdateOptions(voice string, language string, opts ...AzureTTSOption) error
type AzureTTSOption ¶ added in v0.1.0
type AzureTTSOption func(*AzureTTS)
func WithAzureTTSAuthToken ¶ added in v0.1.0
func WithAzureTTSAuthToken(authToken string) AzureTTSOption
func WithAzureTTSDeploymentID ¶ added in v0.1.0
func WithAzureTTSDeploymentID(deploymentID string) AzureTTSOption
func WithAzureTTSLanguage ¶ added in v0.1.0
func WithAzureTTSLanguage(language string) AzureTTSOption
func WithAzureTTSLexiconURI ¶ added in v0.1.0
func WithAzureTTSLexiconURI(lexiconURI string) AzureTTSOption
func WithAzureTTSProsody ¶ added in v0.1.0
func WithAzureTTSProsody(prosody AzureTTSProsody) AzureTTSOption
func WithAzureTTSSampleRate ¶ added in v0.1.0
func WithAzureTTSSampleRate(sampleRate int) AzureTTSOption
func WithAzureTTSSpeechEndpoint ¶ added in v0.1.0
func WithAzureTTSSpeechEndpoint(speechEndpoint string) AzureTTSOption
func WithAzureTTSStyle ¶ added in v0.1.0
func WithAzureTTSStyle(style AzureTTSStyle) AzureTTSOption
type AzureTTSProsody ¶ added in v0.1.0
type AzureTTSStyle ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.