feat: digest-brief now includes review candidates (not just keep)
This commit is contained in:
@@ -84,7 +84,7 @@ def build_openclaw_digest_brief(
|
|||||||
limit: int | None = DIGEST_BRIEF_LIMIT,
|
limit: int | None = DIGEST_BRIEF_LIMIT,
|
||||||
highlight_limit: int = DIGEST_BRIEF_HIGHLIGHT_LIMIT,
|
highlight_limit: int = DIGEST_BRIEF_HIGHLIGHT_LIMIT,
|
||||||
) -> OpenClawDigestBrief:
|
) -> OpenClawDigestBrief:
|
||||||
keep_candidates = [candidate for candidate in payload.candidates if candidate.selection_decision == "keep"]
|
keep_candidates = [candidate for candidate in payload.candidates if candidate.selection_decision in ("keep", "review")]
|
||||||
sorted_candidates = sorted(keep_candidates, key=lambda candidate: candidate.digest_rank, reverse=True)
|
sorted_candidates = sorted(keep_candidates, key=lambda candidate: candidate.digest_rank, reverse=True)
|
||||||
selected_candidates = sorted_candidates if limit is None else sorted_candidates[:limit]
|
selected_candidates = sorted_candidates if limit is None else sorted_candidates[:limit]
|
||||||
top_candidates = [
|
top_candidates = [
|
||||||
|
|||||||
Reference in New Issue
Block a user