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

Abstract interface for LLM chat operations. More...

#include <provider.hpp>

Inheritance diagram for foresthub::core::LLMClient:
foresthub::Client foresthub::core::Provider foresthub::provider::remote::AnthropicProvider foresthub::provider::remote::ForestHubProvider foresthub::provider::remote::GeminiProvider foresthub::provider::remote::OpenAIProvider

Public Member Functions

virtual std::shared_ptr< ChatResponseChat (const ChatRequest &req)=0
 Perform a chat completion request.

Detailed Description

Abstract interface for LLM chat operations.

Member Function Documentation

◆ Chat()

virtual std::shared_ptr< ChatResponse > foresthub::core::LLMClient::Chat ( const ChatRequest & req)
pure virtual

Perform a chat completion request.

Parameters
reqChat request containing model, input, and generation options.
Returns
Chat response, or nullptr on network/provider error.

Implemented in foresthub::Client, foresthub::provider::remote::AnthropicProvider, foresthub::provider::remote::ForestHubProvider, foresthub::provider::remote::GeminiProvider, and foresthub::provider::remote::OpenAIProvider.


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