Skip to main content

OutputRenderer

Trait OutputRenderer 

Source
pub trait OutputRenderer {
    // Required methods
    fn text_chunk(&mut self, text: &str);
    fn tool_status(&mut self, tool: &str);
    fn tool_result(&mut self, tool: &str, output: &str, is_read: bool);
    fn permission_denied(&mut self, tool: &str);
    fn error(&mut self, err: &str);
    fn session_info(&mut self, id: &str);
    fn done(&mut self);
}

Required Methods§

Source

fn text_chunk(&mut self, text: &str)

Source

fn tool_status(&mut self, tool: &str)

Source

fn tool_result(&mut self, tool: &str, output: &str, is_read: bool)

Called when a tool call completes. is_read is true for file-read tools.

Source

fn permission_denied(&mut self, tool: &str)

Source

fn error(&mut self, err: &str)

Source

fn session_info(&mut self, id: &str)

Source

fn done(&mut self)

Implementors§