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

Extended LLM interface with health checks and model discovery. More...

#include <provider.hpp>

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

Public Member Functions

virtual ProviderID ProviderId () const =0
 Returns the unique identifier of this provider.
virtual std::string Health () const =0
 Verify the LLM service is available.
virtual bool SupportsModel (const ModelID &model) const =0
 Check if this provider supports the given model.
Public Member Functions inherited from foresthub::core::LLMClient
virtual std::shared_ptr< ChatResponseChat (const ChatRequest &req)=0
 Perform a chat completion request.

Detailed Description

Extended LLM interface with health checks and model discovery.

Member Function Documentation

◆ Health()

virtual std::string foresthub::core::Provider::Health ( ) const
pure virtual

◆ SupportsModel()

virtual bool foresthub::core::Provider::SupportsModel ( const ModelID & model) const
pure virtual

Check if this provider supports the given model.

Parameters
modelModel identifier to check.
Returns
True if this provider can handle requests for the given model.

Implemented in 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: