Class FunctionResponseBlob (1.135.0)

FunctionResponseBlob(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Raw media bytes for function response.

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.

Methods

FunctionResponseBlob

FunctionResponseBlob(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Raw media bytes for function response.

Text should not be sent as raw bytes, use the 'text' field.