FunctionResponseFileData

@Serializable
data class FunctionResponseFileData(val fileUri: String? = null, val mimeType: String? = null, val displayName: String? = null)

URI based data for function response. This data type is not supported in Gemini API.

Constructors

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

Properties

Link copied to clipboard
val displayName: String? = null

Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. 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.

Link copied to clipboard
val fileUri: String? = null

Required. URI.

Link copied to clipboard
val mimeType: String? = null

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