5#ifndef FORESTHUB_CORE_SERIALIZATION_HPP
6#define FORESTHUB_CORE_SERIALIZATION_HPP
22using json = nlohmann::json;
39void to_json(json& j,
const std::shared_ptr<InputItem>& item);
41void to_json(json& j,
const std::shared_ptr<Tool>& tool);
ChatRequest and ChatResponse types with fluent builder API.
Wrapper for nlohmann/json that works around abs macro conflicts.
Core abstractions: requests, responses, tools, input types, and provider interface.
void to_json(json &j, const Options &opts)
Serialize Options to JSON.
void from_json(const json &j, Options &opts)
Deserialize Options from JSON.
Top-level namespace for the ForestHub SDK.
Model-specific generation options (temperature, max_tokens, etc.).
Chat completion request sent to an LLM provider.
Definition types.hpp:39
Chat completion response from an LLM provider.
Definition types.hpp:148
Model-specific generation options.
Definition options.hpp:17