Append `s` to `out` if it is non-empty and not already present (trimmed, deduped).
(out: &mut Vec<String>, s: String)
| 1001 | |
| 1002 | /// Append `s` to `out` if it is non-empty and not already present (trimmed, deduped). |
| 1003 | fn push_candidate(out: &mut Vec<String>, s: String) { |
| 1004 | let trimmed = s.trim(); |
| 1005 | if !trimmed.is_empty() && !out.iter().any(|c| c == trimmed) { |
| 1006 | out.push(trimmed.to_string()); |
| 1007 | } |
| 1008 | } |
| 1009 | |
| 1010 | /// Ordered raw strings to mine for the structured object, most authoritative first: |
| 1011 | /// tool-call arguments, then text content, then the reasoning channel. |
no test coverage detected