pub struct ServiceConfig {
pub ollama_base_url: Option<String>,
pub embedding_model: Option<String>,
pub language_model: Option<String>,
pub vector_dimension: Option<usize>,
pub entity_confidence_threshold: Option<f32>,
pub enable_parallel_processing: bool,
pub enable_function_calling: bool,
pub enable_monitoring: bool,
}Expand description
Configuration for service creation
Fields§
§ollama_base_url: Option<String>Base URL for Ollama API server
embedding_model: Option<String>Model name for text embeddings
language_model: Option<String>Model name for text generation
vector_dimension: Option<usize>Dimensionality of embedding vectors
entity_confidence_threshold: Option<f32>Minimum confidence threshold for entity extraction
enable_parallel_processing: boolEnable parallel processing for batch operations
enable_function_calling: boolEnable function calling capabilities
enable_monitoring: boolEnable monitoring and metrics collection
Implementations§
Source§impl ServiceConfig
impl ServiceConfig
Sourcepub fn build_registry(&self) -> RegistryBuilder
pub fn build_registry(&self) -> RegistryBuilder
Create a registry builder from this configuration
Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
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 ServiceConfig
impl Debug for ServiceConfig
Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnsafeUnpin for ServiceConfig
impl UnwindSafe for ServiceConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more