Skip to main content

dispatch_interaction_point

Function dispatch_interaction_point 

Source
pub fn dispatch_interaction_point(
    agents: Query<'_, '_, (Entity, &'static AgentState, &'static AgentBlueprint, &'static StageCursor, &'static InferenceResult, &'static mut ContextWindow, Option<&'static InteractionPointCursor>, Option<&'static InteractionPointRounds>, Option<&'static PlanBodyOverride>, Option<&'static InteractionAutoApprove>), With<ReadyForInteractionPoint>>,
    hub: Option<Res<'_, InteractionHub>>,
    stage: Option<Res<'_, InteractionPointStage>>,
    commands: Commands<'_, '_>,
)
Expand description

Dispatch: for each ReadyForInteractionPoint agent, spawn the ask task for its current point and move it to AwaitingInteractionPoint. No hub (test world) ⇒ no-op; a non-interactive stage ⇒ fall back to the transition.