This commit is contained in:
zyp
2026-11-24 15:38:28 +08:00
parent a6740c4509
commit c27f84cf91
20 changed files with 823 additions and 42 deletions
@@ -3,6 +3,7 @@ import logging
from typing import Literal
from pydantic import BaseModel, ConfigDict, Field, model_validator
from .confidential_delivery import CONFIDENTIAL_DELIVERY_POLICY
logger = logging.getLogger(__name__)
@@ -177,7 +178,7 @@ def review_commentary(*, subject, goal, tasks, sources, review_kind, workflow,
schema['$defs']['ReviewAction']['properties']['scope']['enum'] = ['subject']
instruction += '\n本次评价的是目标本身,修改目标描述及其分工均属于当前目标负责人的意见,actions统一使用scope=subject。先明确目标内容的缺失,再处理下级分工问题。'
schema['$defs']['Citation'] = citation_schema(data['sources'])
instruction += DESCRIPTION_INSTRUCTION + PROPORTIONATE_REVIEW + '\n引用必须从对应source_id的quote候选原文中选择,保留原有换行和标点,不合并或改写。'
instruction += DESCRIPTION_INSTRUCTION + PROPORTIONATE_REVIEW + CONFIDENTIAL_DELIVERY_POLICY + '\n引用必须从对应source_id的quote候选原文中选择,保留原有换行和标点,不合并或改写。'
if alignment and alignment['status'] == 'unrelated':
schema['properties']['verdict']['enum'] = ['adjust']
instruction += '\n本次已根据原文核实:当前任务不属于所挂上级目标。即使任务自身描述清楚,也必须说明这项归属冲突并建议核对挂靠,不能给sound;不要把技术任务改写成另一种业务任务。'