Class DoneEvent

java.lang.Object
ai.vectros.types.DoneEvent

public final class DoneEvent extends Object
  • Method Details

    • getEvent

      public DoneEventEvent getEvent()
      Returns:
      Backward-compatible alias of type. Always done.
    • getInputTokens

      public int getInputTokens()
      Returns:
      Total input tokens consumed by the model, including the system prompt and all messages.
    • getOutputTokens

      public int getOutputTokens()
      Returns:
      Total output tokens generated by the model.
    • getModel

      public String getModel()
      Returns:
      The model alias used for this call.
    • getPlatformCreditsCharged

      public double getPlatformCreditsCharged()
      Returns:
      Credits debited from your monthly plan allowance for this call's per-call platform overhead. One credit equals one cent.
    • getInferenceBalanceCentsCharged

      public long getInferenceBalanceCentsCharged()
      Returns:
      Cents debited from your pre-paid inference balance for the model's token cost.
    • getCacheReadTokens

      public Optional<Integer> getCacheReadTokens()
      Returns:
      Number of input tokens served from the prompt cache. Present only when prompt caching applied to this call. Prompt caching is not yet used; this field is reserved for forward compatibility.
    • getCacheCreateTokens

      public Optional<Integer> getCacheCreateTokens()
      Returns:
      Number of tokens written to the prompt cache. Present only when prompt caching applied to this call. Prompt caching is not yet used; this field is reserved for forward compatibility.
    • 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 DoneEvent.EventStage builder()