类 Image.Builder

java.lang.Object
dev.langchain4j.data.image.Image.Builder
封闭类:
Image

public static class Image.Builder extends Object
Builder for Image.
  • 构造器详细资料

  • 方法详细资料

    • url

      public Image.Builder url(URI url)
      Set the url of the image.
      参数:
      url - the url of the image.
      返回:
      this
    • url

      public Image.Builder url(String url)
      Set the url of the image.
      参数:
      url - the url of the image.
      返回:
      this
    • base64Data

      public Image.Builder base64Data(String base64Data)
      Set the base64 data of the image.
      参数:
      base64Data - the base64 data of the image.
      返回:
      this
    • mimeType

      public Image.Builder mimeType(String mimeType)
      Set the mime type of the image.
      参数:
      mimeType - the mime type of the image.
      返回:
      this
    • revisedPrompt

      public Image.Builder revisedPrompt(String revisedPrompt)
      Set the revised prompt of the image.
      参数:
      revisedPrompt - the revised prompt of the image.
      返回:
      this
    • build

      public Image build()
      Build the Image.
      返回:
      the Image.