pub struct CustomAgentConfigurationSystem { /* private fields */ }Expand description
Main custom agent configuration system
Implementations§
Source§impl CustomAgentConfigurationSystem
impl CustomAgentConfigurationSystem
Sourcepub fn load_from_file(&mut self) -> Result<()>
pub fn load_from_file(&mut self) -> Result<()>
Load configuration from file
Sourcepub fn save_to_file(&self) -> Result<()>
pub fn save_to_file(&self) -> Result<()>
Save configuration to file
Sourcepub fn create_custom_agent(&self, personality_name: &str) -> Result<CustomAgent>
pub fn create_custom_agent(&self, personality_name: &str) -> Result<CustomAgent>
Create a custom agent with the specified personality
Sourcepub fn add_personality(&mut self, name: String, personality: AgentPersonality)
pub fn add_personality(&mut self, name: String, personality: AgentPersonality)
Add a new custom personality
Sourcepub fn record_user_interaction(
&mut self,
suggestion_type: String,
context: String,
confidence: f64,
action: UserAction,
project_context: String,
)
pub fn record_user_interaction( &mut self, suggestion_type: String, context: String, confidence: f64, action: UserAction, project_context: String, )
Update preference learning based on user interaction
Sourcepub fn get_personalities(&self) -> &HashMap<String, AgentPersonality>
pub fn get_personalities(&self) -> &HashMap<String, AgentPersonality>
Get available personalities
Sourcepub fn set_active_configuration(&mut self, personality_name: String)
pub fn set_active_configuration(&mut self, personality_name: String)
Set active configuration
Sourcepub fn get_active_configuration(&self) -> Option<&String>
pub fn get_active_configuration(&self) -> Option<&String>
Get active configuration
Auto Trait Implementations§
impl Freeze for CustomAgentConfigurationSystem
impl RefUnwindSafe for CustomAgentConfigurationSystem
impl Send for CustomAgentConfigurationSystem
impl Sync for CustomAgentConfigurationSystem
impl Unpin for CustomAgentConfigurationSystem
impl UnsafeUnpin for CustomAgentConfigurationSystem
impl UnwindSafe for CustomAgentConfigurationSystem
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