feat: update README with enhanced descriptions and security features; refactor catastrophic guard checks and tool execution handling

This commit is contained in:
asepharyana
2026-07-12 03:37:27 +07:00
parent d957e8d4ce
commit 4bfbe1d1b9
7 changed files with 250 additions and 210 deletions
+7 -2
View File
@@ -110,10 +110,15 @@ impl StreamedTurn {
}
msg
};
let content = if self.accumulated_content.is_empty() {
let full_content = if self.accumulated_reasoning.is_empty() {
self.accumulated_content.clone()
} else {
format!("<think>\n{}\n</think>\n\n{}", self.accumulated_reasoning, self.accumulated_content)
};
let content = if full_content.is_empty() {
None
} else {
Some(self.accumulated_content.clone())
Some(full_content)
};
msg.content = content;
msg