Skip to main content

IntelligenceFactory

Trait IntelligenceFactory 

Source
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§

Source

type Intelligence: FunctionIntelligence

The type of intelligence this factory creates

Required Methods§

Source

fn create_default() -> Self::Intelligence

Create a new intelligence instance with default configuration

Source

fn create_with_config(config: &IntelligenceConfig) -> Self::Intelligence

Create a new intelligence instance with custom configuration

Source

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".

Implementors§