ReMe/reme_cli/enumeration/component_enum.py
jinli.yl b9ce64de7f refactor(component): restructure client and component architecture
- Replace ReMeClient with modular client implementations
- Add component registry with type-based registration system
- Introduce BaseClient extending BaseComponent with lifecycle management
- Create HttpClient with environment-based service discovery
- Add constants for default host/port configurations
- Update service info propagation through environment variables
- Restructure imports and exports across component modules
- Add run_coro_safely utility for safe coroutine execution
- Implement component type enumeration for better organization
- Register components with R decorator for automatic discovery
- Add placeholder methods for ReMe core functionalities
- Update command-line entry point to use dynamic client selection
2026-04-14 15:51:07 +08:00

35 lines
756 B
Python

"""Component enumeration module.
Defines the types of components that can be registered and used in the application.
"""
from enum import Enum
class ComponentEnum(str, Enum):
"""Enumeration of component types for dependency injection and registration.
This enum defines the various component categories that can be registered
in the application's component container. Each component type represents
a specific role or functionality within the system.
"""
BASE = "base"
AS_LLM = "as_llm"
AS_LLM_FORMATTER = "as_llm_formatter"
EMBEDDING_MODEL = "embedding_model"
FILE_STORE = "file_store"
FILE_WATCHER = "file_watcher"
SERVICE = "service"
CLIENT = "client"
STEP = "step"
JOB = "job"