pub struct LLMCredentialsApi { /* private fields */ }Expand description
LLM provider API key management
Implementations§
Source§impl LLMCredentialsApi
impl LLMCredentialsApi
Sourcepub async fn delete_llm_provider_key(
&self,
provider: &SetLLMProviderKeyProvider,
) -> Result<DeleteLLMProviderKeyResponse>
pub async fn delete_llm_provider_key( &self, provider: &SetLLMProviderKeyProvider, ) -> Result<DeleteLLMProviderKeyResponse>
Remove stored API key for an LLM provider
DELETE /api/v1/llm-credentials/{provider}
Required scopes: agents:write.
Sourcepub async fn list_llm_credentials_providers(
&self,
) -> Result<ListLLMCredentialsProvidersResponse>
pub async fn list_llm_credentials_providers( &self, ) -> Result<ListLLMCredentialsProvidersResponse>
List LLM providers with configured status for current user
GET /api/v1/llm-credentials/providers
Required scopes: agents:read.
Sourcepub async fn set_llm_provider_key(
&self,
provider: &SetLLMProviderKeyProvider,
body: &SetLLMProviderKeyRequest,
) -> Result<SetLLMProviderKeyResponse>
pub async fn set_llm_provider_key( &self, provider: &SetLLMProviderKeyProvider, body: &SetLLMProviderKeyRequest, ) -> Result<SetLLMProviderKeyResponse>
Set or update API key for an LLM provider
PUT /api/v1/llm-credentials/{provider}
Required scopes: agents:write.
Sourcepub async fn test_llm_provider_key(
&self,
provider: &SetLLMProviderKeyProvider,
) -> Result<TestLLMProviderKeyResponse>
pub async fn test_llm_provider_key( &self, provider: &SetLLMProviderKeyProvider, ) -> Result<TestLLMProviderKeyResponse>
Test configured API key for an LLM provider
POST /api/v1/llm-credentials/{provider}/test
Required scopes: agents:write.
Trait Implementations§
Source§impl Clone for LLMCredentialsApi
impl Clone for LLMCredentialsApi
Source§fn clone(&self) -> LLMCredentialsApi
fn clone(&self) -> LLMCredentialsApi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LLMCredentialsApi
impl !UnwindSafe for LLMCredentialsApi
impl Freeze for LLMCredentialsApi
impl Send for LLMCredentialsApi
impl Sync for LLMCredentialsApi
impl Unpin for LLMCredentialsApi
impl UnsafeUnpin for LLMCredentialsApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more