NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::acp::ACPClientRefusal Class Referencefinal

An ACPClientError whose code says the request cannot succeed (#500). More...

#include <server.h>

Inheritance diagram for neograph::acp::ACPClientRefusal:
[legend]
Collaboration diagram for neograph::acp::ACPClientRefusal:
[legend]

Public Member Functions

 ACPClientError (std::string method, const neograph::json &error)
 error is the response's error object.
 
bool retryable () const noexcept override
 Whether sending the same request again may succeed.
 
- Public Member Functions inherited from neograph::acp::ACPClientError
 ACPClientError (std::string method, const neograph::json &error)
 error is the response's error object.
 
int code () const noexcept
 The JSON-RPC error code; -32603 when the client sent none.
 
const neograph::json & data () const noexcept
 The error's data; null when it had none.
 
const std::string & message () const noexcept
 The client's error message; empty when it sent none.
 
const std::string & method () const noexcept
 The method the agent called, such as "fs/read_text_file".
 

Detailed Description

An ACPClientError whose code says the request cannot succeed (#500).

The codes are -32700 (parse error), -32600 (invalid request), -32601 (method not found), -32602 (invalid params, an invalid path among them), -32002 (resource not found) and -32000 (authentication required). Sending the same request again fails the same way, so this is a ToolRequestRefusal that is not retryable: the node retry loop does not try the node again, and protocol hosts report retryable: false. Any other code, -32603 among them, and a timeout stay ordinary failures, which are retried.

Definition at line 231 of file server.h.

Member Function Documentation

◆ retryable()

bool neograph::acp::ACPClientRefusal::retryable ( ) const
inlineoverridevirtualnoexcept

Whether sending the same request again may succeed.

A request refused for its content does not: the model has to change it.

Implements neograph::ToolRequestRefusal.

Definition at line 235 of file server.h.


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