pub fn build_router_request(
model: &str,
query: &str,
top_n: usize,
) -> CompletionRequestExpand description
Construct the provider request carrying the router prompt.
temperature = 1.0 keeps the request compatible with the Z.AI GLM
family (see project AGENTS notes on GLM-5.1 temperature).
ยงExamples
use codetether_agent::search::request::build_router_request;
let req = build_router_request("glm-5.1", "find fn main", 1);
assert_eq!(req.messages.len(), 2);