Skip to main content

ChatAgent

Trait ChatAgent 

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

Source

fn config(&self) -> &ChatConfig

Returns the active chat configuration.

Source

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.

Implementors§