agent: Add small design tweaks (#29218)

Nothing too serious over here, just spacing and other small-ish tweaks.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-04-22 12:17:34 -03:00 committed by GitHub
parent 207fb04969
commit 886f0b7214
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 34 additions and 35 deletions

View file

@ -61,7 +61,7 @@ struct PartialInput {
pub struct EditFileTool;
const DEFAULT_UI_TEXT: &str = "Edit file";
const DEFAULT_UI_TEXT: &str = "Editing file";
impl Tool for EditFileTool {
fn name(&self) -> String {
@ -87,7 +87,7 @@ impl Tool for EditFileTool {
fn ui_text(&self, input: &serde_json::Value) -> String {
match serde_json::from_value::<EditFileToolInput>(input.clone()) {
Ok(input) => input.display_description,
Err(_) => "Edit file".to_string(),
Err(_) => "Editing file".to_string(),
}
}