refactor: add execution backend selection

This commit is contained in:
kris
2026-04-03 00:21:19 +08:00
parent a3a4f3e980
commit 8a62e72fd5
11 changed files with 1067 additions and 318 deletions

View File

@@ -138,6 +138,11 @@ interface ExecutionBackend {
说明:
- 这层只负责“选择谁执行”,不负责组装 prompt也不负责审批和业务决策
- 运行时选择语义应明确为:
- `ready primary` 优先
- 否则按 `aliyun_qwen -> openai -> master_codex_node` 顺序回退
- 如果没有任何 ready backend再回 primary 兜底
- 同一 provider 下如果存在多个账号,只要其中任一账号 `ready`,该 backend 就视为可选
### 3. `SessionRuntime`