|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
The classified outcome of a failed node. More...
#include <types.h>
Public Attributes | |
| int | attempts = 0 |
| Attempts made, counting attempts made before a crash-resume. | |
| std::string | code |
| "NG.TaskFailed", "NG.SubgraphFailed", an author code, ... | |
| std::vector< NodeFailureEffect > | effects |
| Effects of the final attempt through the run's ToolEffectBroker, in the order they settled; empty without a broker. | |
| std::string | node |
| The node whose retry loop gave up. | |
| bool | retryable = false |
| The failure itself was retryable (its class and the author's hint), whether or not attempts were left. | |
The classified outcome of a failed node.
The executor attaches one to the NodeExecutionError it throws when it gives up on a node; read it with node_failure_of(). It holds structured fields only: public_message comes from typed safe sources (NodeFailureError, a Python exception's public_message attribute), never from what().
| std::vector<NodeFailureEffect> neograph::graph::NodeFailure::effects |
Effects of the final attempt through the run's ToolEffectBroker, in the order they settled; empty without a broker.
An earlier attempt cannot have committed a non-idempotent effect: it would not have been retried.