pub fn build_stream_request(
model: impl Into<String>,
project: Option<String>,
system_prompt: Option<String>,
turns: &[ChatTurn],
tools: &[ToolSpec],
) -> Result<(ProxyRequest, Bytes), StreamError>Expand description
Build the exact-byte ProxyRequest for one streamed Code Assist turn.
The JSON envelope is serialized once via
ProxyRequest::post_json_exact; the returned bytes::Bytes handle is
the very buffer LocalBroker sends verbatim, so a caller-side trace
digest over it describes the true wire body on the local-broker path.