Package dev.langchain4j.data.text
Class TextFile.Builder
-
- All Implemented Interfaces:
public class TextFile.BuilderBuilder for TextFile.
-
-
Constructor Summary
Constructors Constructor Description TextFile.Builder()Create a new Builder.
-
Method Summary
Modifier and Type Method Description TextFile.Builderurl(URI url)Set the url of the text document. TextFile.Builderurl(String url)Set the url of the text document. TextFile.Builderbase64Data(String base64Data)Set the base64 data of the text document. TextFile.BuildermimeType(String mimeType)Set the mime type of the text document. TextFilebuild()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
-
-
-
-