Avoid draft files in product-data generation

This commit is contained in:
wuyang6
2026-05-11 19:56:29 +08:00
parent 7dc7fa2e52
commit 41eb36a704
6 changed files with 71 additions and 12 deletions
+5 -2
View File
@@ -1601,8 +1601,11 @@ class LocalCodingAgent:
f'工具:{name};位置:line {exc.lineno} column {exc.colno}'
f'原因:{exc.msg};参数片段:{preview!r}'
'请回复“继续”,我会要求模型重新生成合法 JSON 参数;'
'对于大段 dataset draft,应分批或使用 draft_path/records_path'
'不要把大量带引号的文本一次性塞进工具参数。'
'对于 product-data 生成数据,不要用 write_file 写大段 draft'
'应每批最多 8 条,直接用 python_exec 调用 '
'skills/product-data/scripts/normalize_dataset_draft.py'
'通过 stdin 传入小批量 JSON,并把 normalize 结果追加到 '
'scratchpad/normalized_records.jsonl。'
) from exc
if not isinstance(arguments, dict):
raise OpenAICompatError(