Package dev.langchain4j.data.image
Class Image.Builder
java.lang.Object
dev.langchain4j.data.image.Image.Builder
- Enclosing class:
Image
Builder for
Image
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbase64Data
(String base64Data) Set the base64 data of the image.build()
Build theImage
.Set the mime type of the image.revisedPrompt
(String revisedPrompt) Set the revised prompt of the image.Set the url of the image.Set the url of the image.
-
Constructor Details
-
Builder
public Builder()Create a newImage.Builder
.
-
-
Method Details
-
url
Set the url of the image.- Parameters:
url
- the url of the image.- Returns:
this
-
url
Set the url of the image.- Parameters:
url
- the url of the image.- Returns:
this
-
base64Data
Set the base64 data of the image.- Parameters:
base64Data
- the base64 data of the image.- Returns:
this
-
mimeType
Set the mime type of the image.- Parameters:
mimeType
- the mime type of the image.- Returns:
this
-
revisedPrompt
Set the revised prompt of the image.- Parameters:
revisedPrompt
- the revised prompt of the image.- Returns:
this
-
build
Build theImage
.- Returns:
- the
Image
.
-