Class FunctionResponseFileData

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FunctionResponseFileData

public abstract class FunctionResponseFileData extends JsonSerializable
URI based data for function response. This data type is not supported in Gemini API.
  • Constructor Details

    • FunctionResponseFileData

      public FunctionResponseFileData()
  • Method Details

    • fileUri

      public abstract Optional<String> fileUri()
      Required. URI.
    • mimeType

      public abstract Optional<String> mimeType()
      Required. The IANA standard MIME type of the source data.
    • displayName

      public abstract Optional<String> displayName()
      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.
    • builder

      public static FunctionResponseFileData.Builder builder()
      Instantiates a builder for FunctionResponseFileData.
    • toBuilder

      public abstract FunctionResponseFileData.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static FunctionResponseFileData fromJson(String jsonString)
      Deserializes a JSON string to a FunctionResponseFileData object.