Package ai.extend.types
Class FileContents.Builder
- java.lang.Object
-
- ai.extend.types.FileContents.Builder
-
- Enclosing class:
- FileContents
public static final class FileContents.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileContentsbuild()FileContents.Builderfrom(FileContents other)FileContents.Buildermarkdown(java.lang.String markdown)FileContents.Buildermarkdown(java.util.Optional<java.lang.String> markdown)Cleaned and structured markdown content of the entire file.FileContents.Builderpages(java.util.List<FileContentsPagesItem> pages)FileContents.Builderpages(java.util.Optional<java.util.List<FileContentsPagesItem>> pages)FileContents.BuilderrawText(java.lang.String rawText)FileContents.BuilderrawText(java.util.Optional<java.lang.String> rawText)The raw text content of the file.FileContents.Buildersheets(java.util.List<FileContentsSheetsItem> sheets)FileContents.Buildersheets(java.util.Optional<java.util.List<FileContentsSheetsItem>> sheets)
-
-
-
Method Detail
-
from
public FileContents.Builder from(FileContents other)
-
rawText
public FileContents.Builder rawText(java.util.Optional<java.lang.String> rawText)
The raw text content of the file. This is included for all file types if the
rawTextquery parameter is set to true in the endpoint request.
-
rawText
public FileContents.Builder rawText(java.lang.String rawText)
-
markdown
public FileContents.Builder markdown(java.util.Optional<java.lang.String> markdown)
Cleaned and structured markdown content of the entire file. Available for PDF and IMG file types. Only included if the
markdownquery parameter is set to true in the endpoint request.
-
markdown
public FileContents.Builder markdown(java.lang.String markdown)
-
pages
public FileContents.Builder pages(java.util.Optional<java.util.List<FileContentsPagesItem>> pages)
-
pages
public FileContents.Builder pages(java.util.List<FileContentsPagesItem> pages)
-
sheets
public FileContents.Builder sheets(java.util.Optional<java.util.List<FileContentsSheetsItem>> sheets)
-
sheets
public FileContents.Builder sheets(java.util.List<FileContentsSheetsItem> sheets)
-
build
public FileContents build()
-
-