Registry

This module contains functionality related to the the registry module for augmentation.components.chat_engines.

Registry

ChatEngineRegistry

Bases: Registry

Registry for chat engine components.

This registry provides a centralized mechanism for registering, retrieving, and managing chat engine implementations. Chat engines are indexed by their ChatEngineName enum value, allowing for dynamic selection and instantiation of different chat engine strategies.

Attributes:
  • _key_class (Type) –

    The class type used for registry keys, set to ChatEngineName.

Source code in src/augmentation/components/chat_engines/registry.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
class ChatEngineRegistry(Registry):
    """
    Registry for chat engine components.

    This registry provides a centralized mechanism for registering, retrieving, and managing
    chat engine implementations. Chat engines are indexed by their ChatEngineName enum value,
    allowing for dynamic selection and instantiation of different chat engine strategies.

    Attributes:
        _key_class (Type): The class type used for registry keys, set to ChatEngineName.
    """

    _key_class: Type = ChatEngineName