pub struct ProvidersApi { /* private fields */ }Expand description
LLM provider discovery and model listing
Implementations§
Source§impl ProvidersApi
impl ProvidersApi
Sourcepub async fn get_llm_usage(&self) -> Result<LLMUsageSummary>
pub async fn get_llm_usage(&self) -> Result<LLMUsageSummary>
LLM usage stats
GET /api/v1/llm/usage
Required scopes: agents:read.
Sourcepub async fn get_llm_voice_config(&self) -> Result<VoiceConfig>
pub async fn get_llm_voice_config(&self) -> Result<VoiceConfig>
Platform default STT/TTS provider/model
GET /api/v1/llm/voice-config
Required scopes: agents:read.
Sourcepub async fn get_platform_defaults(&self) -> Result<PlatformLLMDefaults>
pub async fn get_platform_defaults(&self) -> Result<PlatformLLMDefaults>
Get platform default providers
GET /api/v1/providers/platform-defaults
Sourcepub async fn list(&self) -> Result<ListProvidersResponse>
pub async fn list(&self) -> Result<ListProvidersResponse>
List configured LLM providers
GET /api/v1/providers
Sourcepub async fn list_image_providers(&self) -> Result<ImageProviderList>
pub async fn list_image_providers(&self) -> Result<ImageProviderList>
List image generation providers and models
GET /api/v1/providers/image-providers
Sourcepub async fn list_llm_models(&self) -> Result<ListLLMModelsResponse>
pub async fn list_llm_models(&self) -> Result<ListLLMModelsResponse>
List available LLM models
GET /api/v1/llm/models
Required scopes: agents:read.
Sourcepub async fn list_provider_models(
&self,
provider_id: &str,
) -> Result<ListProviderModelsResponse>
pub async fn list_provider_models( &self, provider_id: &str, ) -> Result<ListProviderModelsResponse>
Fetch real models from provider API
GET /api/v1/providers/{providerId}/models
Sourcepub async fn list_video_providers(&self) -> Result<ListVideoProvidersResponse>
pub async fn list_video_providers(&self) -> Result<ListVideoProvidersResponse>
List video providers
GET /api/v1/providers/video-providers
Sourcepub async fn list_voice_providers(&self) -> Result<VoiceProviderList>
pub async fn list_voice_providers(&self) -> Result<VoiceProviderList>
List available STT/TTS voice providers + models
GET /api/v1/providers/voice-providers
Sourcepub async fn llm_chat_completion(
&self,
body: &Map<String, Value>,
) -> Result<Map<String, Value>>
pub async fn llm_chat_completion( &self, body: &Map<String, Value>, ) -> Result<Map<String, Value>>
LLM proxy chat completion
POST /api/v1/llm/chat/completions
Required scopes: agents:read.
Sourcepub async fn llm_synthesize_speech(
&self,
body: &LLMSynthesizeSpeechRequest,
) -> Result<Bytes>
pub async fn llm_synthesize_speech( &self, body: &LLMSynthesizeSpeechRequest, ) -> Result<Bytes>
Text-to-speech via the LLM proxy
POST /api/v1/llm/audio/speech
Required scopes: agents:read.
Sourcepub async fn llm_transcribe_audio(
&self,
body: &LLMTranscribeAudioRequest,
) -> Result<Map<String, Value>>
pub async fn llm_transcribe_audio( &self, body: &LLMTranscribeAudioRequest, ) -> Result<Map<String, Value>>
Transcribe audio (Whisper) via the LLM proxy
POST /api/v1/llm/audio/transcriptions
Required scopes: agents:read.
Trait Implementations§
Source§impl Clone for ProvidersApi
impl Clone for ProvidersApi
Source§fn clone(&self) -> ProvidersApi
fn clone(&self) -> ProvidersApi
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more