langgoap.AsyncStuckHandler

langgoap.AsyncStuckHandler#

class AsyncStuckHandler(*args, **kwargs)[source]#

Coroutine-based twin of StuckHandler (issue #53).

Implement ahandle_stuck when recovery needs to await something (an LLM, a store, a network call). Under GoapGraph.ainvoke the planner awaits it; under the synchronous invoke an async-only handler cannot run and is skipped with a warning.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

ahandle_stuck(state, reason)

Try to recover from a stuck situation, awaiting as needed.

Attributes

name

Stable identifier for this handler.