Package dev.langchain4j.data.text
Class TextFile.Builder
-
- All Implemented Interfaces:
public class TextFile.Builder
Builder for TextFile.
-
-
Constructor Summary
Constructors Constructor Description TextFile.Builder()
Create a new Builder.
-
Method Summary
Modifier and Type Method Description TextFile.Builder
url(URI url)
Set the url of the text document. TextFile.Builder
url(String url)
Set the url of the text document. TextFile.Builder
base64Data(String base64Data)
Set the base64 data of the text document. TextFile.Builder
mimeType(String mimeType)
Set the mime type of the text document. TextFile
build()
Build the TextFile. -
-
Constructor Detail
-
TextFile.Builder
TextFile.Builder()
Create a new Builder.
-
-
Method Detail
-
url
TextFile.Builder url(URI url)
Set the url of the text document.
- Parameters:
url
- the url of the text document.- Returns:
this
-
url
TextFile.Builder url(String url)
Set the url of the text document.
- Parameters:
url
- the url of the text document.- Returns:
this
-
base64Data
TextFile.Builder base64Data(String base64Data)
Set the base64 data of the text document.
- Parameters:
base64Data
- the base64 data of the text document.- Returns:
this
-
mimeType
TextFile.Builder mimeType(String mimeType)
Set the mime type of the text document.
- Parameters:
mimeType
- the mime type of the text document.- Returns:
this
-
-
-
-