|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
Per-run metadata exposed to graph nodes. More...
#include <neograph/graph/cancel.h>#include <neograph/graph/store.h>#include <neograph/graph/types.h>#include <neograph/graph/provider_call_broker.h>#include <neograph/tool_dispatch.h>#include <neograph/types.h>#include <asio/any_io_executor.hpp>#include <atomic>#include <chrono>#include <cstdint>#include <memory>#include <optional>#include <string>Go to the source code of this file.
Classes | |
| struct | neograph::graph::ProviderLoopHistory |
| Engine-owned inner-loop continuations, keyed by the compiled task slot. More... | |
| struct | neograph::graph::RunContext |
| Per-run dispatch metadata threaded through the engine and executor. More... | |
Functions | |
| NEOGRAPH_API ToolExecutionContext | neograph::graph::make_tool_execution_context (const RunContext &ctx) |
| Populate the mediated Tool execution context for a node invocation: the run's (or attempt's) cancel token and deadline, the execution controller and identity, the effect broker and stable task slot, and the run's lifecycle HookRuntime, whose tool Hooks every call then crosses. | |
| asio::awaitable< sp::runtime::Result > | neograph::graph::observe_provider_result (const RunContext &ctx, asio::awaitable< sp::runtime::Result > operation) |
| Owned failures must not erase the real outcome or its nullable usage. | |
| void | neograph::graph::record_usage (const RunContext &ctx, const sp::runtime::Result &result) |
| Fold exactly the actual nullable report, never a reservation or charge. | |
Per-run metadata exposed to graph nodes.
Definition in file run_context.h.
| NEOGRAPH_API ToolExecutionContext neograph::graph::make_tool_execution_context | ( | const RunContext & | ctx | ) |
Populate the mediated Tool execution context for a node invocation: the run's (or attempt's) cancel token and deadline, the execution controller and identity, the effect broker and stable task slot, and the run's lifecycle HookRuntime, whose tool Hooks every call then crosses.
Host-registered nodes that call dispatch_tool_calls must use this helper so their calls follow the same contract as tool_dispatch. Direct Tool::execute remains outside this boundary.
References neograph::graph::make_tool_execution_context().
Referenced by neograph::graph::make_tool_execution_context().