google

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.google"
	PluginVersion = "v0.4.2"
	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) Execute added in v0.1.5

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

type FileSearchTool struct {
	FileSearchStoreNames []string
	TopK                 *int32
	MetadataFilter       string
}

func (*FileSearchTool) Description added in v0.1.5

func (t *FileSearchTool) Description() string

func (*FileSearchTool) Execute added in v0.1.5

func (t *FileSearchTool) Execute(context.Context, string) (string, error)

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 deprecated

type GoogleLLM = LLM

Deprecated: use LLM.

type GoogleLLMOption deprecated added in v0.1.5

type GoogleLLMOption = LLMOption

Deprecated: use LLMOption.

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) Execute added in v0.1.5

func (t *GoogleMapsTool) Execute(context.Context, string) (string, error)

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 deprecated added in v0.1.5

type GoogleRealtimeOption = RealtimeOption

Deprecated: use RealtimeOption.

type GoogleSTT deprecated

type GoogleSTT = STT

Deprecated: use STT.

type GoogleSTTKeyword added in v0.1.5

type GoogleSTTKeyword struct {
	Value string
	Boost float32
}

type GoogleSTTOption deprecated added in v0.0.15

type GoogleSTTOption = STTOption

Deprecated: use STTOption.

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) Execute added in v0.1.5

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 deprecated

type GoogleTTS = TTS

Deprecated: use TTS.

type GoogleTTSOption deprecated added in v0.0.15

type GoogleTTSOption = TTSOption

Deprecated: use TTSOption.

type LLM added in v0.4.2

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

func NewGoogleLLM deprecated

func NewGoogleLLM(apiKey string, model string, opts ...LLMOption) (*LLM, error)

Deprecated: use NewLLM.

func NewLLM added in v0.4.2

func NewLLM(apiKey string, model string, opts ...LLMOption) (*LLM, error)

func (*LLM) Chat added in v0.4.2

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

func (*LLM) Model added in v0.4.2

func (l *LLM) Model() string

func (*LLM) Provider added in v0.4.2

func (l *LLM) Provider() string

type LLMOption added in v0.4.2

type LLMOption func(*googleLLMOptions)

func WithGoogleLLMLocation added in v0.1.5

func WithGoogleLLMLocation(location string) LLMOption

func WithGoogleLLMProject added in v0.1.5

func WithGoogleLLMProject(project string) LLMOption

func WithGoogleLLMVertexAI added in v0.1.5

func WithGoogleLLMVertexAI(enabled bool) LLMOption

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 ...RealtimeOption) (*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 ...RealtimeOption)

type RealtimeOption added in v0.4.2

type RealtimeOption func(*googleRealtimeOptions)

func WithGoogleRealtimeAPIVersion added in v0.1.5

func WithGoogleRealtimeAPIVersion(apiVersion string) RealtimeOption

func WithGoogleRealtimeAffectiveDialog added in v0.1.5

func WithGoogleRealtimeAffectiveDialog(enabled bool) RealtimeOption

func WithGoogleRealtimeCandidateCount added in v0.1.5

func WithGoogleRealtimeCandidateCount(count int) RealtimeOption

func WithGoogleRealtimeConnectOptions added in v0.1.5

func WithGoogleRealtimeConnectOptions(connectOptions llm.APIConnectOptions) RealtimeOption

func WithGoogleRealtimeConnector added in v0.1.5

func WithGoogleRealtimeConnector(connector googleRealtimeConnector) RealtimeOption

func WithGoogleRealtimeContextWindowCompression added in v0.1.5

func WithGoogleRealtimeContextWindowCompression(config *genai.ContextWindowCompressionConfig) RealtimeOption

func WithGoogleRealtimeFrequencyPenalty added in v0.1.5

func WithGoogleRealtimeFrequencyPenalty(penalty float64) RealtimeOption

func WithGoogleRealtimeHTTPOptions added in v0.1.5

func WithGoogleRealtimeHTTPOptions(httpOptions *genai.HTTPOptions) RealtimeOption

func WithGoogleRealtimeImageEncodeOptions added in v0.1.5

func WithGoogleRealtimeImageEncodeOptions(encodeOptions images.EncodeOptions) RealtimeOption

func WithGoogleRealtimeInputAudioTranscription added in v0.1.5

func WithGoogleRealtimeInputAudioTranscription(enabled bool) RealtimeOption

func WithGoogleRealtimeInputConfig added in v0.1.5

func WithGoogleRealtimeInputConfig(config *genai.RealtimeInputConfig) RealtimeOption

func WithGoogleRealtimeInstructions added in v0.1.5

func WithGoogleRealtimeInstructions(instructions string) RealtimeOption

func WithGoogleRealtimeLanguage added in v0.1.5

func WithGoogleRealtimeLanguage(language string) RealtimeOption

func WithGoogleRealtimeLocation added in v0.1.5

func WithGoogleRealtimeLocation(location string) RealtimeOption

func WithGoogleRealtimeMaxOutputTokens added in v0.1.5

func WithGoogleRealtimeMaxOutputTokens(tokens int) RealtimeOption

func WithGoogleRealtimeMediaResolution added in v0.1.5

func WithGoogleRealtimeMediaResolution(resolution genai.MediaResolution) RealtimeOption

func WithGoogleRealtimeModalities added in v0.1.5

func WithGoogleRealtimeModalities(modalities []string) RealtimeOption

func WithGoogleRealtimeModel added in v0.1.5

func WithGoogleRealtimeModel(model string) RealtimeOption

func WithGoogleRealtimeOutputAudioTranscription added in v0.1.5

func WithGoogleRealtimeOutputAudioTranscription(enabled bool) RealtimeOption

func WithGoogleRealtimePresencePenalty added in v0.1.5

func WithGoogleRealtimePresencePenalty(penalty float64) RealtimeOption

func WithGoogleRealtimeProactivity added in v0.1.5

func WithGoogleRealtimeProactivity(enabled bool) RealtimeOption

func WithGoogleRealtimeProject added in v0.1.5

func WithGoogleRealtimeProject(project string) RealtimeOption

func WithGoogleRealtimeSessionResumptionHandle added in v0.1.5

func WithGoogleRealtimeSessionResumptionHandle(handle string) RealtimeOption

func WithGoogleRealtimeTemperature added in v0.1.5

func WithGoogleRealtimeTemperature(temperature float64) RealtimeOption

func WithGoogleRealtimeThinkingConfig added in v0.1.5

func WithGoogleRealtimeThinkingConfig(config *genai.ThinkingConfig) RealtimeOption

func WithGoogleRealtimeToolBehavior added in v0.1.5

func WithGoogleRealtimeToolBehavior(behavior any) RealtimeOption

func WithGoogleRealtimeToolResponseScheduling added in v0.1.5

func WithGoogleRealtimeToolResponseScheduling(scheduling any) RealtimeOption

func WithGoogleRealtimeTopK added in v0.1.5

func WithGoogleRealtimeTopK(topK int) RealtimeOption

func WithGoogleRealtimeTopP added in v0.1.5

func WithGoogleRealtimeTopP(topP float64) RealtimeOption

func WithGoogleRealtimeTurnDetection added in v0.1.5

func WithGoogleRealtimeTurnDetection(enabled bool) RealtimeOption

func WithGoogleRealtimeVertexAI added in v0.1.5

func WithGoogleRealtimeVertexAI(enabled bool) RealtimeOption

func WithGoogleRealtimeVoice added in v0.1.5

func WithGoogleRealtimeVoice(voice string) RealtimeOption

type STT added in v0.4.2

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

func NewGoogleSTT deprecated

func NewGoogleSTT(credentialsFile string, providerOpts ...STTOption) (*STT, error)

Deprecated: use NewSTT.

func NewSTT added in v0.4.2

func NewSTT(credentialsFile string, providerOpts ...STTOption) (*STT, error)

NewGoogleSTT creates a new STT client using Application Default Credentials, or by providing a path to a credentials JSON file.

func (*STT) Capabilities added in v0.4.2

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

func (*STT) Close added in v0.4.2

func (s *STT) Close() error

func (*STT) InputSampleRate added in v0.4.2

func (s *STT) InputSampleRate() uint32

func (*STT) Label added in v0.4.2

func (s *STT) Label() string

func (*STT) Recognize added in v0.4.2

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

func (*STT) Stream added in v0.4.2

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

func (*STT) UpdateOptions added in v0.4.2

func (s *STT) UpdateOptions(opts ...STTOption) error

type STTOption added in v0.0.7

type STTOption func(*STT)

func WithGoogleSTTAdaptation added in v0.1.5

func WithGoogleSTTAdaptation(adaptation *speechpb.SpeechAdaptation) STTOption

func WithGoogleSTTAdaptationV2 added in v0.1.5

func WithGoogleSTTAdaptationV2(adaptation *speechv2pb.SpeechAdaptation) STTOption

func WithGoogleSTTAlternativeLanguages added in v0.1.5

func WithGoogleSTTAlternativeLanguages(languages ...string) STTOption

func WithGoogleSTTDenoiserConfig added in v0.1.5

func WithGoogleSTTDenoiserConfig(config *speechv2pb.DenoiserConfig) STTOption

func WithGoogleSTTDetectLanguage added in v0.1.5

func WithGoogleSTTDetectLanguage(enabled bool) STTOption

func WithGoogleSTTEndpointingSensitivity added in v0.1.5

func WithGoogleSTTEndpointingSensitivity(sensitivity string) STTOption

func WithGoogleSTTInterimResults added in v0.1.5

func WithGoogleSTTInterimResults(enabled bool) STTOption

func WithGoogleSTTKeywords added in v0.1.5

func WithGoogleSTTKeywords(keywords ...GoogleSTTKeyword) STTOption

func WithGoogleSTTLanguage added in v0.1.5

func WithGoogleSTTLanguage(language string) STTOption

func WithGoogleSTTLocation added in v0.1.5

func WithGoogleSTTLocation(location string) STTOption

func WithGoogleSTTMinConfidenceThreshold added in v0.1.0

func WithGoogleSTTMinConfidenceThreshold(threshold float64) STTOption

func WithGoogleSTTModel added in v0.0.15

func WithGoogleSTTModel(model string) STTOption

func WithGoogleSTTProfanityFilter added in v0.0.15

func WithGoogleSTTProfanityFilter(profanityFilter bool) STTOption

func WithGoogleSTTProject added in v0.1.5

func WithGoogleSTTProject(project string) STTOption

func WithGoogleSTTPunctuate added in v0.0.15

func WithGoogleSTTPunctuate(punctuate bool) STTOption

func WithGoogleSTTSampleRate added in v0.0.15

func WithGoogleSTTSampleRate(sampleRate int32) STTOption

func WithGoogleSTTSpeechEndTimeout added in v0.1.5

func WithGoogleSTTSpeechEndTimeout(timeout time.Duration) STTOption

func WithGoogleSTTSpeechStartTimeout added in v0.1.5

func WithGoogleSTTSpeechStartTimeout(timeout time.Duration) STTOption

func WithGoogleSTTSpokenPunctuation added in v0.0.15

func WithGoogleSTTSpokenPunctuation(spokenPunctuation bool) STTOption

func WithGoogleSTTStreaming added in v0.1.5

func WithGoogleSTTStreaming(enabled bool) STTOption

func WithGoogleSTTVoiceActivityEvents added in v0.1.0

func WithGoogleSTTVoiceActivityEvents(enabled bool) STTOption

func WithGoogleSTTWordConfidence added in v0.1.0

func WithGoogleSTTWordConfidence(enabled bool) STTOption

func WithGoogleSTTWordTimeOffsets added in v0.1.5

func WithGoogleSTTWordTimeOffsets(enabled bool) STTOption

type TTS added in v0.4.2

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

func NewGoogleTTS deprecated

func NewGoogleTTS(credentialsFile string, ttsOpts ...TTSOption) (*TTS, error)

Deprecated: use NewTTS.

func NewTTS added in v0.4.2

func NewTTS(credentialsFile string, ttsOpts ...TTSOption) (*TTS, error)

NewGoogleTTS creates a new TTS client using Application Default Credentials, or by providing a path to a credentials JSON file.

func (*TTS) Capabilities added in v0.4.2

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

func (*TTS) Close added in v0.4.2

func (t *TTS) Close() error

func (*TTS) Label added in v0.4.2

func (t *TTS) Label() string

func (*TTS) Model added in v0.4.2

func (t *TTS) Model() string

func (*TTS) NumChannels added in v0.4.2

func (t *TTS) NumChannels() int

func (*TTS) Provider added in v0.4.2

func (t *TTS) Provider() string

func (*TTS) SampleRate added in v0.4.2

func (t *TTS) SampleRate() int

func (*TTS) Stream added in v0.4.2

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

func (*TTS) Synthesize added in v0.4.2

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

func (*TTS) UpdateOptions added in v0.4.2

func (t *TTS) UpdateOptions(opts ...TTSOption)

type TTSOption added in v0.4.2

type TTSOption func(*googleTTSConfig)

func WithGoogleTTSAudioEncoding added in v0.1.5

func WithGoogleTTSAudioEncoding(encoding texttospeechpb.AudioEncoding) TTSOption

func WithGoogleTTSCustomPronunciations added in v0.1.5

func WithGoogleTTSCustomPronunciations(custom *texttospeechpb.CustomPronunciations) TTSOption

func WithGoogleTTSEffectsProfileID added in v0.1.0

func WithGoogleTTSEffectsProfileID(profileID string) TTSOption

func WithGoogleTTSGender added in v0.1.5

func WithGoogleTTSGender(gender string) TTSOption

func WithGoogleTTSLanguage added in v0.0.15

func WithGoogleTTSLanguage(language string) TTSOption

func WithGoogleTTSLocation added in v0.1.5

func WithGoogleTTSLocation(location string) TTSOption

func WithGoogleTTSMarkup added in v0.1.5

func WithGoogleTTSMarkup(enabled bool) TTSOption

func WithGoogleTTSModel added in v0.0.15

func WithGoogleTTSModel(model string) TTSOption

func WithGoogleTTSPitch added in v0.1.0

func WithGoogleTTSPitch(pitch float64) TTSOption

func WithGoogleTTSPrompt added in v0.1.0

func WithGoogleTTSPrompt(prompt string) TTSOption

func WithGoogleTTSSSML added in v0.1.5

func WithGoogleTTSSSML(enabled bool) TTSOption

func WithGoogleTTSSampleRate added in v0.1.5

func WithGoogleTTSSampleRate(sampleRate int32) TTSOption

func WithGoogleTTSSpeakingRate added in v0.1.0

func WithGoogleTTSSpeakingRate(rate float64) TTSOption

func WithGoogleTTSStreaming added in v0.1.5

func WithGoogleTTSStreaming(enabled bool) TTSOption

func WithGoogleTTSVoice added in v0.0.15

func WithGoogleTTSVoice(voice string) TTSOption

func WithGoogleTTSVoiceCloneKey added in v0.1.5

func WithGoogleTTSVoiceCloneKey(key string) TTSOption

func WithGoogleTTSVolumeGainDB added in v0.1.0

func WithGoogleTTSVolumeGainDB(volumeGainDB float64) TTSOption

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) Execute added in v0.1.5

func (t *URLContextTool) Execute(context.Context, string) (string, error)

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) Execute added in v0.1.5

func (*VertexRAGRetrievalTool) ID added in v0.1.5

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

Jump to

Keyboard shortcuts

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