adjust tool call error message
This commit is contained in:
@@ -158,7 +158,11 @@ fn mark_job_failed(message: &mut EditorAgentMessage, error: String) {
|
||||
.expect("reconcile candidate contains a tool call");
|
||||
tool_call.error = Some(error.clone());
|
||||
tool_call.status = EditorAgentToolCallStatus::Failed;
|
||||
message.text = format!("[tool_call:{}] output: {error}", tool_call.tool_name);
|
||||
let tool_name = tool_call.tool_name.clone();
|
||||
let args = tool_call.args.to_string();
|
||||
message.text = format!(
|
||||
"[tool_call:{tool_name}] args:{args} failed because: {error} if this is upstream/temp error, please retry it if user asked for",
|
||||
);
|
||||
}
|
||||
|
||||
fn mark_fatal_result_reconcile_failed(message: &mut EditorAgentMessage, error: String) {
|
||||
|
||||
Reference in New Issue
Block a user