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

A string that acts as both top-level Input and InputItem. More...

#include <input.hpp>

Inheritance diagram for foresthub::core::InputString:
foresthub::core::Input foresthub::core::InputItem

Public Member Functions

 InputString (std::string text)
 Construct from a text string.
std::string ToString () const override
 Returns the stored text directly.
InputItemType GetItemType () const override
 Identifies this item as a plain text string.
InputType GetInputType () const override
 Identifies this input as a string.
void ToJson (json &j) const override
 Serialize as JSON object with "value" key.

Public Attributes

std::string text
 The raw text content.

Detailed Description

A string that acts as both top-level Input and InputItem.


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