|
ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
|
Abstract base for items inside an InputItems list. More...
#include <input.hpp>
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. | |
Abstract base for items inside an InputItems list.
|
pure virtual |
Serialize this item to JSON.
| j | Output JSON object, populated by the method. |
Implemented in foresthub::core::InputString, foresthub::core::ToolCallRequest, and foresthub::core::ToolResult.