Parent
cgrpa/TheSexy6BotWorker#41
What to build
Add an explicit tool-execution stage inside the per-message machine. This slice should let the machine invoke function calling with a bounded continuation loop, so model/tool interactions can settle before later rendering or decision steps.
The tool-execution stage should mutate the mutable per-turn context, support the existing manual continuation behavior, and terminate cleanly on tool errors instead of leaving the turn in an ambiguous state.
Acceptance criteria
Blocked by
Parent
cgrpa/TheSexy6BotWorker#41
What to build
Add an explicit tool-execution stage inside the per-message machine. This slice should let the machine invoke function calling with a bounded continuation loop, so model/tool interactions can settle before later rendering or decision steps.
The tool-execution stage should mutate the mutable per-turn context, support the existing manual continuation behavior, and terminate cleanly on tool errors instead of leaving the turn in an ambiguous state.
Acceptance criteria
Blocked by