Remove extra code fence lines from tool output in eval example files

Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Michael Sloan <mgsloan@gmail.com>
This commit is contained in:
Max Brunsfeld
2025-04-18 18:08:53 -07:00
parent 128b2d4bff
commit bc7723b5fe

View File

@@ -918,13 +918,13 @@ impl RequestMarkdown {
}
MessageContent::ToolResult(tool_result) => {
messages.push_str(&format!(
"**Tool Result**: {} (ID: {})\n",
"**Tool Result**: {} (ID: {})\n\n",
tool_result.tool_name, tool_result.tool_use_id
));
if tool_result.is_error {
messages.push_str("**ERROR:**\n");
}
messages.push_str(&format!("```\n{}\n```\n\n", tool_result.content));
messages.push_str(&format!("{}\n", tool_result.content));
}
}
}