langgoap.MulticastStuckHandler

langgoap.MulticastStuckHandler#

class MulticastStuckHandler(handlers, name='multicast')[source]#

Composite handler that consults each child in order.

Returns the first REPLAN result. If every child returns NO_RESOLUTION (or raises — exceptions are caught), returns an aggregated NO_RESOLUTION whose message lists every handler tried.

Mirrors https://github.com/embabel/embabel-agent/blob/HEAD/embabel-agent-api/src/main/kotlin/ com/embabel/agent/api/common/MulticastStuckHandler.kt.

Parameters:
__init__(handlers, name='multicast')#
Parameters:
Return type:

None

Methods

__init__(handlers[, name])

ahandle_stuck(state, reason)

Async twin of handle_stuck(): awaits coroutine handlers and calls synchronous ones inline, first REPLAN wins.

handle_stuck(state, reason)

Attributes

has_async_handlers

True when at least one child can only run as a coroutine.

name

handlers