Files
DataMate/runtime/ops/examples/test_operator/process.py
hhhhsc701 5cef9cb273 feature: deer-flow支持从datamate获取外部接入模型 (#83)
* feature: deer-flow支持从datamate获取外部接入模型
2025-11-13 20:13:16 +08:00

11 lines
247 B
Python

from typing import Dict, Any
from datamate.core.base_op import Mapper
class TestMapper(Mapper):
def execute(self, sample: Dict[str, Any]) -> Dict[str, Any]:
sample[self.text_key] += "\n####################\n"
return sample