|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
Plans, journals, and executes mandatory hooks without owning lifecycle call sites. More...
#include <hook_outbox.h>
Public Member Functions | |
| bool | blocks (const RuntimeEvent &event) const |
Whether the registry plans a BlockingMandatory Hook for event. | |
| asio::awaitable< void > | run_async (const RuntimeEvent &event, std::chrono::system_clock::time_point deadline, std::uint32_t max_attempts=1) |
Runs every Hook the registry plans for event. | |
Plans, journals, and executes mandatory hooks without owning lifecycle call sites.
Definition at line 175 of file hook_outbox.h.
| asio::awaitable< void > neograph::MandatoryHookRunner::run_async | ( | const RuntimeEvent & | event, |
| std::chrono::system_clock::time_point | deadline, | ||
| std::uint32_t | max_attempts = 1 |
||
| ) |
Runs every Hook the registry plans for event.
A BlockingMandatory Hook that does not succeed throws HookBoundaryBlocked with the state it ended in: failed when its last attempt failed, timed_out only when the deadline elapsed (or its target timed out), cancelled, reconciliation_required. Cancellation raised by a target settles the attempt as cancelled and propagates.