|
NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
|
Callback-backed Tool for applications that do not need a subclass. More...
#include <tool.hpp>
Public Types | |
| using | Function = std::function< ToolOutput(ToolContext &, const JsonValue &)> |
| Callback signature for one tool invocation. | |
Public Member Functions | |
| FunctionTool (ToolSpec spec, Function function) | |
| Creates a tool from its declaration and callback. | |
| const ToolSpec & | spec () const noexcept override |
| Returns the immutable declaration supplied at construction. | |
| ToolOutput | invoke (ToolContext &context, const JsonValue &arguments) override |
| Delegates one invocation to the configured callback. | |
Callback-backed Tool for applications that do not need a subclass.
|
overridevirtual |
Delegates one invocation to the configured callback.
Implements neuralplus::Tool.
|
overridevirtualnoexcept |
Returns the immutable declaration supplied at construction.
Implements neuralplus::Tool.