langgoap.run_guards_async#
- async run_guards_async(guards, action, world_state)[source]#
Run all guards concurrently via
asyncio.gather().Sync guards are dispatched to a thread executor; async guards are awaited directly. Per-guard exceptions are caught and converted into
WARNresults.- Parameters:
guards (list[ActionGuard | AsyncActionGuard]) – Guards to run.
action (ActionSpec) – The action about to execute.
world_state (dict[str, Any]) – Current world state snapshot.
- Returns:
GuardResultfor every guard.- Return type:
list[GuardResult]