ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
Loading...
Searching...
No Matches
input.hpp File Reference

Polymorphic input types for chat requests. More...

#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "foresthub/util/json.hpp"

Go to the source code of this file.

Classes

class  foresthub::core::Input
 Abstract base for all input types. More...
class  foresthub::core::InputItem
 Abstract base for items inside an InputItems list. More...
class  foresthub::core::InputString
 A string that acts as both top-level Input and InputItem. More...
class  foresthub::core::InputItems
 An ordered list of InputItem elements. More...

Namespaces

namespace  foresthub
 Top-level namespace for the ForestHub SDK.
namespace  foresthub::core
 Core abstractions: requests, responses, tools, input types, and provider interface.

Enumerations

enum class  foresthub::core::InputType : uint8_t { foresthub::core::kString , foresthub::core::kItems }
 Type discriminator for Input subclasses. More...
enum class  foresthub::core::InputItemType : uint8_t { foresthub::core::kString , foresthub::core::kToolCall , foresthub::core::kToolResult }
 Type discriminator for InputItem subclasses. More...

Functions

std::shared_ptr< InputItemsforesthub::core::AsInputItems (const std::shared_ptr< Input > &input)
 Normalize input to InputItems.

Detailed Description

Polymorphic input types for chat requests.