Package ai.vectros.types
Class DocumentContextEvent.Builder
java.lang.Object
ai.vectros.types.DocumentContextEvent.Builder
- All Implemented Interfaces:
DocumentContextEvent._FinalStage,DocumentContextEvent.DocumentIdStage,DocumentContextEvent.EventStage,DocumentContextEvent.ModelStage,DocumentContextEvent.TextBytesStage
- Enclosing class:
DocumentContextEvent
public static final class DocumentContextEvent.Builder
extends Object
implements DocumentContextEvent.EventStage, DocumentContextEvent.DocumentIdStage, DocumentContextEvent.TextBytesStage, DocumentContextEvent.ModelStage, DocumentContextEvent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()documentId(@NotNull String documentId) The identifier of the document whose text was loaded as context.event(@NotNull DocumentContextEventEvent event) Backward-compatible alias oftype.from(DocumentContextEvent other) The model alias used to answer this request.textBytes(long textBytes) The size of the extracted document text, in bytes.The display title you supplied for the document, if any.The display title you supplied for the document, if any.
-
Method Details
-
from
- Specified by:
fromin interfaceDocumentContextEvent.EventStage
-
event
public DocumentContextEvent.DocumentIdStage event(@NotNull @NotNull DocumentContextEventEvent event) Backward-compatible alias of
type. Alwaysdocument_context.Backward-compatible alias of
type. Alwaysdocument_context.- Specified by:
eventin interfaceDocumentContextEvent.EventStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
documentId
The identifier of the document whose text was loaded as context.
The identifier of the document whose text was loaded as context.
- Specified by:
documentIdin interfaceDocumentContextEvent.DocumentIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
textBytes
The size of the extracted document text, in bytes.
The size of the extracted document text, in bytes.
- Specified by:
textBytesin interfaceDocumentContextEvent.TextBytesStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
The model alias used to answer this request.
The model alias used to answer this request.
- Specified by:
modelin interfaceDocumentContextEvent.ModelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
The display title you supplied for the document, if any.
- Specified by:
titlein interfaceDocumentContextEvent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
The display title you supplied for the document, if any.
- Specified by:
titlein interfaceDocumentContextEvent._FinalStage
-
build
- Specified by:
buildin interfaceDocumentContextEvent._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceDocumentContextEvent._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceDocumentContextEvent._FinalStage
-