Documentation
¶
Index ¶
- Constants
- type CodeExecutionTool
- func (t *CodeExecutionTool) Description() string
- func (t *CodeExecutionTool) Execute(context.Context, string) (string, error)
- func (t *CodeExecutionTool) ID() string
- func (t *CodeExecutionTool) IsProviderTool() bool
- func (t *CodeExecutionTool) Name() string
- func (t *CodeExecutionTool) Parameters() map[string]any
- type FileSearchTool
- type GoogleLLM
- type GoogleLLMOption
- type GoogleMapsTool
- type GoogleRealtimeOption
- func WithGoogleRealtimeAPIVersion(apiVersion string) GoogleRealtimeOption
- func WithGoogleRealtimeAffectiveDialog(enabled bool) GoogleRealtimeOption
- func WithGoogleRealtimeCandidateCount(count int) GoogleRealtimeOption
- func WithGoogleRealtimeConnectOptions(connectOptions llm.APIConnectOptions) GoogleRealtimeOption
- func WithGoogleRealtimeConnector(connector googleRealtimeConnector) GoogleRealtimeOption
- func WithGoogleRealtimeContextWindowCompression(config *genai.ContextWindowCompressionConfig) GoogleRealtimeOption
- func WithGoogleRealtimeFrequencyPenalty(penalty float64) GoogleRealtimeOption
- func WithGoogleRealtimeHTTPOptions(httpOptions *genai.HTTPOptions) GoogleRealtimeOption
- func WithGoogleRealtimeImageEncodeOptions(encodeOptions images.EncodeOptions) GoogleRealtimeOption
- func WithGoogleRealtimeInputAudioTranscription(enabled bool) GoogleRealtimeOption
- func WithGoogleRealtimeInputConfig(config *genai.RealtimeInputConfig) GoogleRealtimeOption
- func WithGoogleRealtimeInstructions(instructions string) GoogleRealtimeOption
- func WithGoogleRealtimeLanguage(language string) GoogleRealtimeOption
- func WithGoogleRealtimeLocation(location string) GoogleRealtimeOption
- func WithGoogleRealtimeMaxOutputTokens(tokens int) GoogleRealtimeOption
- func WithGoogleRealtimeMediaResolution(resolution genai.MediaResolution) GoogleRealtimeOption
- func WithGoogleRealtimeModalities(modalities []string) GoogleRealtimeOption
- func WithGoogleRealtimeModel(model string) GoogleRealtimeOption
- func WithGoogleRealtimeOutputAudioTranscription(enabled bool) GoogleRealtimeOption
- func WithGoogleRealtimePresencePenalty(penalty float64) GoogleRealtimeOption
- func WithGoogleRealtimeProactivity(enabled bool) GoogleRealtimeOption
- func WithGoogleRealtimeProject(project string) GoogleRealtimeOption
- func WithGoogleRealtimeSessionResumptionHandle(handle string) GoogleRealtimeOption
- func WithGoogleRealtimeTemperature(temperature float64) GoogleRealtimeOption
- func WithGoogleRealtimeThinkingConfig(config *genai.ThinkingConfig) GoogleRealtimeOption
- func WithGoogleRealtimeToolBehavior(behavior any) GoogleRealtimeOption
- func WithGoogleRealtimeToolResponseScheduling(scheduling any) GoogleRealtimeOption
- func WithGoogleRealtimeTopK(topK int) GoogleRealtimeOption
- func WithGoogleRealtimeTopP(topP float64) GoogleRealtimeOption
- func WithGoogleRealtimeTurnDetection(enabled bool) GoogleRealtimeOption
- func WithGoogleRealtimeVertexAI(enabled bool) GoogleRealtimeOption
- func WithGoogleRealtimeVoice(voice string) GoogleRealtimeOption
- type GoogleSTT
- func (s *GoogleSTT) Capabilities() stt.STTCapabilities
- func (s *GoogleSTT) Close() error
- func (s *GoogleSTT) InputSampleRate() uint32
- func (s *GoogleSTT) Label() string
- func (s *GoogleSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *GoogleSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- func (s *GoogleSTT) UpdateOptions(opts ...GoogleSTTOption) error
- type GoogleSTTKeyword
- type GoogleSTTOption
- func WithGoogleSTTAdaptation(adaptation *speechpb.SpeechAdaptation) GoogleSTTOption
- func WithGoogleSTTAdaptationV2(adaptation *speechv2pb.SpeechAdaptation) GoogleSTTOption
- func WithGoogleSTTAlternativeLanguages(languages ...string) GoogleSTTOption
- func WithGoogleSTTDenoiserConfig(config *speechv2pb.DenoiserConfig) GoogleSTTOption
- func WithGoogleSTTDetectLanguage(enabled bool) GoogleSTTOption
- func WithGoogleSTTEndpointingSensitivity(sensitivity string) GoogleSTTOption
- func WithGoogleSTTInterimResults(enabled bool) GoogleSTTOption
- func WithGoogleSTTKeywords(keywords ...GoogleSTTKeyword) GoogleSTTOption
- func WithGoogleSTTLanguage(language string) GoogleSTTOption
- func WithGoogleSTTLocation(location string) GoogleSTTOption
- func WithGoogleSTTMinConfidenceThreshold(threshold float64) GoogleSTTOption
- func WithGoogleSTTModel(model string) GoogleSTTOption
- func WithGoogleSTTProfanityFilter(profanityFilter bool) GoogleSTTOption
- func WithGoogleSTTProject(project string) GoogleSTTOption
- func WithGoogleSTTPunctuate(punctuate bool) GoogleSTTOption
- func WithGoogleSTTSampleRate(sampleRate int32) GoogleSTTOption
- func WithGoogleSTTSpeechEndTimeout(timeout time.Duration) GoogleSTTOption
- func WithGoogleSTTSpeechStartTimeout(timeout time.Duration) GoogleSTTOption
- func WithGoogleSTTSpokenPunctuation(spokenPunctuation bool) GoogleSTTOption
- func WithGoogleSTTStreaming(enabled bool) GoogleSTTOption
- func WithGoogleSTTVoiceActivityEvents(enabled bool) GoogleSTTOption
- func WithGoogleSTTWordConfidence(enabled bool) GoogleSTTOption
- func WithGoogleSTTWordTimeOffsets(enabled bool) GoogleSTTOption
- type GoogleSearchTool
- func (t *GoogleSearchTool) Description() string
- func (t *GoogleSearchTool) Execute(context.Context, string) (string, error)
- func (t *GoogleSearchTool) ID() string
- func (t *GoogleSearchTool) IsProviderTool() bool
- func (t *GoogleSearchTool) Name() string
- func (t *GoogleSearchTool) Parameters() map[string]any
- type GoogleTTS
- func (t *GoogleTTS) Capabilities() tts.TTSCapabilities
- func (t *GoogleTTS) Close() error
- func (t *GoogleTTS) Label() string
- func (t *GoogleTTS) Model() string
- func (t *GoogleTTS) NumChannels() int
- func (t *GoogleTTS) Provider() string
- func (t *GoogleTTS) SampleRate() int
- func (t *GoogleTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *GoogleTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- func (t *GoogleTTS) UpdateOptions(opts ...GoogleTTSOption)
- type GoogleTTSOption
- func WithGoogleTTSAudioEncoding(encoding texttospeechpb.AudioEncoding) GoogleTTSOption
- func WithGoogleTTSCustomPronunciations(custom *texttospeechpb.CustomPronunciations) GoogleTTSOption
- func WithGoogleTTSEffectsProfileID(profileID string) GoogleTTSOption
- func WithGoogleTTSGender(gender string) GoogleTTSOption
- func WithGoogleTTSLanguage(language string) GoogleTTSOption
- func WithGoogleTTSLocation(location string) GoogleTTSOption
- func WithGoogleTTSMarkup(enabled bool) GoogleTTSOption
- func WithGoogleTTSModel(model string) GoogleTTSOption
- func WithGoogleTTSPitch(pitch float64) GoogleTTSOption
- func WithGoogleTTSPrompt(prompt string) GoogleTTSOption
- func WithGoogleTTSSSML(enabled bool) GoogleTTSOption
- func WithGoogleTTSSampleRate(sampleRate int32) GoogleTTSOption
- func WithGoogleTTSSpeakingRate(rate float64) GoogleTTSOption
- func WithGoogleTTSStreaming(enabled bool) GoogleTTSOption
- func WithGoogleTTSVoice(voice string) GoogleTTSOption
- func WithGoogleTTSVoiceCloneKey(key string) GoogleTTSOption
- func WithGoogleTTSVolumeGainDB(volumeGainDB float64) GoogleTTSOption
- type RealtimeModel
- func (m *RealtimeModel) Capabilities() llm.RealtimeCapabilities
- func (m *RealtimeModel) Close() error
- func (m *RealtimeModel) Model() string
- func (m *RealtimeModel) Provider() string
- func (m *RealtimeModel) Session() (llm.RealtimeSession, error)
- func (m *RealtimeModel) UpdateOptions(opts ...GoogleRealtimeOption)
- type URLContextTool
- type VertexRAGRetrievalTool
- func (t *VertexRAGRetrievalTool) Description() string
- func (t *VertexRAGRetrievalTool) Execute(context.Context, string) (string, error)
- func (t *VertexRAGRetrievalTool) ID() string
- func (t *VertexRAGRetrievalTool) IsProviderTool() bool
- func (t *VertexRAGRetrievalTool) Name() string
- func (t *VertexRAGRetrievalTool) Parameters() map[string]any
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.google" PluginVersion = "v0.1.6" PluginPackage = "rtp-agent.plugins.google" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeExecutionTool ¶ added in v0.1.5
type CodeExecutionTool struct{}
func (*CodeExecutionTool) Description ¶ added in v0.1.5
func (t *CodeExecutionTool) Description() string
func (*CodeExecutionTool) ID ¶ added in v0.1.5
func (t *CodeExecutionTool) ID() string
func (*CodeExecutionTool) IsProviderTool ¶ added in v0.1.5
func (t *CodeExecutionTool) IsProviderTool() bool
func (*CodeExecutionTool) Name ¶ added in v0.1.5
func (t *CodeExecutionTool) Name() string
func (*CodeExecutionTool) Parameters ¶ added in v0.1.5
func (t *CodeExecutionTool) Parameters() map[string]any
type FileSearchTool ¶ added in v0.1.5
func (*FileSearchTool) Description ¶ added in v0.1.5
func (t *FileSearchTool) Description() string
func (*FileSearchTool) ID ¶ added in v0.1.5
func (t *FileSearchTool) ID() string
func (*FileSearchTool) IsProviderTool ¶ added in v0.1.5
func (t *FileSearchTool) IsProviderTool() bool
func (*FileSearchTool) Name ¶ added in v0.1.5
func (t *FileSearchTool) Name() string
func (*FileSearchTool) Parameters ¶ added in v0.1.5
func (t *FileSearchTool) Parameters() map[string]any
type GoogleLLM ¶
type GoogleLLM struct {
// contains filtered or unexported fields
}
func NewGoogleLLM ¶
func NewGoogleLLM(apiKey string, model string, opts ...GoogleLLMOption) (*GoogleLLM, error)
type GoogleLLMOption ¶ added in v0.1.5
type GoogleLLMOption func(*googleLLMOptions)
func WithGoogleLLMLocation ¶ added in v0.1.5
func WithGoogleLLMLocation(location string) GoogleLLMOption
func WithGoogleLLMProject ¶ added in v0.1.5
func WithGoogleLLMProject(project string) GoogleLLMOption
func WithGoogleLLMVertexAI ¶ added in v0.1.5
func WithGoogleLLMVertexAI(enabled bool) GoogleLLMOption
type GoogleMapsTool ¶ added in v0.1.5
type GoogleMapsTool struct {
AuthConfig *genai.AuthConfig
EnableWidget *bool
}
func (*GoogleMapsTool) Description ¶ added in v0.1.5
func (t *GoogleMapsTool) Description() string
func (*GoogleMapsTool) ID ¶ added in v0.1.5
func (t *GoogleMapsTool) ID() string
func (*GoogleMapsTool) IsProviderTool ¶ added in v0.1.5
func (t *GoogleMapsTool) IsProviderTool() bool
func (*GoogleMapsTool) Name ¶ added in v0.1.5
func (t *GoogleMapsTool) Name() string
func (*GoogleMapsTool) Parameters ¶ added in v0.1.5
func (t *GoogleMapsTool) Parameters() map[string]any
type GoogleRealtimeOption ¶ added in v0.1.5
type GoogleRealtimeOption func(*googleRealtimeOptions)
func WithGoogleRealtimeAPIVersion ¶ added in v0.1.5
func WithGoogleRealtimeAPIVersion(apiVersion string) GoogleRealtimeOption
func WithGoogleRealtimeAffectiveDialog ¶ added in v0.1.5
func WithGoogleRealtimeAffectiveDialog(enabled bool) GoogleRealtimeOption
func WithGoogleRealtimeCandidateCount ¶ added in v0.1.5
func WithGoogleRealtimeCandidateCount(count int) GoogleRealtimeOption
func WithGoogleRealtimeConnectOptions ¶ added in v0.1.5
func WithGoogleRealtimeConnectOptions(connectOptions llm.APIConnectOptions) GoogleRealtimeOption
func WithGoogleRealtimeConnector ¶ added in v0.1.5
func WithGoogleRealtimeConnector(connector googleRealtimeConnector) GoogleRealtimeOption
func WithGoogleRealtimeContextWindowCompression ¶ added in v0.1.5
func WithGoogleRealtimeContextWindowCompression(config *genai.ContextWindowCompressionConfig) GoogleRealtimeOption
func WithGoogleRealtimeFrequencyPenalty ¶ added in v0.1.5
func WithGoogleRealtimeFrequencyPenalty(penalty float64) GoogleRealtimeOption
func WithGoogleRealtimeHTTPOptions ¶ added in v0.1.5
func WithGoogleRealtimeHTTPOptions(httpOptions *genai.HTTPOptions) GoogleRealtimeOption
func WithGoogleRealtimeImageEncodeOptions ¶ added in v0.1.5
func WithGoogleRealtimeImageEncodeOptions(encodeOptions images.EncodeOptions) GoogleRealtimeOption
func WithGoogleRealtimeInputAudioTranscription ¶ added in v0.1.5
func WithGoogleRealtimeInputAudioTranscription(enabled bool) GoogleRealtimeOption
func WithGoogleRealtimeInputConfig ¶ added in v0.1.5
func WithGoogleRealtimeInputConfig(config *genai.RealtimeInputConfig) GoogleRealtimeOption
func WithGoogleRealtimeInstructions ¶ added in v0.1.5
func WithGoogleRealtimeInstructions(instructions string) GoogleRealtimeOption
func WithGoogleRealtimeLanguage ¶ added in v0.1.5
func WithGoogleRealtimeLanguage(language string) GoogleRealtimeOption
func WithGoogleRealtimeLocation ¶ added in v0.1.5
func WithGoogleRealtimeLocation(location string) GoogleRealtimeOption
func WithGoogleRealtimeMaxOutputTokens ¶ added in v0.1.5
func WithGoogleRealtimeMaxOutputTokens(tokens int) GoogleRealtimeOption
func WithGoogleRealtimeMediaResolution ¶ added in v0.1.5
func WithGoogleRealtimeMediaResolution(resolution genai.MediaResolution) GoogleRealtimeOption
func WithGoogleRealtimeModalities ¶ added in v0.1.5
func WithGoogleRealtimeModalities(modalities []string) GoogleRealtimeOption
func WithGoogleRealtimeModel ¶ added in v0.1.5
func WithGoogleRealtimeModel(model string) GoogleRealtimeOption
func WithGoogleRealtimeOutputAudioTranscription ¶ added in v0.1.5
func WithGoogleRealtimeOutputAudioTranscription(enabled bool) GoogleRealtimeOption
func WithGoogleRealtimePresencePenalty ¶ added in v0.1.5
func WithGoogleRealtimePresencePenalty(penalty float64) GoogleRealtimeOption
func WithGoogleRealtimeProactivity ¶ added in v0.1.5
func WithGoogleRealtimeProactivity(enabled bool) GoogleRealtimeOption
func WithGoogleRealtimeProject ¶ added in v0.1.5
func WithGoogleRealtimeProject(project string) GoogleRealtimeOption
func WithGoogleRealtimeSessionResumptionHandle ¶ added in v0.1.5
func WithGoogleRealtimeSessionResumptionHandle(handle string) GoogleRealtimeOption
func WithGoogleRealtimeTemperature ¶ added in v0.1.5
func WithGoogleRealtimeTemperature(temperature float64) GoogleRealtimeOption
func WithGoogleRealtimeThinkingConfig ¶ added in v0.1.5
func WithGoogleRealtimeThinkingConfig(config *genai.ThinkingConfig) GoogleRealtimeOption
func WithGoogleRealtimeToolBehavior ¶ added in v0.1.5
func WithGoogleRealtimeToolBehavior(behavior any) GoogleRealtimeOption
func WithGoogleRealtimeToolResponseScheduling ¶ added in v0.1.5
func WithGoogleRealtimeToolResponseScheduling(scheduling any) GoogleRealtimeOption
func WithGoogleRealtimeTopK ¶ added in v0.1.5
func WithGoogleRealtimeTopK(topK int) GoogleRealtimeOption
func WithGoogleRealtimeTopP ¶ added in v0.1.5
func WithGoogleRealtimeTopP(topP float64) GoogleRealtimeOption
func WithGoogleRealtimeTurnDetection ¶ added in v0.1.5
func WithGoogleRealtimeTurnDetection(enabled bool) GoogleRealtimeOption
func WithGoogleRealtimeVertexAI ¶ added in v0.1.5
func WithGoogleRealtimeVertexAI(enabled bool) GoogleRealtimeOption
func WithGoogleRealtimeVoice ¶ added in v0.1.5
func WithGoogleRealtimeVoice(voice string) GoogleRealtimeOption
type GoogleSTT ¶
type GoogleSTT struct {
// contains filtered or unexported fields
}
func NewGoogleSTT ¶
func NewGoogleSTT(credentialsFile string, providerOpts ...GoogleSTTOption) (*GoogleSTT, error)
NewGoogleSTT creates a new STT client using Application Default Credentials, or by providing a path to a credentials JSON file.
func (*GoogleSTT) Capabilities ¶
func (s *GoogleSTT) Capabilities() stt.STTCapabilities
func (*GoogleSTT) InputSampleRate ¶ added in v0.1.0
func (*GoogleSTT) Recognize ¶
func (s *GoogleSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*GoogleSTT) UpdateOptions ¶ added in v0.1.5
func (s *GoogleSTT) UpdateOptions(opts ...GoogleSTTOption) error
type GoogleSTTKeyword ¶ added in v0.1.5
type GoogleSTTOption ¶ added in v0.0.15
type GoogleSTTOption func(*GoogleSTT)
func WithGoogleSTTAdaptation ¶ added in v0.1.5
func WithGoogleSTTAdaptation(adaptation *speechpb.SpeechAdaptation) GoogleSTTOption
func WithGoogleSTTAdaptationV2 ¶ added in v0.1.5
func WithGoogleSTTAdaptationV2(adaptation *speechv2pb.SpeechAdaptation) GoogleSTTOption
func WithGoogleSTTAlternativeLanguages ¶ added in v0.1.5
func WithGoogleSTTAlternativeLanguages(languages ...string) GoogleSTTOption
func WithGoogleSTTDenoiserConfig ¶ added in v0.1.5
func WithGoogleSTTDenoiserConfig(config *speechv2pb.DenoiserConfig) GoogleSTTOption
func WithGoogleSTTDetectLanguage ¶ added in v0.1.5
func WithGoogleSTTDetectLanguage(enabled bool) GoogleSTTOption
func WithGoogleSTTEndpointingSensitivity ¶ added in v0.1.5
func WithGoogleSTTEndpointingSensitivity(sensitivity string) GoogleSTTOption
func WithGoogleSTTInterimResults ¶ added in v0.1.5
func WithGoogleSTTInterimResults(enabled bool) GoogleSTTOption
func WithGoogleSTTKeywords ¶ added in v0.1.5
func WithGoogleSTTKeywords(keywords ...GoogleSTTKeyword) GoogleSTTOption
func WithGoogleSTTLanguage ¶ added in v0.1.5
func WithGoogleSTTLanguage(language string) GoogleSTTOption
func WithGoogleSTTLocation ¶ added in v0.1.5
func WithGoogleSTTLocation(location string) GoogleSTTOption
func WithGoogleSTTMinConfidenceThreshold ¶ added in v0.1.0
func WithGoogleSTTMinConfidenceThreshold(threshold float64) GoogleSTTOption
func WithGoogleSTTModel ¶ added in v0.0.15
func WithGoogleSTTModel(model string) GoogleSTTOption
func WithGoogleSTTProfanityFilter ¶ added in v0.0.15
func WithGoogleSTTProfanityFilter(profanityFilter bool) GoogleSTTOption
func WithGoogleSTTProject ¶ added in v0.1.5
func WithGoogleSTTProject(project string) GoogleSTTOption
func WithGoogleSTTPunctuate ¶ added in v0.0.15
func WithGoogleSTTPunctuate(punctuate bool) GoogleSTTOption
func WithGoogleSTTSampleRate ¶ added in v0.0.15
func WithGoogleSTTSampleRate(sampleRate int32) GoogleSTTOption
func WithGoogleSTTSpeechEndTimeout ¶ added in v0.1.5
func WithGoogleSTTSpeechEndTimeout(timeout time.Duration) GoogleSTTOption
func WithGoogleSTTSpeechStartTimeout ¶ added in v0.1.5
func WithGoogleSTTSpeechStartTimeout(timeout time.Duration) GoogleSTTOption
func WithGoogleSTTSpokenPunctuation ¶ added in v0.0.15
func WithGoogleSTTSpokenPunctuation(spokenPunctuation bool) GoogleSTTOption
func WithGoogleSTTStreaming ¶ added in v0.1.5
func WithGoogleSTTStreaming(enabled bool) GoogleSTTOption
func WithGoogleSTTVoiceActivityEvents ¶ added in v0.1.0
func WithGoogleSTTVoiceActivityEvents(enabled bool) GoogleSTTOption
func WithGoogleSTTWordConfidence ¶ added in v0.1.0
func WithGoogleSTTWordConfidence(enabled bool) GoogleSTTOption
func WithGoogleSTTWordTimeOffsets ¶ added in v0.1.5
func WithGoogleSTTWordTimeOffsets(enabled bool) GoogleSTTOption
type GoogleSearchTool ¶ added in v0.1.5
type GoogleSearchTool struct {
ExcludeDomains []string
BlockingConfidence genai.PhishBlockThreshold
TimeRangeFilter *genai.Interval
}
func (*GoogleSearchTool) Description ¶ added in v0.1.5
func (t *GoogleSearchTool) Description() string
func (*GoogleSearchTool) ID ¶ added in v0.1.5
func (t *GoogleSearchTool) ID() string
func (*GoogleSearchTool) IsProviderTool ¶ added in v0.1.5
func (t *GoogleSearchTool) IsProviderTool() bool
func (*GoogleSearchTool) Name ¶ added in v0.1.5
func (t *GoogleSearchTool) Name() string
func (*GoogleSearchTool) Parameters ¶ added in v0.1.5
func (t *GoogleSearchTool) Parameters() map[string]any
type GoogleTTS ¶
type GoogleTTS struct {
// contains filtered or unexported fields
}
func NewGoogleTTS ¶
func NewGoogleTTS(credentialsFile string, ttsOpts ...GoogleTTSOption) (*GoogleTTS, error)
NewGoogleTTS creates a new TTS client using Application Default Credentials, or by providing a path to a credentials JSON file.
func (*GoogleTTS) Capabilities ¶
func (t *GoogleTTS) Capabilities() tts.TTSCapabilities
func (*GoogleTTS) NumChannels ¶
func (*GoogleTTS) SampleRate ¶
func (*GoogleTTS) Synthesize ¶
func (*GoogleTTS) UpdateOptions ¶ added in v0.1.0
func (t *GoogleTTS) UpdateOptions(opts ...GoogleTTSOption)
type GoogleTTSOption ¶ added in v0.0.15
type GoogleTTSOption func(*googleTTSConfig)
func WithGoogleTTSAudioEncoding ¶ added in v0.1.5
func WithGoogleTTSAudioEncoding(encoding texttospeechpb.AudioEncoding) GoogleTTSOption
func WithGoogleTTSCustomPronunciations ¶ added in v0.1.5
func WithGoogleTTSCustomPronunciations(custom *texttospeechpb.CustomPronunciations) GoogleTTSOption
func WithGoogleTTSEffectsProfileID ¶ added in v0.1.0
func WithGoogleTTSEffectsProfileID(profileID string) GoogleTTSOption
func WithGoogleTTSGender ¶ added in v0.1.5
func WithGoogleTTSGender(gender string) GoogleTTSOption
func WithGoogleTTSLanguage ¶ added in v0.0.15
func WithGoogleTTSLanguage(language string) GoogleTTSOption
func WithGoogleTTSLocation ¶ added in v0.1.5
func WithGoogleTTSLocation(location string) GoogleTTSOption
func WithGoogleTTSMarkup ¶ added in v0.1.5
func WithGoogleTTSMarkup(enabled bool) GoogleTTSOption
func WithGoogleTTSModel ¶ added in v0.0.15
func WithGoogleTTSModel(model string) GoogleTTSOption
func WithGoogleTTSPitch ¶ added in v0.1.0
func WithGoogleTTSPitch(pitch float64) GoogleTTSOption
func WithGoogleTTSPrompt ¶ added in v0.1.0
func WithGoogleTTSPrompt(prompt string) GoogleTTSOption
func WithGoogleTTSSSML ¶ added in v0.1.5
func WithGoogleTTSSSML(enabled bool) GoogleTTSOption
func WithGoogleTTSSampleRate ¶ added in v0.1.5
func WithGoogleTTSSampleRate(sampleRate int32) GoogleTTSOption
func WithGoogleTTSSpeakingRate ¶ added in v0.1.0
func WithGoogleTTSSpeakingRate(rate float64) GoogleTTSOption
func WithGoogleTTSStreaming ¶ added in v0.1.5
func WithGoogleTTSStreaming(enabled bool) GoogleTTSOption
func WithGoogleTTSVoice ¶ added in v0.0.15
func WithGoogleTTSVoice(voice string) GoogleTTSOption
func WithGoogleTTSVoiceCloneKey ¶ added in v0.1.5
func WithGoogleTTSVoiceCloneKey(key string) GoogleTTSOption
func WithGoogleTTSVolumeGainDB ¶ added in v0.1.0
func WithGoogleTTSVolumeGainDB(volumeGainDB float64) GoogleTTSOption
type RealtimeModel ¶ added in v0.1.5
type RealtimeModel struct {
// contains filtered or unexported fields
}
func NewRealtimeModel ¶ added in v0.1.5
func NewRealtimeModel(apiKey string, opts ...GoogleRealtimeOption) (*RealtimeModel, error)
func (*RealtimeModel) Capabilities ¶ added in v0.1.5
func (m *RealtimeModel) Capabilities() llm.RealtimeCapabilities
func (*RealtimeModel) Close ¶ added in v0.1.5
func (m *RealtimeModel) Close() error
func (*RealtimeModel) Model ¶ added in v0.1.5
func (m *RealtimeModel) Model() string
func (*RealtimeModel) Provider ¶ added in v0.1.5
func (m *RealtimeModel) Provider() string
func (*RealtimeModel) Session ¶ added in v0.1.5
func (m *RealtimeModel) Session() (llm.RealtimeSession, error)
func (*RealtimeModel) UpdateOptions ¶ added in v0.1.5
func (m *RealtimeModel) UpdateOptions(opts ...GoogleRealtimeOption)
type URLContextTool ¶ added in v0.1.5
type URLContextTool struct{}
func (*URLContextTool) Description ¶ added in v0.1.5
func (t *URLContextTool) Description() string
func (*URLContextTool) ID ¶ added in v0.1.5
func (t *URLContextTool) ID() string
func (*URLContextTool) IsProviderTool ¶ added in v0.1.5
func (t *URLContextTool) IsProviderTool() bool
func (*URLContextTool) Name ¶ added in v0.1.5
func (t *URLContextTool) Name() string
func (*URLContextTool) Parameters ¶ added in v0.1.5
func (t *URLContextTool) Parameters() map[string]any
type VertexRAGRetrievalTool ¶ added in v0.1.5
type VertexRAGRetrievalTool struct {
RAGResources []string
SimilarityTopK int32
VectorDistanceThreshold *float64
}
func (*VertexRAGRetrievalTool) Description ¶ added in v0.1.5
func (t *VertexRAGRetrievalTool) Description() string
func (*VertexRAGRetrievalTool) ID ¶ added in v0.1.5
func (t *VertexRAGRetrievalTool) ID() string
func (*VertexRAGRetrievalTool) IsProviderTool ¶ added in v0.1.5
func (t *VertexRAGRetrievalTool) IsProviderTool() bool
func (*VertexRAGRetrievalTool) Name ¶ added in v0.1.5
func (t *VertexRAGRetrievalTool) Name() string
func (*VertexRAGRetrievalTool) Parameters ¶ added in v0.1.5
func (t *VertexRAGRetrievalTool) Parameters() map[string]any
Click to show internal directories.
Click to hide internal directories.