![]() |
GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
|
Loads and saves the AI provider definitions used by GPAL.AI.WithProvider. Stored as ./AIProvidersConfig.yaml. Built-in defaults for XAI, OpenAI, and Anthropic are always available even without a config file; the file extends or overrides them. Auto-loaded silently on startup if the file exists. More...
Public Member Functions | |
| AIProviderDefinition | Find (AIProviderType type) |
| void | Save (GPALFile file=null) |
| Saves this configuration to AIProvidersConfig.yaml (or a custom path). | |
Static Public Member Functions | |
| static AIProvidersConfig | Load (GPALFile file=null) |
| Loads AI provider definitions from AIProvidersConfig.yaml (or a custom path). If the file is missing, writes the built-in defaults to disk for the user to edit. Falls back to built-in defaults if the file is invalid. | |
Properties | |
| static AIProvidersConfig | Current = Default() [get] |
| List< AIProviderDefinition > | Providers = new List<AIProviderDefinition>() [get, set] |
Loads and saves the AI provider definitions used by GPAL.AI.WithProvider. Stored as ./AIProvidersConfig.yaml. Built-in defaults for XAI, OpenAI, and Anthropic are always available even without a config file; the file extends or overrides them. Auto-loaded silently on startup if the file exists.
Definition at line 47 of file AIProvidersConfig.cs.
| AIProviderDefinition GenerallyPositive.AIProvidersConfig.Find | ( | AIProviderType | type | ) |
Definition at line 55 of file AIProvidersConfig.cs.
|
static |
Loads AI provider definitions from AIProvidersConfig.yaml (or a custom path). If the file is missing, writes the built-in defaults to disk for the user to edit. Falls back to built-in defaults if the file is invalid.
Definition at line 63 of file AIProvidersConfig.cs.
| void GenerallyPositive.AIProvidersConfig.Save | ( | GPALFile | file = null | ) |
Saves this configuration to AIProvidersConfig.yaml (or a custom path).
Definition at line 95 of file AIProvidersConfig.cs.
|
staticget |
Definition at line 51 of file AIProvidersConfig.cs.
|
getset |
Definition at line 53 of file AIProvidersConfig.cs.