Module ai

Module ai 

Source
Expand description

Encapsulates all interactions with Large Language Models (LLMs).

This module provides the client for the application’s AI-powered features, such as generating, fixing, and explaining shell commands. It defines a common interface for interacting with different AI providers.

Structs§

AiClient
A generic client to communicate with AI providers
CommandFix
A structured object to propose a fix to a failed command
CommandSuggestion
A structured object representing a suggestion for a shell command and its explanation
CommandSuggestions

Traits§

AiProvider
A trait that defines the provider-specific logic for the generic AiClient
AiProviderBase
A trait that defines the provider-specific logic for the generic AiClient