From: src.ce.core.config.config_models
This class defines the core configuration structure required for initializing and managing registry instances. Each registry instance must have a unique identifier, a provider key, and can include additional provider-specific parameters.
id
A unique string identifier for the registry instance. Must be at least 1 character long.
params
A dictionary of additional configuration parameters specific to the registry provider. Defaults to an empty dictionary.
provider_key
A string key identifying the provider implementation for this registry instance. Must be at least 1 character long.
From: src.ce.core.config.config_models
params
dict[str, Any]A dictionary of parameters specific to the ticket system adapter.
From: src.ce.core.config.config_models
This class represents the configuration for a data fetcher component. It inherits all attributes
from ProvidableConfig
.
From: src.ce.core.config.config_models
This class represents the configuration for a data preparer component. It inherits all attributes
from ProvidableConfig
.
From: src.ce.core.config.config_models
This class represents the configuration for a modifier component. It inherits all attributes
from ProvidableConfig
.
From: src.ce.core.config.config_models
This class represents the configuration for an AI inference service component. It inherits all attributes
from ProvidableConfig
.
From: src.ce.core.config.config_models
interval
intThe interval of time to wait between runs. Must be at least 1.
unit
strThe unit of time for the interval (e.g., 'minutes', 'hours'). Must be non-empty.
From: src.ce.core.config.config_models
schedule
SchedulerConfigThe scheduling configuration for this pipeline.
pipes
list[str]Ordered list of all pipe component IDs to execute, starting with a fetcher. The list must have at least one element.
all_pipe_ids
set[str]A set of all registered pipe component IDs.
ValueError
If any pipe ID in this pipeline is not found in all_pipe_ids
.
From: src.ce.core.config.config_models
system
SystemConfigConfiguration for the ticket system adapter.
fetchers
list[FetcherConfig]List of data fetcher configurations. Must be non-empty.
data_preparers
list[PreparerConfig]List of data preparer configurations. Must be non-empty.
ai_inference_services
list[AIInferenceServiceConfig]List of AI inference service configurations. Must be non-empty.
modifiers
list[ModifierConfig]List of modifier configurations. Must be non-empty.
pipelines
list[PipelineConfig]List of pipeline configurations. Must be non-empty.
This method is called by Pydantic during model validation. It checks that every pipe ID referenced in every pipeline exists in the set of all registered component IDs.
The validated model instance.
ValueError
If any pipeline references a pipe ID that is not registered.
The returned list includes all instances of fetchers, data preparers, AI inference services, modifiers, and pipelines.
A list of all registered instance configurations.
The configuration file must have a root key 'open_ticket_ai' containing the configuration.
path
strThe path to the YAML configuration file.
The loaded configuration.
OSError
If there is an error opening the file (e.g., file not found, permission denied).
yaml.YAMLError
If there is an error parsing the YAML.
KeyError
If the root key 'open_ticket_ai' is missing.
pydantic.ValidationError
If the configuration data does not match the expected schema.
This module provides the OpenTicketAIConfigValidator
class which validates
that all provider configurations reference registered providers in the registry.
It ensures the application configuration only uses available implementations
during runtime initialization.
ValueError
If any configured provider is not found in the registry, including details of missing IDs and available providers.
From: src.ce.core.config.config_validator
This class performs validation checks to ensure all provider configurations specified in the application settings correspond to registered implementations in the dependency injection registry.
config
OpenTicketAIConfigLoaded application configuration.
registry
RegistryDependency injection registry containing provider mappings.
Iterates through all provider configurations in the application settings and verifies each provider key exists in the registry. Raises a detailed error if any provider is missing.
ValueError
If any provider configuration references an unregistered provider key. The error message includes: