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

Base implementation of ExternalTool with name, description, and parameters. More...

#include <tools.hpp>

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

Public Member Functions

std::string ToolName () const override
 Returns the stored name field.
std::string ToolDescription () const override
 Returns the stored description field.
const json & ToolParameters () const override
 Returns the stored parameters field.
void ToJson (json &j) const override
 Serialize external tool definition to JSON.
Public Member Functions inherited from foresthub::core::ExternalTool
bool IsExternal () const override
 Always returns true — this type is an ExternalTool.
Public Member Functions inherited from foresthub::core::Tool
virtual ToolType GetToolType () const =0
 Returns the type discriminator for safe downcasting via static_pointer_cast.

Public Attributes

std::string name
 Tool name sent to the LLM.
std::string description
 Human-readable description sent to the LLM.
json parameters
 JSON schema defining expected parameters.

Detailed Description

Base implementation of ExternalTool with name, description, and parameters.


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