refactor(agents): hide failover policy types · openclaw/openclaw@0804901
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
File tree
src/agents/embedded-agent-runner/run
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@
|
4 | 4 | import type { FailoverReason } from "../../embedded-agent-helpers.js"; |
5 | 5 | |
6 | 6 | /** Failover action selected for one embedded run failure decision point. */ |
7 | | -export type RunFailoverDecision = |
| 7 | +type RunFailoverDecision = |
8 | 8 | | { |
9 | 9 | action: "continue_normal"; |
10 | 10 | } |
@@ -25,7 +25,7 @@ export type RetryLimitFailoverDecision = Extract<
|
25 | 25 | { action: "fallback_model" | "return_error_payload" } |
26 | 26 | >; |
27 | 27 | |
28 | | -export type PromptFailoverDecision = Extract< |
| 28 | +type PromptFailoverDecision = Extract< |
29 | 29 | RunFailoverDecision, |
30 | 30 | { action: "rotate_profile" | "fallback_model" | "surface_error" } |
31 | 31 | >; |
@@ -69,7 +69,7 @@ type AssistantDecisionParams = {
|
69 | 69 | profileRotated: boolean; |
70 | 70 | }; |
71 | 71 | |
72 | | -export type RunFailoverDecisionParams = |
| 72 | +type RunFailoverDecisionParams = |
73 | 73 | | RetryLimitDecisionParams |
74 | 74 | | PromptDecisionParams |
75 | 75 | | AssistantDecisionParams; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。