Run the conversation fixer over messages for recipe create (#4605)

This commit is contained in:
Jack Amadeo
2025-09-11 09:13:49 -04:00
committed by GitHub
parent b66d789696
commit c8020268f6
+8
View File
@@ -1489,6 +1489,14 @@ impl Agent {
tracing::debug!("Retrieved {} tools for recipe creation", tools.len());
messages.push(Message::user().with_text(recipe_prompt));
let (messages, issues) = fix_conversation(messages);
if !issues.is_empty() {
issues
.iter()
.for_each(|issue| tracing::warn!(recipe.conversation.issue = issue));
}
tracing::debug!(
"Added recipe prompt to messages, total messages: {}",
messages.len()