pub trait AgentControl {
// Required methods
fn set_style(&mut self, style: &str);
fn steer_add(&mut self, text: &str, turns: Option<u32>) -> String;
fn steer_remove(&mut self, id: &str) -> bool;
fn steer_list(&self) -> String;
fn steer_clear(&mut self);
fn undo_last_turn(&mut self) -> bool;
fn new_session(&mut self);
}Expand description
Trait abstracting the Agent mutations that ControlTool needs. Implemented by Agent in the binary crate to avoid circular deps.
Required Methods§
fn set_style(&mut self, style: &str)
fn steer_add(&mut self, text: &str, turns: Option<u32>) -> String
fn steer_remove(&mut self, id: &str) -> bool
fn steer_list(&self) -> String
fn steer_clear(&mut self)
fn undo_last_turn(&mut self) -> bool
fn new_session(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".