FunctionResponseBlob

@Serializable
data class FunctionResponseBlob(val mimeType: String? = null, val data: ByteArray? = null, val displayName: String? = null)

Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field.

Constructors

Link copied to clipboard
constructor(mimeType: String? = null, data: ByteArray? = null, displayName: String? = null)

Properties

Link copied to clipboard
val data: ByteArray? = null

Required. Raw bytes.

Link copied to clipboard
val displayName: String? = null

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. This field is not supported in Gemini API.

Link copied to clipboard
val mimeType: String? = null

Required. The IANA standard MIME type of the source data.