mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-08 03:10:24 +00:00
Some checks are pending
Pre-commit / run (ubuntu-latest) (push) Waiting to run
- Implement BaseComponent with async lifecycle and context management - Add ApplicationContext for managing component initialization and registry - Create Application class for orchestrating job execution and lifecycle - Add AS LLM components with OpenAI chat model wrapper - Implement AS LLM formatter components with OpenAI formatter - Add client implementations including base, HTTP and ReMe clients - Create embedding model base class with caching and batching support - Implement file store base class with vector and full-text search - Add file watcher components for monitoring file system changes - Create job components for executing workflows - Implement service components for exposing jobs via different protocols - Add configuration schema with ApplicationConfig and ComponentConfig - Include utility modules for case conversion, chunking, logging and similarity - Register component types and create component registry system
33 lines
733 B
Python
33 lines
733 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"
|
|
|
|
STEP = "step"
|
|
|
|
JOB = "job"
|