packages feed

llm-simple-0.1.0.1: src/LLM/Load/Types.hs

module LLM.Load.Types where

import Control.Exception (Exception)
import Data.Text (Text)

-- | Errors raised while loading model catalogs or resolving configurations.
data LoadConfigError
  = -- | The catalog file is missing or contains invalid JSON.
    LoadModelCatalogError Text
  | -- | A catalog entry references an unknown model or provider.
    LoadModelConfigError Text
  | -- | A @file:@ system prompt path could not be read.
    LoadSystemPromptError Text
  deriving (Show)

instance Exception LoadConfigError