Skip to main content

response_value

Function response_value 

Source
pub fn response_value(response: &MessageResponse) -> Value
Expand description

Rebuilds the wire JSON of a response so the recorded value deserializes back into an equal MessageResponse. Built by hand because the response type is deserialize-only in salvor-llm.

This is the exact response field a ModelCallCompleted carries.