|
NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
|
#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. | |
| SessionState & | state () const noexcept |
| Returns the session-scoped state available to the tool. | |
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.