类 Image

java.lang.Object
dev.langchain4j.data.image.Image

public final class Image extends Object
Represents an image as a URL or as a Base64-encoded string.
  • 方法详细资料

    • builder

      public static Image.Builder builder()
      Create a new Image.Builder.
      返回:
      the new Image.Builder.
    • url

      public URI url()
      Get the url of the image.
      返回:
      the url of the image, or null if not set.
    • base64Data

      public String base64Data()
      Get the base64 data of the image.
      返回:
      the base64 data of the image, or null if not set.
    • mimeType

      public String mimeType()
      Get the mime type of the image.
      返回:
      the mime type of the image, or null if not set.
    • revisedPrompt

      public String revisedPrompt()
      Get the revised prompt of the image.
      返回:
      the revised prompt of the image, or null if not set.
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object