LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ai Namespace Reference

Namespaces

namespace  anonymous_namespace{AnthropicClient.cpp}
 
namespace  anonymous_namespace{GeminiClient.cpp}
 
namespace  anonymous_namespace{LLMClient.cpp}
 
namespace  anonymous_namespace{OllamaClient.cpp}
 
namespace  anonymous_namespace{OpenAIClient.cpp}
 

Classes

class  AIServiceFactory
 Factory for creating AI service clients based on provider. More...
 
class  AIServiceWrapper
 
class  AnthropicClient
 Client for Anthropic API (Claude) More...
 
struct  Config
 
struct  DirectionPattern
 Direction pattern detected in logs. More...
 
class  GeminiClient
 Client for Google Gemini API. More...
 
struct  GemmaActorResult
 Result from Gemma inference for actor extraction. More...
 
struct  GemmaDirectionResult
 Result from direction discovery. More...
 
class  GemmaInferenceEngine
 
class  IAIService
 Interface for AI service communication. More...
 
class  LLMClient
 Generic client for communicating with LLM services. More...
 
class  LogAnalyzer
 Analyzes logs using AI to provide insights. More...
 
struct  ModelInfo
 Information about an installed model. More...
 
class  OllamaClient
 Client for communicating with local Ollama LLM server. More...
 
class  OpenAIClient
 Client for OpenAI-compatible APIs (OpenAI, xAI Grok, etc.) More...
 

Enumerations

enum class  LLMProvider { Ollama , LMStudio , OpenAI , Custom }
 Type of LLM service provider. More...
 

Functions

Config & GetConfig ()
 
 if (contentEnd >=response.length())
 
 while ((pos=result.find("\\n", pos)) !=std::string::npos)
 
 while ((pos=result.find("\\\"", pos)) !=std::string::npos)
 
 if (callback) callback(result)
 
 PLUGIN_LOG (PLUGIN_LOG_DEBUG, "Received response from Ollama (length: {})", result.length())
 

Variables

constexpr const char * GEMMA_MODEL_NAME = "gemma-2b.gguf"
 
constexpr const char * GEMMA_MODELS_DIR = "models"
 
std::string result = response.substr(contentStart, contentEnd - contentStart)
 
size_t pos = 0
 

Enumeration Type Documentation

◆ LLMProvider

enum class ai::LLMProvider
strong

Type of LLM service provider.

Enumerator
Ollama 
LMStudio 
OpenAI 
Custom 

Function Documentation

◆ GetConfig()

Config & ai::GetConfig ( )
inline
Here is the caller graph for this function:

◆ if() [1/2]

ai::if ( callback  )

◆ if() [2/2]

ai::if ( contentEnd >=response.  length())

◆ PLUGIN_LOG()

ai::PLUGIN_LOG ( PLUGIN_LOG_DEBUG  ,
"Received response from Ollama (length: {})"  ,
result.  length() 
)

◆ while() [1/2]

ai::while ( (pos=result.find("\\\"", pos)) !  = std::string::npos)

◆ while() [2/2]

ai::while ( (pos=result.find("\\n", pos)) !  = std::string::npos)

Variable Documentation

◆ GEMMA_MODEL_NAME

constexpr const char* ai::GEMMA_MODEL_NAME = "gemma-2b.gguf"
constexpr

◆ GEMMA_MODELS_DIR

constexpr const char* ai::GEMMA_MODELS_DIR = "models"
constexpr

◆ pos

ai::pos = 0

◆ result

return ai::result = response.substr(contentStart, contentEnd - contentStart)