新增: F-04多Provider负载均衡池(数据层+选择器+并发原语)+CR-52白项
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
//! - [`audit`] — 工具调用审计 + pending 审批恢复 + 工具调用处理
|
||||
//! - [`skills`] — 本机 Claude 技能扫描
|
||||
//! - [`prompt`] — 系统提示词构建
|
||||
//! - [`provider_pool`] — F-260614-04 多 Provider 负载均衡池选择(纯逻辑)
|
||||
//! - [`compress`] — F-15 上下文压缩 LLM 摘要(compress_via_llm 公共函数)
|
||||
//! - [`tool_registry`] — AI 工具注册表构建 + 文件路径校验
|
||||
//! - [`knowledge_inject`] — 知识库注入 + 提炼
|
||||
@@ -28,6 +29,7 @@ pub mod compress;
|
||||
pub mod conversation;
|
||||
pub mod knowledge_inject;
|
||||
pub mod prompt;
|
||||
pub mod provider_pool;
|
||||
pub mod secret;
|
||||
pub mod skills;
|
||||
pub mod stream_recv;
|
||||
@@ -468,6 +470,7 @@ pub(crate) async fn execute_run_workflow_for_tool(
|
||||
// 转调工作流执行核心(B-260617-01:run_workflow_inner 是 run_workflow 命令的共用核心,
|
||||
// 同 invoke('run_workflow') IPC 入口的执行逻辑,持 &AppState 非 tauri::State,绕开
|
||||
// tauri::State 在非命令上下文不可构造的限制)。
|
||||
// CR-52: 本路径是 AI 工具经 ai_approve 审批后执行 → triggered_by="ai"(区别命令层 manual)。
|
||||
// 返回 execution_id 字符串;失败(模板不存在/DAG 校验失败/DB 写入失败)上抛 Err。
|
||||
let execution_id = crate::commands::workflow::run_workflow_inner(
|
||||
app,
|
||||
@@ -477,6 +480,7 @@ pub(crate) async fn execute_run_workflow_for_tool(
|
||||
config,
|
||||
Some(task_id.clone()),
|
||||
Some(target_status.clone()),
|
||||
"ai",
|
||||
)
|
||||
.await
|
||||
.map_err(|e| anyhow::anyhow!("工作流执行失败: {}", e))?;
|
||||
|
||||
Reference in New Issue
Block a user