mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-19 00:01:33 +00:00
- 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
35 lines
782 B
Python
35 lines
782 B
Python
"""Components"""
|
|
from .application_context import ApplicationContext
|
|
from .base_component import BaseComponent
|
|
from .base_step import BaseStep
|
|
from .component_registry import ComponentRegistry, R
|
|
from .prompt_handler import PromptHandler
|
|
from .runtime_context import RuntimeContext
|
|
|
|
from . import as_llm
|
|
from . import as_llm_formatter
|
|
from . import client
|
|
from . import embedding
|
|
from . import file_store
|
|
from . import file_watcher
|
|
from . import job
|
|
from . import service
|
|
|
|
__all__ = [
|
|
"ApplicationContext",
|
|
"BaseComponent",
|
|
"BaseStep",
|
|
"ComponentRegistry",
|
|
"R",
|
|
"PromptHandler",
|
|
"RuntimeContext",
|
|
# base components
|
|
"as_llm",
|
|
"as_llm_formatter",
|
|
"client",
|
|
"embedding",
|
|
"file_store",
|
|
"file_watcher",
|
|
"job",
|
|
"service",
|
|
]
|