Skip to main content

AgentControl

Trait AgentControl 

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

Source

fn set_style(&mut self, style: &str)

Source

fn steer_add(&mut self, text: &str, turns: Option<u32>) -> String

Source

fn steer_remove(&mut self, id: &str) -> bool

Source

fn steer_list(&self) -> String

Source

fn steer_clear(&mut self)

Source

fn undo_last_turn(&mut self) -> bool

Source

fn new_session(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§