refactoring

different default system prompts for cli and audio
This commit is contained in:
2026-05-04 21:18:09 +02:00
parent 3d8975cfc1
commit 51b1123cf9
16 changed files with 80 additions and 45 deletions
+3 -1
View File
@@ -223,6 +223,8 @@ impl AgentChat {
// serialize structured content if it exists
if let Some(structured_content) = result.clone().and_then(|result|result.structured_content) {
log::debug!("structured content: {structured_content:#?}");
self.message_history.push(ChatMessage::tool(structured_content.to_string()));
} else {
let contents = match result {
@@ -234,7 +236,7 @@ impl AgentChat {
None => vec![String::from("Tool Permission Denied by the user")],
};
log::debug!("contents: {:#?}", contents);
log::debug!("contents: {contents:#?}");
self.message_history
.push(ChatMessage::tool(contents.join("\n")));