ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
Loading...
Searching...
No Matches
foresthub::core::ExternalTool Class Referenceabstract

Tool with description and parameter schema, handled outside the LLM provider. More...

#include <tools.hpp>

Inheritance diagram for foresthub::core::ExternalTool:
foresthub::core::Tool foresthub::core::ExternalToolBase foresthub::agent::Handoff foresthub::core::FunctionTool

Public Member Functions

virtual std::string ToolDescription () const =0
 Human-readable description of this tool's purpose, sent to the LLM in the tool schema.
virtual const json & ToolParameters () const =0
 JSON schema defining the expected parameters for this tool.
bool IsExternal () const override
 Always returns true — this type is an ExternalTool.
Public Member Functions inherited from foresthub::core::Tool
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.

Detailed Description

Tool with description and parameter schema, handled outside the LLM provider.


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