Fix tools' ui_text to use inline code escaping (#27543)

Markdown escaping was added in #27502.

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-03-26 15:49:51 -06:00 committed by GitHub
parent 2b5095ac91
commit 44aff7cd46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 34 additions and 24 deletions

View file

@ -66,8 +66,8 @@ impl Tool for ReadFileTool {
fn ui_text(&self, input: &serde_json::Value) -> String {
match serde_json::from_value::<ReadFileToolInput>(input.clone()) {
Ok(input) => {
let path = MarkdownString::escape(&input.path.display().to_string());
format!("Read file `{path}`")
let path = MarkdownString::inline_code(&input.path.display().to_string());
format!("Read file {path}")
}
Err(_) => "Read file".to_string(),
}