langgoap.run_guards_sync

langgoap.run_guards_sync#

run_guards_sync(guards, action, world_state)[source]#

Run all synchronous guards and return all GuardResult objects.

Async-only guards are skipped with a warning. Per-guard exceptions are caught and converted into a WARN result so a bad guard never crashes the executor.

Parameters:
Returns:

GuardResult for every guard that ran.

Return type:

list[GuardResult]