mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-15 23:31:05 +00:00
* feat(plugins): auto-tag generated reports * fix(logging): forward host records on Python 3.13 * refactor(tags): decouple auto tagging from index updates * fix(tags): bind auto tagging to configured index * fix(tags): preserve standalone default index * fix(tags): make auto tagging best effort
25 lines
844 B
Python
25 lines
844 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
|
|
|
|
# Background content-processing jobs skip files above this size. File watchers
|
|
# and catalogs still track them so deletes and later size reductions are seen.
|
|
DEFAULT_MAX_FILE_BYTES = 20 * 1024 * 1024
|
|
|
|
# Memory-tag generation and indexing defaults.
|
|
DEFAULT_MEMORY_TAG_KEY = "memory_tags"
|
|
DEFAULT_MAX_MEMORY_TAGS = 3
|
|
DEFAULT_MAX_MEMORY_TAG_LENGTH = 64
|