mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-10 03:30:56 +00:00
Some checks failed
Pre-commit / run (ubuntu-latest) (push) Has been cancelled
refactor(component): rename file_store to chunk_store and update interfaces - Rename BaseFileStore to BaseChunkStore and update component type - Replace file_store property with chunk_store in BaseStep - Add file_graph property to access file metadata from FileWatcher - Update all storage backends (Chroma, Local, SQLite) to use chunk-focused APIs - Remove file metadata handling from chunk stores (moved to FileGraph) - Update search methods to use ChunkFilter instead of SearchFilter - Remove file_store imports and add chunk_store imports ```
39 lines
834 B
Python
39 lines
834 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"
|
|
|
|
AS_TOKEN_COUNTER = "as_token_counter"
|
|
|
|
EMBEDDING_MODEL = "embedding_model"
|
|
|
|
FILE_PARSER = "file_parser"
|
|
|
|
CHUNK_STORE = "chunk_store"
|
|
|
|
FILE_WATCHER = "file_watcher"
|
|
|
|
SERVICE = "service"
|
|
|
|
CLIENT = "client"
|
|
|
|
STEP = "step"
|
|
|
|
JOB = "job"
|