|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Interface for AI service communication. More...
#include <IAIService.hpp>


Public Member Functions | |
| virtual | ~IAIService ()=default |
| std::string | GetServiceType () const override |
| Type of service ("ai", "analyzer", "exporter", etc.) | |
| virtual std::string | SendPrompt (const std::string &prompt, std::function< void(const std::string &)> callback=nullptr)=0 |
| Send a prompt to the AI and get a response. | |
| virtual bool | IsAvailable () const =0 |
| Check if the AI service is available. | |
| virtual std::string | GetModelName () const =0 |
| Get the name of the model being used. | |
| virtual void | SetModelName (const std::string &modelName)=0 |
| virtual std::string | GetProviderName () const =0 |
| Get the name of the AI provider. | |
| virtual std::string | GetServiceId () const =0 |
| Unique identifier for this service instance. | |
Interface for AI service communication.
|
virtualdefault |
|
pure virtual |
Get the name of the model being used.
Implemented in ai::AnthropicClient, ai::GeminiClient, ai::LLMClient, ai::OllamaClient, and ai::OpenAIClient.
|
pure virtual |
Get the name of the AI provider.
Implemented in ai::AnthropicClient, ai::GeminiClient, ai::LLMClient, ai::OllamaClient, and ai::OpenAIClient.
|
pure virtualinherited |
Unique identifier for this service instance.
Implemented in ai::AnthropicClient, ai::GeminiClient, ai::LLMClient, ai::OllamaClient, and ai::OpenAIClient.
|
inlineoverridevirtual |
Type of service ("ai", "analyzer", "exporter", etc.)
Implements services::IService.
|
pure virtual |
Check if the AI service is available.
Implemented in ai::AnthropicClient, ai::GeminiClient, ai::LLMClient, ai::OllamaClient, and ai::OpenAIClient.
|
pure virtual |
Send a prompt to the AI and get a response.
| prompt | The text prompt to send |
| callback | Function called with response chunks as they arrive |
Implemented in ai::AnthropicClient, ai::GeminiClient, ai::LLMClient, ai::OllamaClient, and ai::OpenAIClient.
|
pure virtual |
Implemented in ai::AnthropicClient, ai::GeminiClient, ai::LLMClient, ai::OllamaClient, and ai::OpenAIClient.