pub fn encode_messages(
messages: &[Value],
options: &EncodeOptions,
) -> Result<EncodedPrompt, EncodingError>Expand description
Encode current messages. images contains only records belonging to the
current turn, matching the official helper’s context-cache contract.