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

Dependency injection context passed to nodes during construction. More...

#include <types.h>

Collaboration diagram for neograph::graph::NodeContext:
[legend]

Public Attributes

json extra_config
 Additional configuration (node-type specific).
 
std::string instructions
 System prompt / instructions for the LLM.
 
std::string model
 Model name override (empty = use provider default).
 
std::shared_ptr< Provider > provider
 LLM provider for making completions.
 
ProviderControls provider_controls
 Explicit typed admission controls, including finite output cap.
 
std::string provider_name
 Identity metadata for an admitted Provider requirement.
 
std::shared_ptr< const GraphRegistry > registry
 Construction-only registry snapshot inherited by built-in subgraphs.
 
std::vector< ChatTool > tool_definitions
 Non-executable metadata for an admitted node's exact Tool requirements.
 
ToolSet tools
 Owned tool collection, shared cheaply across copies of this context, the compiled graph, and the linked engine.
 

Detailed Description

Dependency injection context passed to nodes during construction.

Provides the LLM provider, available tools, model name, and any extra configuration a node might need.

Definition at line 753 of file types.h.

Member Data Documentation

◆ provider_name

std::string neograph::graph::NodeContext::provider_name

Identity metadata for an admitted Provider requirement.

Brokered Program factories receive this without the executable Provider pointer.

Definition at line 768 of file types.h.

◆ tool_definitions

std::vector<ChatTool> neograph::graph::NodeContext::tool_definitions

Non-executable metadata for an admitted node's exact Tool requirements.

Program brokered factories receive this without raw Tool pointers.

Definition at line 765 of file types.h.

◆ tools

ToolSet neograph::graph::NodeContext::tools

Owned tool collection, shared cheaply across copies of this context, the compiled graph, and the linked engine.

Assignment replaces the context's selection without invalidating earlier compiled engines. Factories may use tools.view() for temporary raw-pointer lookup.

Definition at line 759 of file types.h.


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