AGC 官方 LLM Router 账号链路与流式联网输出 #242

Merged
kdletters merged 59 commits from feat/agc-llm-router-official-chain into master 2026-09-06 16:49:13 +08:00
Showing only changes of commit e2689b4be5 - Show all commits
@@ -526,30 +526,6 @@ fn canonical_agent_reasoning_effort_defaults_are_exhaustive_and_auditable() {
template.agent_llm.unwrap_or_default().is_empty(),
"bundled template must not persist canonical defaults as explicit overrides"
);
let ui_source = include_str!("../../../src/features/runtime-config/RuntimeConfigDialog.tsx");
let ui_mapping = ui_source
.split("const runtimeAgentReasoningEffortDefaults = {")
.nth(1)
.and_then(|source| source.split("} as const satisfies").next())
.expect("frontend Agent reasoning effort contract")
.lines()
.filter_map(|line| {
let line = line.trim().trim_end_matches(',');
let (agent_id, effort) = line.split_once(": ")?;
Some((
agent_id.trim_matches(&['\'', '"'][..]).to_string(),
effort.trim_matches(&['\'', '"'][..]).to_string(),
))
})
.collect::<BTreeMap<_, _>>();
assert_eq!(
ui_mapping,
expected
.iter()
.map(|(agent_id, effort)| ((*agent_id).to_string(), (*effort).to_string()))
.collect::<BTreeMap<_, _>>()
);
}
#[test]