LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
IAIService.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <functional>
5#include "IService.hpp"
6
7namespace ai
8{
9
14{
15public:
16 virtual ~IAIService() = default;
17
18 // IService implementation
19 std::string GetServiceType() const override { return "ai"; }
20
27 virtual std::string SendPrompt(const std::string& prompt,
28 [[maybe_unused]] std::function<void(const std::string&)> callback = nullptr) = 0;
29
34 virtual bool IsAvailable() const = 0;
35
39 virtual std::string GetModelName() const = 0;
40
41 virtual void SetModelName(const std::string& modelName) = 0;
42
46 virtual std::string GetProviderName() const = 0;
47};
48
49} // namespace ai
Interface for AI service communication.
Definition IAIService.hpp:14
std::string GetServiceType() const override
Type of service ("ai", "analyzer", "exporter", etc.)
Definition IAIService.hpp:19
virtual ~IAIService()=default
virtual std::string GetProviderName() const =0
Get the name of the AI provider.
virtual void SetModelName(const std::string &modelName)=0
virtual bool IsAvailable() const =0
Check if the AI service is available.
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 std::string GetModelName() const =0
Get the name of the model being used.
Base interface for all pluggable services (AI, analyzer, exporter, etc.)
Definition IService.hpp:9
Definition GemmaInferenceEngine.cpp:18