Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/chat-cli/src/cli/chat/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ impl From<InvokeOutput> for ToolUseResultBlock {
OutputKind::Text(text) => Self::Text(text),
OutputKind::Json(value) => Self::Json(value),
OutputKind::Images(_) => Self::Text("See images data supplied".to_string()),
OutputKind::Mixed { text, .. } => ToolUseResultBlock::Text(text),
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions crates/chat-cli/src/cli/chat/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ const TRUST_ALL_TEXT: &str = color_print::cstr! {"<green!>All tools are now trus
const TOOL_BULLET: &str = " ● ";
const CONTINUATION_LINE: &str = " ⋮ ";
const PURPOSE_ARROW: &str = " ↳ ";
const SUCCESS_TICK: &str = " ✓ ";
const ERROR_EXCLAMATION: &str = " ❗ ";

/// Enum used to denote the origin of a tool use event
enum ToolUseStatus {
Expand Down Expand Up @@ -1521,6 +1523,10 @@ impl ChatSession {
OutputKind::Images(ref image) => {
image_blocks.extend(image.clone());
},
OutputKind::Mixed { ref text, ref images } => {
debug!("Output is Mixed: text = {:?}, images = {}", text, images.len());
image_blocks.extend(images.clone());
},
}

debug!("tool result output: {:#?}", result);
Expand Down
Loading
Loading