consciousness/src/agent/api
ProofOfConcept a14e85afe1 api: extract collect_stream() from agent turn loop
Move the entire stream event processing loop (content accumulation,
leaked tool call detection/dispatch, ToolCallDelta assembly, UI
forwarding, display buffering) into api::collect_stream(). The turn
loop now calls collect_stream() and processes the StreamResult.

Also move FunctionCall, ToolCall, ToolCallDelta to api/types.rs where
they belong (API wire format, not tool definitions). Move parsing.rs
to api/parsing.rs.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2026-04-04 18:19:21 -04:00
..
mod.rs api: extract collect_stream() from agent turn loop 2026-04-04 18:19:21 -04:00
openai.rs tools: delete ToolDef and FunctionDef 2026-04-04 18:19:21 -04:00
parsing.rs api: move wire types and parsing to api module 2026-04-04 18:19:21 -04:00
types.rs api: move wire types and parsing to api module 2026-04-04 18:19:21 -04:00