Skip to main content

dispatch_interaction_point

Function dispatch_interaction_point 

Source
pub fn dispatch_interaction_point(
    agents: Query<'_, '_, (Entity, &AgentState, &AgentBlueprint, &StageCursor, &InferenceResult, &mut ContextWindow, Option<&InteractionPointCursor>, Option<&InteractionPointRounds>, Option<&PlanBodyOverride>, Option<&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.