pub fn process_response(
agents: Query<'_, '_, (Entity, &'static InferenceResult, &'static mut StageProgress, Option<&'static mut TokenTotals>), With<ProcessResponse>>,
commands: Commands<'_, '_>,
)Expand description
Process-response system: route each ProcessResponse agent by whether its
last inference asked for tools. Tool calls present ⇒ ReadyForTools (and the
stage’s running tool-call count is bumped); none ⇒ ReadyForTransition. Pure
routing - no I/O.