Skip to main content

acp_cli/output/
mod.rs

1pub mod json;
2pub mod quiet;
3pub mod text;
4
5pub trait OutputRenderer {
6    fn text_chunk(&mut self, text: &str);
7    fn tool_status(&mut self, tool: &str);
8    /// Called when a tool call completes. `is_read` is true for file-read tools.
9    fn tool_result(&mut self, tool: &str, output: &str, is_read: bool);
10    fn permission_denied(&mut self, tool: &str);
11    fn error(&mut self, err: &str);
12    fn session_info(&mut self, id: &str);
13    fn done(&mut self);
14}