GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.AIProvidersConfig Class Reference

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< AIProviderDefinitionProviders = new List<AIProviderDefinition>() [get, set]

Detailed Description

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.

Member Function Documentation

◆ Find()

AIProviderDefinition GenerallyPositive.AIProvidersConfig.Find ( AIProviderType type)

Definition at line 55 of file AIProvidersConfig.cs.

◆ Load()

AIProvidersConfig GenerallyPositive.AIProvidersConfig.Load ( GPALFile file = null)
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.

◆ Save()

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.

Property Documentation

◆ Current

AIProvidersConfig GenerallyPositive.AIProvidersConfig.Current = Default()
staticget

Definition at line 51 of file AIProvidersConfig.cs.

◆ Providers

List<AIProviderDefinition> GenerallyPositive.AIProvidersConfig.Providers = new List<AIProviderDefinition>()
getset

Definition at line 53 of file AIProvidersConfig.cs.


The documentation for this class was generated from the following file: