Package dev.langchain4j.data.text
Class TextFile
-
- All Implemented Interfaces:
public class TextFile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTextFile.BuilderBuilder for TextFile.
-
Method Summary
Modifier and Type Method Description static TextFile.Builderbuilder()Create a new Builder. URIurl()Get the url of the text file. Stringbase64Data()Get the base64 data of the text file content. StringmimeType()Get the mime type of the text file. booleanequals(Object o)inthashCode()StringtoString()-
-
Method Detail
-
builder
static TextFile.Builder builder()
Create a new Builder.
- Returns:
the new Builder.
-
base64Data
String 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
String mimeType()
Get the mime type of the text file.
- Returns:
the mime type of the text file, or null if not set.
-
hashCode
int hashCode()
-
-
-
-