NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
tool.h File Reference

Abstract tool interface for callable functions. More...

#include <neograph/api.h>
#include <neograph/tool_execution.h>
#include <neograph/types.h>
#include <asio/awaitable.hpp>
#include <chrono>
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for tool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  neograph::AsyncTool
 Adapter base class for tools whose work is naturally coroutine-shaped (HTTP fetch, MCP RPC, async DB query). More...
 
class  neograph::ContextualAsyncTool
 Optional async Tool extension that receives per-invocation context. More...
 
class  neograph::ProcessTool
 Optional extension for tools implemented by a real subprocess. More...
 
class  neograph::Tool
 Abstract base class for tools that agents can call. More...
 
struct  neograph::ToolExecutionContext
 Per-invocation context for a cooperative asynchronous tool. More...
 
struct  neograph::ToolProcessSpec
 Description of a subprocess invocation owned by a ProcessTool. More...
 

Detailed Description

Abstract tool interface for callable functions.

Defines the Tool base class. Implement this to create tools that LLM agents can discover and invoke during the ReAct loop.

Definition in file tool.h.