gateImages
function gateImages(messages, limits): ChatMessage[];Defined in: core/src/image.ts:158
The history with every image the limits refuse replaced by a note naming the
reason. In a user turn the note takes the image’s place; in a tool result it
joins the result’s text. Of the images that pass, only the newest
maxImages stay, so the latest screenshot is the one the model sees.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
messages |
readonly ChatMessage[] |
limits |
ImageLimits |