ReMe/reme/steps/file_io/_base.py
jinliyl ff2956a41f
refactor: simplify core, Studio, and unit test scaffolding (#658)
* refactor: share backend search, file responses, and vector digests

* refactor(studio): remove unused scaffolding and share workspace updates

* test: simplify async tests and share deterministic store fixtures
2026-10-22 19:35:21 +08:00

13 lines
451 B
Python

"""Common response handling for file operations."""
from ..base_step import BaseStep
class _FileIOStep(BaseStep):
"""Preserve the file-operation failure envelope without changing its payload."""
def _fail(self, message: str, **meta) -> None:
assert self.context is not None
self.context.response.success = False
self.context.response.answer = f"Error: {message}"
self.context.response.metadata.update(meta)