pub enum PrintCommand {
AICall,
UnitTest,
Issue,
Success,
}
Expand description
Enum representing different print command types for agent messages and statuses.
Variants§
Implementations§
source§impl PrintCommand
impl PrintCommand
sourcepub fn print_agent_message(&self, agent_position: &str, agent_statement: &str)
pub fn print_agent_message(&self, agent_position: &str, agent_statement: &str)
Prints a message from an agent with different formatting based on the command type.
§Arguments
agent_position
- A string representing the agent’s position or role.agent_statement
- A string representing the message the agent wants to print.
§Behavior
The message will be printed to stdout with a specific color depending on the PrintCommand
variant:
AICall
prints in cyan.UnitTest
prints in magenta.Issue
prints in red.Success
prints in green.
The method also prints the agent’s position, followed by the agent’s message.
Trait Implementations§
source§impl Debug for PrintCommand
impl Debug for PrintCommand
source§impl PartialEq for PrintCommand
impl PartialEq for PrintCommand
impl StructuralPartialEq for PrintCommand
Auto Trait Implementations§
impl Freeze for PrintCommand
impl RefUnwindSafe for PrintCommand
impl Send for PrintCommand
impl Sync for PrintCommand
impl Unpin for PrintCommand
impl UnwindSafe for PrintCommand
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