pub trait IntelligenceFactory {
type Intelligence: FunctionIntelligence;
// Required methods
fn create_default() -> Self::Intelligence;
fn create_with_config(config: &IntelligenceConfig) -> Self::Intelligence;
fn default_config() -> IntelligenceConfig;
}Expand description
Factory trait for creating function intelligence modules
Provides a standardized way to create and configure function intelligence modules with different parameters and options.
Required Associated Types§
Sourcetype Intelligence: FunctionIntelligence
type Intelligence: FunctionIntelligence
The type of intelligence this factory creates
Required Methods§
Sourcefn create_default() -> Self::Intelligence
fn create_default() -> Self::Intelligence
Create a new intelligence instance with default configuration
Sourcefn create_with_config(config: &IntelligenceConfig) -> Self::Intelligence
fn create_with_config(config: &IntelligenceConfig) -> Self::Intelligence
Create a new intelligence instance with custom configuration
Sourcefn default_config() -> IntelligenceConfig
fn default_config() -> IntelligenceConfig
Get the default configuration for this intelligence type
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".