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

A run control signal a remote peer reported for one call. More...

#include <types.h>

Inheritance diagram for neograph::graph::RemoteControlFailure:
[legend]
Collaboration diagram for neograph::graph::RemoteControlFailure:
[legend]

Public Member Functions

 RemoteControlFailure (const std::string &code, const std::string &public_message)
 code is "NG.HookBlocked" or "NG.Interrupted"; anything else throws std::invalid_argument.
 
- Public Member Functions inherited from neograph::graph::NodeFailureError
const std::string & code () const noexcept
 The author code; empty when the failure carries none (NG.TaskFailed).
 

Additional Inherited Members

- Protected Member Functions inherited from neograph::graph::NodeFailureError
 NodeFailureError (std::string what, std::string code, std::string public_message, std::optional< bool > retryable)
 For bindings that translate a foreign error: what() keeps that error's text.
 

Detailed Description

A run control signal a remote peer reported for one call.

NeoGraph's protocol clients raise it when the server's Hook blocked the call (MCP JSON-RPC error -32010, a gRPC status whose ErrorInfo code is NG.HookBlocked) or the server's run paused for input (-32011, NG.Interrupted). The signal belongs to the remote run, not to this one: it is an ordinary failure that carries the remote code, so it does not stop or pause the local run, and it is not retried. The public message is the remote's public message. Carrying a remote interrupt into the local run as a native pause is a later phase.

Definition at line 511 of file types.h.


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