Text should not be sent as raw bytes, use the 'text' field.
Attributes
Name
Description
mime_type
str
Required. The IANA standard MIME type of the
source data.
data
bytes
Required. Raw bytes.
display_name
str
Optional. Display name of the blob.
Used to provide a label or filename to distinguish blobs.
This field is only returned in PromptMessage for prompt
management. It is currently used in the Gemini
GenerateContent calls only when server side tools
(code_execution, google_search, and url_context) are
enabled.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-16 UTC."],[],[]]