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
23 lines
634 B
Python
23 lines
634 B
Python
"""Utility modules"""
|
|
|
|
from .case_converter import camel_to_snake, snake_to_camel
|
|
from .chunking_utils import chunk_markdown
|
|
from .common_utils import hash_text, execute_stream_task, run_coro_safely
|
|
from .logger_utils import get_logger
|
|
from .logo_utils import print_logo
|
|
from .similarity_utils import cosine_similarity, batch_cosine_similarity
|
|
from .singleton import singleton
|
|
|
|
__all__ = [
|
|
"camel_to_snake",
|
|
"snake_to_camel",
|
|
"chunk_markdown",
|
|
"hash_text",
|
|
"execute_stream_task",
|
|
"run_coro_safely",
|
|
"get_logger",
|
|
"print_logo",
|
|
"cosine_similarity",
|
|
"batch_cosine_similarity",
|
|
"singleton",
|
|
]
|