Add parser debug logging (POC_DEBUG=1)

Logs full text length, <tool_call> tag count, and tool call details
on stream completion. Helps diagnose parsing issues with subconscious
agents.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-08 17:38:02 -04:00
parent 119dc8c146
commit 473909db47
2 changed files with 25 additions and 2 deletions

View file

@ -112,7 +112,6 @@ impl AutoAgent {
}
}
/// Run standalone — TODO: needs rewrite to use completions API
pub async fn run(
&mut self,
_bail_fn: Option<&(dyn Fn(usize) -> Result<(), String> + Sync)>,