split out src/mind
This commit is contained in:
parent
ce04568454
commit
79e384f005
21 changed files with 1865 additions and 2175 deletions
|
|
@ -473,9 +473,9 @@ pub fn build_response_message(
|
|||
}
|
||||
|
||||
// Check for leaked tool calls in content text.
|
||||
let leaked = crate::user::parsing::parse_leaked_tool_calls(&content);
|
||||
let leaked = crate::agent::parsing::parse_leaked_tool_calls(&content);
|
||||
if !leaked.is_empty() {
|
||||
let cleaned = crate::user::parsing::strip_leaked_artifacts(&content);
|
||||
let cleaned = crate::agent::parsing::strip_leaked_artifacts(&content);
|
||||
return Message {
|
||||
role: Role::Assistant,
|
||||
content: if cleaned.trim().is_empty() { None }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue