Package dev.langchain4j.data.image
Class Image
java.lang.Object
dev.langchain4j.data.image.Image
Represents an image as a URL or as a Base64-encoded string.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the base64 data of the image.static Image.Builder
builder()
Create a newImage.Builder
.boolean
int
hashCode()
mimeType()
Get the mime type of the image.Get the revised prompt of the image.toString()
url()
Get the url of the image.
-
Method Details
-
builder
Create a newImage.Builder
.- Returns:
- the new
Image.Builder
.
-
url
Get the url of the image.- Returns:
- the url of the image, or null if not set.
-
base64Data
Get the base64 data of the image.- Returns:
- the base64 data of the image, or null if not set.
-
mimeType
Get the mime type of the image.- Returns:
- the mime type of the image, or null if not set.
-
revisedPrompt
Get the revised prompt of the image.- Returns:
- the revised prompt of the image, or null if not set.
-
equals
-
hashCode
public int hashCode() -
toString
-