Documentation
¶
Index ¶
- Constants
- type FileSearchTool
- type WebSearchTool
- type XSearchTool
- type XaiLLM
- type XaiSTT
- type XaiSTTOption
- func WithXaiSTTDiarization(enabled bool) XaiSTTOption
- func WithXaiSTTEndpointing(endpointing int) XaiSTTOption
- func WithXaiSTTInterimResults(enabled bool) XaiSTTOption
- func WithXaiSTTLanguage(language string) XaiSTTOption
- func WithXaiSTTRestURL(restURL string) XaiSTTOption
- func WithXaiSTTSampleRate(sampleRate int) XaiSTTOption
- func WithXaiSTTWebsocketURL(websocketURL string) XaiSTTOption
- type XaiTTS
- func (t *XaiTTS) Capabilities() tts.TTSCapabilities
- func (t *XaiTTS) Label() string
- func (t *XaiTTS) Model() string
- func (t *XaiTTS) NumChannels() int
- func (t *XaiTTS) Provider() string
- func (t *XaiTTS) SampleRate() int
- func (t *XaiTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *XaiTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type XaiTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.xai" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.xai" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSearchTool ¶
func (*FileSearchTool) Description ¶
func (t *FileSearchTool) Description() string
func (*FileSearchTool) ID ¶
func (t *FileSearchTool) ID() string
func (*FileSearchTool) Name ¶
func (t *FileSearchTool) Name() string
func (*FileSearchTool) Parameters ¶
func (t *FileSearchTool) Parameters() map[string]any
type WebSearchTool ¶
type WebSearchTool struct{}
XAITool implementations
func (*WebSearchTool) Description ¶
func (t *WebSearchTool) Description() string
func (*WebSearchTool) ID ¶
func (t *WebSearchTool) ID() string
func (*WebSearchTool) Name ¶
func (t *WebSearchTool) Name() string
func (*WebSearchTool) Parameters ¶
func (t *WebSearchTool) Parameters() map[string]any
type XSearchTool ¶
type XSearchTool struct{ AllowedHandles []string }
func (*XSearchTool) Description ¶
func (t *XSearchTool) Description() string
func (*XSearchTool) ID ¶
func (t *XSearchTool) ID() string
func (*XSearchTool) Name ¶
func (t *XSearchTool) Name() string
func (*XSearchTool) Parameters ¶
func (t *XSearchTool) Parameters() map[string]any
type XaiLLM ¶
type XaiLLM struct {
// contains filtered or unexported fields
}
type XaiSTT ¶ added in v0.0.15
type XaiSTT struct {
// contains filtered or unexported fields
}
func NewXaiSTT ¶ added in v0.0.15
func NewXaiSTT(apiKey string, opts ...XaiSTTOption) *XaiSTT
func (*XaiSTT) Capabilities ¶ added in v0.0.15
func (s *XaiSTT) Capabilities() stt.STTCapabilities
type XaiSTTOption ¶ added in v0.0.15
type XaiSTTOption func(*XaiSTT)
func WithXaiSTTDiarization ¶ added in v0.0.15
func WithXaiSTTDiarization(enabled bool) XaiSTTOption
func WithXaiSTTEndpointing ¶ added in v0.0.15
func WithXaiSTTEndpointing(endpointing int) XaiSTTOption
func WithXaiSTTInterimResults ¶ added in v0.0.15
func WithXaiSTTInterimResults(enabled bool) XaiSTTOption
func WithXaiSTTLanguage ¶ added in v0.0.15
func WithXaiSTTLanguage(language string) XaiSTTOption
func WithXaiSTTRestURL ¶ added in v0.0.15
func WithXaiSTTRestURL(restURL string) XaiSTTOption
func WithXaiSTTSampleRate ¶ added in v0.0.15
func WithXaiSTTSampleRate(sampleRate int) XaiSTTOption
func WithXaiSTTWebsocketURL ¶ added in v0.0.15
func WithXaiSTTWebsocketURL(websocketURL string) XaiSTTOption
type XaiTTS ¶ added in v0.0.15
type XaiTTS struct {
// contains filtered or unexported fields
}
func NewXaiTTS ¶ added in v0.0.15
func NewXaiTTS(apiKey string, voice string, opts ...XaiTTSOption) *XaiTTS
func (*XaiTTS) Capabilities ¶ added in v0.0.15
func (t *XaiTTS) Capabilities() tts.TTSCapabilities
func (*XaiTTS) NumChannels ¶ added in v0.0.15
func (*XaiTTS) SampleRate ¶ added in v0.0.15
func (*XaiTTS) Synthesize ¶ added in v0.0.15
type XaiTTSOption ¶ added in v0.0.15
type XaiTTSOption func(*XaiTTS)
func WithXaiTTSLanguage ¶ added in v0.0.15
func WithXaiTTSLanguage(language string) XaiTTSOption
func WithXaiTTSWebsocketURL ¶ added in v0.0.15
func WithXaiTTSWebsocketURL(websocketURL string) XaiTTSOption
Click to show internal directories.
Click to hide internal directories.