Package ai.vectros.types
Class TruncationWarningEvent
java.lang.Object
ai.vectros.types.TruncationWarningEvent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
-
Method Details
-
getEvent
- Returns:
- Backward-compatible alias of
type. Alwaystruncation_warning.
-
getResultsRequested
public int getResultsRequested()- Returns:
- The number of results retrieved before any were dropped.
-
getResultsUsed
public int getResultsUsed()- Returns:
- The number of results actually included in the prompt —
resultsRequestedminustruncatedCountminusnoContentCount.
-
getTruncatedCount
public int getTruncatedCount()- Returns:
- How many of the dropped results were cut for context-window budget reasons (lower-scoring overflow). 0 if none were.
-
getNoContentCount
public int getNoContentCount()- Returns:
- How many of the dropped results had no groundable text to include at all, independent of budget. 0 if none were.
-
getReason
- Returns:
- A single human-readable summary of why results were dropped:
context_window_budget(only the budget reason applied),no_groundable_content(only the no-content reason applied), orcontext_window_budget_and_no_content(both applied). A caller wanting exact attribution should readtruncatedCount/noContentCountdirectly rather than parse this field.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-