25 lines
534 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""采纳走 flow:记录 reviews.adopt,不直接写正文文件。"""
from __future__ import annotations
from muse.store import add_review
def adopt_candidate(
run_id: str,
reviewer: str,
reason: str,
*,
path: str | None = None,
) -> int:
"""人审采纳的唯一写入口。web 必须调用本函数,不得自行写库。"""
return add_review(
run_id=run_id,
target="candidate",
action="adopt",
reviewer=reviewer,
reason=reason,
path=path,
)