NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
Loading...
Searching...
No Matches
neuralplus::ToolContext Class Referencefinal

#include <tool.hpp>

Public Member Functions

 ToolContext (std::string session_id, std::string run_id, std::string call_id, SessionState &state)
 Creates the context for one correlated tool invocation.
 
const std::string & session_id () const noexcept
 Returns the session identifier associated with this invocation.
 
const std::string & run_id () const noexcept
 Returns the generation identifier associated with this invocation.
 
const std::string & call_id () const noexcept
 Returns the provider tool-call identifier.
 
SessionStatestate () const noexcept
 Returns the session-scoped state available to the tool.
 

Detailed Description

Context available to one tool invocation.

The context is valid only for the duration of Tool::invoke and must not be retained by a tool.

Examples
simple_session.cpp.

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