Class TruncationWarningEvent

java.lang.Object
ai.vectros.types.TruncationWarningEvent

public final class TruncationWarningEvent extends Object
  • Method Details

    • getEvent

      public TruncationWarningEventEvent getEvent()
      Returns:
      Backward-compatible alias of type. Always truncation_warning.
    • getResultsRequested

      public int getResultsRequested()
      Returns:
      The number of results retrieved before truncation.
    • getResultsUsed

      public int getResultsUsed()
      Returns:
      The number of results actually included in the prompt after dropping lower-scoring overflow.
    • getReason

      public TruncationWarningEventReason getReason()
      Returns:
      Why truncation occurred. Currently only context_window_budget (the results did not fit the model's context window).
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static TruncationWarningEvent.EventStage builder()