pub trait ChatAgent: Agent {
// Required methods
fn config(&self) -> &ChatConfig;
fn config_mut(&mut self) -> &mut ChatConfig;
}Expand description
Agent behavior expected by the chat session.
Required Methods§
Sourcefn config(&self) -> &ChatConfig
fn config(&self) -> &ChatConfig
Returns the active chat configuration.
Sourcefn config_mut(&mut self) -> &mut ChatConfig
fn config_mut(&mut self) -> &mut ChatConfig
Returns the active chat configuration for mutation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.