Checkpoint
This commit is contained in:
parent
3a0e55d9b6
commit
199256e43e
1 changed files with 4 additions and 3 deletions
|
@ -607,10 +607,10 @@ impl Thread {
|
||||||
let kind = tool.kind();
|
let kind = tool.kind();
|
||||||
stream.send_tool_call(&tool_use.id, title, kind, tool_use.input.clone());
|
stream.send_tool_call(&tool_use.id, title, kind, tool_use.input.clone());
|
||||||
|
|
||||||
if let Some(output) = tool_result
|
let output = tool_result
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|result| result.output.clone())
|
.and_then(|result| result.output.clone());
|
||||||
{
|
if let Some(output) = output.clone() {
|
||||||
let tool_event_stream = ToolCallEventStream::new(
|
let tool_event_stream = ToolCallEventStream::new(
|
||||||
tool_use.id.clone(),
|
tool_use.id.clone(),
|
||||||
stream.clone(),
|
stream.clone(),
|
||||||
|
@ -624,6 +624,7 @@ impl Thread {
|
||||||
&tool_use.id,
|
&tool_use.id,
|
||||||
acp::ToolCallUpdateFields {
|
acp::ToolCallUpdateFields {
|
||||||
status: Some(acp::ToolCallStatus::Completed),
|
status: Some(acp::ToolCallStatus::Completed),
|
||||||
|
raw_output: output,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue