Package dev.langchain4j.data.text
Class TextFile
-
- All Implemented Interfaces:
public class TextFile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TextFile.Builder
Builder for TextFile.
-
Method Summary
Modifier and Type Method Description static TextFile.Builder
builder()
Create a new Builder. URI
url()
Get the url of the text file. String
base64Data()
Get the base64 data of the text file content. String
mimeType()
Get the mime type of the text file. boolean
equals(Object o)
int
hashCode()
String
toString()
-
-
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()
-
-
-
-