pub struct LLMServiceConfig {
pub url: String,
pub model: String,
pub embedding_url: Option<String>,
pub embedding_model: String,
pub embedding_dimensions: Option<usize>,
pub api_key: Option<String>,
pub timeout_secs: u64,
}Expand description
LLM service configuration for external inference
Fields§
§url: StringBase URL of the LLM service for chat/completions
model: StringModel name for chat completions (query parsing, metadata generation)
embedding_url: Option<String>Base URL for embeddings service (can be different from LLM URL)
embedding_model: StringModel name for embeddings
embedding_dimensions: Option<usize>Embedding dimensions (will be auto-detected if not specified)
api_key: Option<String>API key (optional, for authenticated services)
timeout_secs: u64Request timeout in seconds
Implementations§
Source§impl LLMServiceConfig
impl LLMServiceConfig
Sourcepub fn embeddings_url(&self) -> &str
pub fn embeddings_url(&self) -> &str
Get the embeddings URL (falls back to main URL if not specified)
Trait Implementations§
Source§impl Clone for LLMServiceConfig
impl Clone for LLMServiceConfig
Source§fn clone(&self) -> LLMServiceConfig
fn clone(&self) -> LLMServiceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LLMServiceConfig
impl Debug for LLMServiceConfig
Source§impl Default for LLMServiceConfig
impl Default for LLMServiceConfig
Source§impl<'de> Deserialize<'de> for LLMServiceConfig
impl<'de> Deserialize<'de> for LLMServiceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LLMServiceConfig
impl RefUnwindSafe for LLMServiceConfig
impl Send for LLMServiceConfig
impl Sync for LLMServiceConfig
impl Unpin for LLMServiceConfig
impl UnwindSafe for LLMServiceConfig
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