mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-19 00:01:33 +00:00
Some checks are pending
Pre-commit / run (ubuntu-latest) (push) Waiting to run
- Introduce BaseAsTokenCounter and EstimatedAsTokenCounter for token estimation - Add AsMsgStat and AsBlockStat schema for message statistics tracking - Implement FileIO class with read/write/append/edit operations - Create file utility functions for safe async file reading and truncation - Add MemorySearch component for semantic search in memory files - Register new component types in ComponentEnum and update imports - Add constants for default host, port, and truncation limits - Create BaseService abstract base class for service implementations - Implement BaseStep with component accessors and lifecycle management - Add proper __all__ exports for all new modules and components
38 lines
819 B
Python
38 lines
819 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 as_token_counter
|
|
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",
|
|
]
|