Function get_api_key
Source pub fn get_api_key(key_name: &str) -> Result<Option<String>, CredentialError>
Expand description
Retrieves an API key from the OS-native credential store.
§Arguments
key_name - The name of the key (e.g., “nvidia_api_key”, “openai_api_key”)
§Returns
Ok(Some(String)) if the key was found
Ok(None) if the key was not found
Err(CredentialError) if retrieval failed