完善 AGC 独立 Agent 试验验证

支持使用 Fake Provider 验证跨进程 Agent 回合

修正独立 Agent 与排队模型的匹配和子进程超时回收

补充 AGC 到独立 App Server 的真实子进程 smoke
This commit is contained in:
2026-09-10 13:07:09 +08:00
parent bd85694ee9
commit 36ae9425e9
2 changed files with 54 additions and 15 deletions
+10 -13
View File
@@ -437,19 +437,16 @@ fn configure_host_with_fake_call_id(
) -> Result<AgentHost, Box<dyn std::error::Error>> {
match config.provider().as_str() {
"fake" => {
host = if let Some(call_id) = fake_call_id {
host.with_provider(
Arc::new(agent_provider_fake::FakeProvider::tool_then_text(
call_id,
"echo",
json!({"text": "hello from fake provider"}),
"fake provider complete",
)),
"fake",
)
} else {
host.with_fake_provider()
}
let call_id = fake_call_id.unwrap_or("echo-call-1");
host = host.with_provider(
Arc::new(agent_provider_fake::FakeProvider::tool_then_text(
call_id,
"echo",
json!({"text": "hello from fake provider"}),
"fake provider complete",
)),
config.model(),
)
}
"openai" => {
let model = config.model();