|
ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
|
Base interface for all tools. More...
#include <tools.hpp>
Public Member Functions | |
| virtual std::string | ToolName () const =0 |
| Returns the unique name identifying this tool in the LLM schema. | |
| virtual ToolType | GetToolType () const =0 |
| Returns the type discriminator for safe downcasting via static_pointer_cast. | |
| virtual void | ToJson (json &j) const =0 |
| Serialize this tool to JSON. | |
| virtual bool | IsExternal () const |
| Check if this tool is an ExternalTool (enables static_pointer_cast<ExternalTool>). | |
Base interface for all tools.
|
inlinevirtual |
Check if this tool is an ExternalTool (enables static_pointer_cast<ExternalTool>).
Reimplemented in foresthub::core::ExternalTool.
|
pure virtual |
Serialize this tool to JSON.
| j | Output JSON object, populated by the method. |
Implemented in foresthub::core::ExternalToolBase, and foresthub::core::WebSearch.