mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-10 22:41:06 +00:00
* feat(file_io): port orthogonal crud_steps features onto upstream restructure * refactor(file_io): expose with_neighbors/max_neighbors_per_direction/max_bytes as step kwargs (not LLM params) Match search_step's convention: tuning knobs that are config-like (not part of the LLM-facing schema) live in the yaml steps: block and are read via self.kwargs.get(...) — not exposed under parameters.properties. Also simplify the write step metadata field description.
16 lines
493 B
Python
16 lines
493 B
Python
"""Constants"""
|
|
|
|
REME_SERVICE_INFO = "REME_SERVICE_INFO"
|
|
|
|
REME_DEFAULT_HOST = "127.0.0.1"
|
|
|
|
REME_DEFAULT_PORT = 2333
|
|
|
|
# CRUD steps: file IO limits and truncation marker (shared across CRUD steps).
|
|
DEFAULT_MAX_BYTES = 50 * 1024
|
|
MAX_FILE_READ_BYTES = 200 * 1024 * 1024
|
|
TRUNCATION_NOTICE_MARKER = "<<TRUNCATION_NOTICE>>"
|
|
|
|
# read_image step: oversized images above this threshold return path & metadata
|
|
# only (no base64) to keep LLM context budgets safe.
|
|
DEFAULT_MAX_IMAGE_BYTES = 5 * 1024 * 1024
|