pub fn encode_aggregated_response(
agg: &AggLlmResponse,
wire_format: WireFormat,
served_model: Option<&str>,
) -> Result<Value>Expand description
Encodes a buffered aggregate into wire_format’s JSON body, stamping
served_model over the encoded id so the caller sees which model answered.
Passing None leaves the id the upstream reported.