|
NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
|
#include <tool.hpp>
Public Member Functions | |
| virtual const ToolSpec & | spec () const noexcept=0 |
| Returns the immutable declaration advertised to providers. | |
| virtual ToolOutput | invoke (ToolContext &context, const JsonValue &arguments)=0 |
| Executes the tool with validated JSON arguments. | |
Friends | |
| class | AIClient |
Type-safe extension point for application tools.
AIClient serializes invocations of the same Tool object, including when that shared instance is installed in more than one client. Different Tool objects may still execute concurrently.
|
pure virtual |
Executes the tool with validated JSON arguments.
Implemented in neuralplus::FunctionTool.
|
pure virtualnoexcept |
Returns the immutable declaration advertised to providers.
Implemented in neuralplus::FunctionTool.