forked from kent/consciousness
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> |
||
|---|---|---|
| .. | ||
| mod.rs | ||
| openai.rs | ||
| parsing.rs | ||
| types.rs | ||