Simplify agent prompt (#1009)

Remove the explicit Title: and Description: formatting from the prompts, as they can reduce agent performance in simple tasks, especially since there is no additional context/prompting.
This commit is contained in:
Solomon
2025-10-14 16:34:36 +01:00
committed by GitHub
parent 41eeba5918
commit 720a572c1f

View File

@@ -99,7 +99,7 @@ pub struct UpdateTask {
impl Task {
pub fn to_prompt(&self) -> String {
if let Some(description) = self.description.as_ref().filter(|d| !d.trim().is_empty()) {
format!("Title: {}\n\nDescription: {}", &self.title, description)
format!("{}\n\n{}", &self.title, description)
} else {
self.title.clone()
}