Package ai.vectros.types
Class TruncationWarningEvent.Builder
java.lang.Object
ai.vectros.types.TruncationWarningEvent.Builder
- All Implemented Interfaces:
TruncationWarningEvent._FinalStage,TruncationWarningEvent.EventStage,TruncationWarningEvent.ReasonStage,TruncationWarningEvent.ResultsRequestedStage,TruncationWarningEvent.ResultsUsedStage
- Enclosing class:
TruncationWarningEvent
public static final class TruncationWarningEvent.Builder
extends Object
implements TruncationWarningEvent.EventStage, TruncationWarningEvent.ResultsRequestedStage, TruncationWarningEvent.ResultsUsedStage, TruncationWarningEvent.ReasonStage, TruncationWarningEvent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()event(@NotNull TruncationWarningEventEvent event) Backward-compatible alias oftype.from(TruncationWarningEvent other) reason(@NotNull TruncationWarningEventReason reason) Why truncation occurred.resultsRequested(int resultsRequested) The number of results retrieved before truncation.resultsUsed(int resultsUsed) The number of results actually included in the prompt after dropping lower-scoring overflow.
-
Method Details
-
from
- Specified by:
fromin interfaceTruncationWarningEvent.EventStage
-
event
public TruncationWarningEvent.ResultsRequestedStage event(@NotNull @NotNull TruncationWarningEventEvent event) Backward-compatible alias of
type. Alwaystruncation_warning.Backward-compatible alias of
type. Alwaystruncation_warning.- Specified by:
eventin interfaceTruncationWarningEvent.EventStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resultsRequested
The number of results retrieved before truncation.
The number of results retrieved before truncation.
- Specified by:
resultsRequestedin interfaceTruncationWarningEvent.ResultsRequestedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resultsUsed
The number of results actually included in the prompt after dropping lower-scoring overflow.
The number of results actually included in the prompt after dropping lower-scoring overflow.
- Specified by:
resultsUsedin interfaceTruncationWarningEvent.ResultsUsedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
reason
public TruncationWarningEvent._FinalStage reason(@NotNull @NotNull TruncationWarningEventReason reason) Why truncation occurred. Currently only
context_window_budget(the results did not fit the model's context window).Why truncation occurred. Currently only
context_window_budget(the results did not fit the model's context window).- Specified by:
reasonin interfaceTruncationWarningEvent.ReasonStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
- Specified by:
buildin interfaceTruncationWarningEvent._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceTruncationWarningEvent._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceTruncationWarningEvent._FinalStage
-