Fix bad cd sometimes used by BashTool and set edit model temperature to 0 (#26656)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra
2025-03-13 10:47:00 +00:00
committed by GitHub
parent 70c973f6c3
commit 4ecd1b5174
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -11,6 +11,9 @@ use util::command::new_smol_command;
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
pub struct BashToolInput {
/// The bash command to execute as a one-liner.
///
/// WARNING: you must not `cd` into the working directory, as that's already
/// taken care of automatically. Doing so will cause the command to fail!
command: String,
/// Working directory for the command. This must be one of the root directories of the project.
working_directory: String,
@@ -151,7 +151,7 @@ impl EditFilesTool {
messages,
tools: vec![],
stop: vec![],
temperature: None,
temperature: Some(0.0),
};
let mut parser = EditActionParser::new();