Class FilesRetrieveRequest.Builder
- java.lang.Object
-
- ai.extend.resources.files.requests.FilesRetrieveRequest.Builder
-
- Enclosing class:
- FilesRetrieveRequest
public static final class FilesRetrieveRequest.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilesRetrieveRequestbuild()FilesRetrieveRequest.BuilderextendWorkspaceId(java.lang.String extendWorkspaceId)FilesRetrieveRequest.BuilderextendWorkspaceId(java.util.Optional<java.lang.String> extendWorkspaceId)The workspace ID to target.FilesRetrieveRequest.Builderfrom(FilesRetrieveRequest other)FilesRetrieveRequest.Builderhtml(java.lang.Boolean html)FilesRetrieveRequest.Builderhtml(java.util.Optional<java.lang.Boolean> html)Deprecated: UsePOST /parse_runsinstead to parse file contents.FilesRetrieveRequest.Buildermarkdown(java.lang.Boolean markdown)FilesRetrieveRequest.Buildermarkdown(java.util.Optional<java.lang.Boolean> markdown)Deprecated: UsePOST /parse_runsinstead to parse file contents.FilesRetrieveRequest.BuilderrawText(java.lang.Boolean rawText)FilesRetrieveRequest.BuilderrawText(java.util.Optional<java.lang.Boolean> rawText)Deprecated: UsePOST /parse_runsinstead to parse file contents.
-
-
-
Method Detail
-
from
public FilesRetrieveRequest.Builder from(FilesRetrieveRequest other)
-
extendWorkspaceId
public FilesRetrieveRequest.Builder extendWorkspaceId(java.util.Optional<java.lang.String> extendWorkspaceId)
The workspace ID to target. Required when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See Authentication for details on API key scopes.
-
extendWorkspaceId
public FilesRetrieveRequest.Builder extendWorkspaceId(java.lang.String extendWorkspaceId)
-
rawText
public FilesRetrieveRequest.Builder rawText(java.util.Optional<java.lang.Boolean> rawText)
Deprecated: Use
POST /parse_runsinstead to parse file contents.If set to true, the raw text content of the file will be included in the response.
-
rawText
public FilesRetrieveRequest.Builder rawText(java.lang.Boolean rawText)
-
markdown
public FilesRetrieveRequest.Builder markdown(java.util.Optional<java.lang.Boolean> markdown)
Deprecated: Use
POST /parse_runsinstead to parse file contents.If set to true, the markdown content of the file will be included in the response.
Only available for files with a type of PDF, IMG, or DOCX files that were auto-converted to PDFs.
-
markdown
public FilesRetrieveRequest.Builder markdown(java.lang.Boolean markdown)
-
html
public FilesRetrieveRequest.Builder html(java.util.Optional<java.lang.Boolean> html)
Deprecated: Use
POST /parse_runsinstead to parse file contents.If set to true, the html content of the file will be included in the response.
Only available for files with a type of DOCX.
-
html
public FilesRetrieveRequest.Builder html(java.lang.Boolean html)
-
build
public FilesRetrieveRequest build()
-
-