Skip to main content

message_bytes

Function message_bytes 

Source
pub fn message_bytes(message: &Message) -> usize
Expand description

The bytes a message costs the budget: text, tool-call arguments, and tool-result content, summed, with each image at IMAGE_BYTES instead of its encoded length. This is the unit the view’s budget spends.