core: generalize interrupted tool-result handling

This commit is contained in:
Charles Cunningham
2026-02-19 20:36:25 -08:00
parent a5bcf4a7b8
commit 2c1effe2c0
9 changed files with 120 additions and 65 deletions

View File

@@ -74,6 +74,12 @@ pub enum ToolOutput {
},
}
#[derive(Clone, Debug)]
pub struct ToolDispatchOutput {
pub response_input: ResponseInputItem,
pub interrupt_turn: bool,
}
impl ToolOutput {
pub fn log_preview(&self) -> String {
match self {