Package dev.langchain4j.data.text
Class TextFile
java.lang.Object
dev.langchain4j.data.text.TextFile
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the base64 data of the text file content.static TextFile.Builder
builder()
Create a newTextFile.Builder
.boolean
int
hashCode()
mimeType()
Get the mime type of the text file.toString()
url()
Get the url of the text file.
-
Method Details
-
builder
Create a newTextFile.Builder
.- Returns:
- the new
TextFile.Builder
.
-
url
Get the url of the text file.- Returns:
- the url of the text file, or null if not set.
-
base64Data
Get the base64 data of the text file content.- Returns:
- the base64 data of the text file content, or null if not set.
-
mimeType
Get the mime type of the text file.- Returns:
- the mime type of the text file, or null if not set.
-
equals
-
hashCode
public int hashCode() -
toString
-