Skip to content
package

src.ce.core.config

module

src.ce.core.config.config_models

Classes

class

ProvidableConfig

From: src.ce.core.config.config_models

Base configuration for registry instances.

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.

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.

class

SystemConfig

From: src.ce.core.config.config_models

Configuration for the ticket system adapter.

Parameters

paramsdict[str, Any]

A dictionary of parameters specific to the ticket system adapter.

class

FetcherConfig

From: src.ce.core.config.config_models

Configuration for data fetchers.

This class represents the configuration for a data fetcher component. It inherits all attributes from ProvidableConfig.

class

PreparerConfig

From: src.ce.core.config.config_models

Configuration for data preparers.

This class represents the configuration for a data preparer component. It inherits all attributes from ProvidableConfig.

class

ModifierConfig

From: src.ce.core.config.config_models

Configuration for modifiers.

This class represents the configuration for a modifier component. It inherits all attributes from ProvidableConfig.

class

AIInferenceServiceConfig

From: src.ce.core.config.config_models

Configuration for AI inference services.

This class represents the configuration for an AI inference service component. It inherits all attributes from ProvidableConfig.

class

SchedulerConfig

From: src.ce.core.config.config_models

Configuration for scheduling recurring tasks.

Parameters

intervalint

The interval of time to wait between runs. Must be at least 1.

unitstr

The unit of time for the interval (e.g., 'minutes', 'hours'). Must be non-empty.

class

PipelineConfig

From: src.ce.core.config.config_models

Configuration for a single pipeline workflow.

Parameters

scheduleSchedulerConfig

The scheduling configuration for this pipeline.

pipeslist[str]

Ordered list of all pipe component IDs to execute, starting with a fetcher. The list must have at least one element.

class

OpenTicketAIConfig

From: src.ce.core.config.config_models

Root configuration model for Open Ticket AI.

Parameters

systemSystemConfig

Configuration for the ticket system adapter.

fetcherslist[FetcherConfig]

List of data fetcher configurations. Must be non-empty.

data_preparerslist[PreparerConfig]

List of data preparer configurations. Must be non-empty.

ai_inference_serviceslist[AIInferenceServiceConfig]

List of AI inference service configurations. Must be non-empty.

modifierslist[ModifierConfig]

List of modifier configurations. Must be non-empty.

pipelineslist[PipelineConfig]

List of pipeline configurations. Must be non-empty.

Functions

module

src.ce.core.config.config_validator

Module for validating OpenTicketAI configuration against a registry.

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.

Raises

ValueError

If any configured provider is not found in the registry, including details of missing IDs and available providers.

Classes

class

OpenTicketAIConfigValidator

From: src.ce.core.config.config_validator

Validate configuration values against the registry.

This class performs validation checks to ensure all provider configurations specified in the application settings correspond to registered implementations in the dependency injection registry.

Parameters

configOpenTicketAIConfig

Loaded application configuration.

registryRegistry

Dependency injection registry containing provider mappings.