NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::graph::FailureVerdict Struct Reference

The node failure classifier's verdict on any failure (see classify_failure). More...

#include <types.h>

Public Attributes

std::string code
 "NG.TaskFailed", "NG.HookBlocked", "NG.Cancelled", an author code, ...
 
std::string public_message
 Text from typed safe sources only (NodeFailureError::public_message).
 
bool retryable = false
 Sending the same request again may succeed: retryable_by_class, unless the node's retry loop already used up the node's attempts on it (NodeFailureKind::Exhausted).
 
bool retryable_by_class = false
 The failure's class and hints allow a retry, whether or not attempts were left: NodeFailure::retryable, and also NG.ProviderFailed, which the node retry loop leaves to the provider runtime.
 
std::exception_ptr signal
 For the run control classes, the signal itself as found in the cause chain: the HookBoundaryBlocked, the NodeInterrupt or the CancelledException (null for an aborted asio operation of a cancelled run).
 

Detailed Description

The node failure classifier's verdict on any failure (see classify_failure).

Definition at line 366 of file types.h.

Member Data Documentation

◆ retryable

bool neograph::graph::FailureVerdict::retryable = false

Sending the same request again may succeed: retryable_by_class, unless the node's retry loop already used up the node's attempts on it (NodeFailureKind::Exhausted).

A node the loop stopped retrying for the run's deadline or retry ceiling keeps it, as a new run has a new budget. Protocol hosts put it on the wire (#500).

Definition at line 377 of file types.h.

◆ retryable_by_class

bool neograph::graph::FailureVerdict::retryable_by_class = false

The failure's class and hints allow a retry, whether or not attempts were left: NodeFailure::retryable, and also NG.ProviderFailed, which the node retry loop leaves to the provider runtime.

Protocol hosts put it on the wire next to retryable, for callers that retry outside the engine.

Definition at line 383 of file types.h.

◆ signal

std::exception_ptr neograph::graph::FailureVerdict::signal

For the run control classes, the signal itself as found in the cause chain: the HookBoundaryBlocked, the NodeInterrupt or the CancelledException (null for an aborted asio operation of a cancelled run).

Null for every other class.

Definition at line 389 of file types.h.


The documentation for this struct was generated from the following file: