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

Abstract base for items inside an InputItems list. More...

#include <input.hpp>

Inheritance diagram for foresthub::core::InputItem:
foresthub::core::InputString foresthub::core::ToolCallRequest foresthub::core::ToolResult

Public Member Functions

virtual InputItemType GetItemType () const =0
 Returns the type discriminator for safe downcasting via static_pointer_cast.
virtual std::string ToString () const =0
 Human-readable text representation of this item.
virtual void ToJson (json &j) const =0
 Serialize this item to JSON.

Detailed Description

Abstract base for items inside an InputItems list.

Member Function Documentation

◆ ToJson()

virtual void foresthub::core::InputItem::ToJson ( json & j) const
pure virtual

Serialize this item to JSON.

Parameters
jOutput JSON object, populated by the method.

Implemented in foresthub::core::InputString, foresthub::core::ToolCallRequest, and foresthub::core::ToolResult.


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