google

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 39 Imported by: 0

Documentation

Index

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) 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

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

func NewGoogleLLM

func NewGoogleLLM(apiKey string, model string, opts ...GoogleLLMOption) (*GoogleLLM, error)

func (*GoogleLLM) Chat

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

func (*GoogleLLM) Model added in v0.0.15

func (l *GoogleLLM) Model() string

func (*GoogleLLM) Provider added in v0.0.15

func (l *GoogleLLM) Provider() string

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) 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 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) Close added in v0.1.0

func (s *GoogleSTT) Close() error

func (*GoogleSTT) InputSampleRate added in v0.1.0

func (s *GoogleSTT) InputSampleRate() uint32

func (*GoogleSTT) Label

func (s *GoogleSTT) Label() string

func (*GoogleSTT) Recognize

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

func (*GoogleSTT) Stream

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

func (*GoogleSTT) UpdateOptions added in v0.1.5

func (s *GoogleSTT) UpdateOptions(opts ...GoogleSTTOption) error

type GoogleSTTKeyword added in v0.1.5

type GoogleSTTKeyword struct {
	Value string
	Boost float32
}

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) 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

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) Close added in v0.1.0

func (t *GoogleTTS) Close() error

func (*GoogleTTS) Label

func (t *GoogleTTS) Label() string

func (*GoogleTTS) Model added in v0.1.0

func (t *GoogleTTS) Model() string

func (*GoogleTTS) NumChannels

func (t *GoogleTTS) NumChannels() int

func (*GoogleTTS) Provider added in v0.1.0

func (t *GoogleTTS) Provider() string

func (*GoogleTTS) SampleRate

func (t *GoogleTTS) SampleRate() int

func (*GoogleTTS) Stream

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

func (*GoogleTTS) Synthesize

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

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) 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