类 Image
java.lang.Object
dev.langchain4j.data.image.Image
Represents an image as a URL or as a Base64-encoded string.
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明Get the base64 data of the image.static Image.Builderbuilder()Create a newImage.Builder.booleaninthashCode()mimeType()Get the mime type of the image.Get the revised prompt of the image.toString()url()Get the url of the image.
-
方法详细资料
-
builder
Create a newImage.Builder.- 返回:
- the new
Image.Builder.
-
url
Get the url of the image.- 返回:
- the url of the image, or null if not set.
-
base64Data
Get the base64 data of the image.- 返回:
- the base64 data of the image, or null if not set.
-
mimeType
Get the mime type of the image.- 返回:
- the mime type of the image, or null if not set.
-
revisedPrompt
Get the revised prompt of the image.- 返回:
- the revised prompt of the image, or null if not set.
-
equals
-
hashCode
public int hashCode() -
toString
-