refactoring
different default system prompts for cli and audio
This commit is contained in:
@@ -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")));
|
||||
|
||||
Reference in New Issue
Block a user