Package dev.langchain4j.data.image
Class Image
-
- All Implemented Interfaces:
public final class ImageRepresents an image as a URL or as a Base64-encoded string.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classImage.BuilderBuilder for Image.
-
Method Summary
Modifier and Type Method Description static Image.Builderbuilder()Create a new Builder. URIurl()Get the url of the image. Stringbase64Data()Get the base64 data of the image. StringmimeType()Get the mime type of the image. StringrevisedPrompt()Get the revised prompt of the image. booleanequals(Object o)inthashCode()StringtoString()-
-
Method Detail
-
builder
static Image.Builder builder()
Create a new Builder.
- Returns:
the new Builder.
-
base64Data
String base64Data()
Get the base64 data of the image.
- Returns:
the base64 data of the image, or null if not set.
-
mimeType
String mimeType()
Get the mime type of the image.
- Returns:
the mime type of the image, or null if not set.
-
revisedPrompt
String revisedPrompt()
Get the revised prompt of the image.
- Returns:
the revised prompt of the image, or null if not set.
-
hashCode
int hashCode()
-
-
-
-