Record Class AssistantUsageEvent.AssistantUsageEventData

java.lang.Object
java.lang.Record
com.github.copilot.generated.AssistantUsageEvent.AssistantUsageEventData
Enclosing class:
AssistantUsageEvent

public static record AssistantUsageEvent.AssistantUsageEventData(AiCreditsStatus aiCreditsStatus, String model, ModelProviderRef provider, String modelDisplayName, UsageAccountingIdentity accounting, Long inputTokens, Long outputTokens, Long cacheReadTokens, Long cacheWriteTokens, OffsetDateTime cacheExpiresAt, Long reasoningTokens, Long thinkingDroppedBlocks, List<String> thinkingDroppedReasons, Double cost, Long duration, Double timeToFirstTokenMs, Double outputTtftMs, Double interTokenLatencyMs, String initiator, String interactionType, Boolean isByok, String byokKind, String modelProvider, Boolean isAuto, Long maxPromptTokens, Long maxOutputTokens, Long acceptedPredictionTokens, Long rejectedPredictionTokens, AssistantUsageTransport transport, Long requestBodyBytes, Long requestBodyWireBytes, ModelCallRequestBodyEncoding requestBodyEncoding, ModelCallWebSocketFallbackReason websocketFallbackReason, Long websocketFallbackAfterMs, ModelCallWebSocketFallbackErrorKind websocketFallbackErrorKind, Long websocketFallbackStatusCode, Long websocketFallbackCloseCode, Boolean websocketFallbackReconnectAttempted, Boolean websocketFallbackStartedThisCall, String apiCallId, String providerCallId, String serviceRequestId, Boolean rte, AssistantUsageApiEndpoint apiEndpoint, String parentToolCallId, Map<String, AssistantUsageQuotaSnapshot> quotaSnapshots, AssistantUsageCopilotUsage copilotUsage, String reasoningEffort, ReasoningSummary reasoningSummary, Long availableToolCount, Long toolTokenCount, String frontierSource, Long cacheTtlSeconds, Boolean cacheDetailsReported, Long numToolCalls, Map<String,Long> toolCounts, String finishReason, Boolean contentFilterTriggered, FusionAttribution fusion) extends Record
Data payload for AssistantUsageEvent.
Since:
1.0.0
  • Constructor Details

    • AssistantUsageEventData

      public AssistantUsageEventData(AiCreditsStatus aiCreditsStatus, String model, ModelProviderRef provider, String modelDisplayName, UsageAccountingIdentity accounting, Long inputTokens, Long outputTokens, Long cacheReadTokens, Long cacheWriteTokens, OffsetDateTime cacheExpiresAt, Long reasoningTokens, Long thinkingDroppedBlocks, List<String> thinkingDroppedReasons, Double cost, Long duration, Double timeToFirstTokenMs, Double outputTtftMs, Double interTokenLatencyMs, String initiator, String interactionType, Boolean isByok, String byokKind, String modelProvider, Boolean isAuto, Long maxPromptTokens, Long maxOutputTokens, Long acceptedPredictionTokens, Long rejectedPredictionTokens, AssistantUsageTransport transport, Long requestBodyBytes, Long requestBodyWireBytes, ModelCallRequestBodyEncoding requestBodyEncoding, ModelCallWebSocketFallbackReason websocketFallbackReason, Long websocketFallbackAfterMs, ModelCallWebSocketFallbackErrorKind websocketFallbackErrorKind, Long websocketFallbackStatusCode, Long websocketFallbackCloseCode, Boolean websocketFallbackReconnectAttempted, Boolean websocketFallbackStartedThisCall, String apiCallId, String providerCallId, String serviceRequestId, Boolean rte, AssistantUsageApiEndpoint apiEndpoint, String parentToolCallId, Map<String, AssistantUsageQuotaSnapshot> quotaSnapshots, AssistantUsageCopilotUsage copilotUsage, String reasoningEffort, ReasoningSummary reasoningSummary, Long availableToolCount, Long toolTokenCount, String frontierSource, Long cacheTtlSeconds, Boolean cacheDetailsReported, Long numToolCalls, Map<String,Long> toolCounts, String finishReason, Boolean contentFilterTriggered, FusionAttribution fusion)
      Creates an instance of a AssistantUsageEventData record class.
      Parameters:
      aiCreditsStatus - the value for the aiCreditsStatus record component
      model - the value for the model record component
      provider - the value for the provider record component
      modelDisplayName - the value for the modelDisplayName record component
      accounting - the value for the accounting record component
      inputTokens - the value for the inputTokens record component
      outputTokens - the value for the outputTokens record component
      cacheReadTokens - the value for the cacheReadTokens record component
      cacheWriteTokens - the value for the cacheWriteTokens record component
      cacheExpiresAt - the value for the cacheExpiresAt record component
      reasoningTokens - the value for the reasoningTokens record component
      thinkingDroppedBlocks - the value for the thinkingDroppedBlocks record component
      thinkingDroppedReasons - the value for the thinkingDroppedReasons record component
      cost - the value for the cost record component
      duration - the value for the duration record component
      timeToFirstTokenMs - the value for the timeToFirstTokenMs record component
      outputTtftMs - the value for the outputTtftMs record component
      interTokenLatencyMs - the value for the interTokenLatencyMs record component
      initiator - the value for the initiator record component
      interactionType - the value for the interactionType record component
      isByok - the value for the isByok record component
      byokKind - the value for the byokKind record component
      modelProvider - the value for the modelProvider record component
      isAuto - the value for the isAuto record component
      maxPromptTokens - the value for the maxPromptTokens record component
      maxOutputTokens - the value for the maxOutputTokens record component
      acceptedPredictionTokens - the value for the acceptedPredictionTokens record component
      rejectedPredictionTokens - the value for the rejectedPredictionTokens record component
      transport - the value for the transport record component
      requestBodyBytes - the value for the requestBodyBytes record component
      requestBodyWireBytes - the value for the requestBodyWireBytes record component
      requestBodyEncoding - the value for the requestBodyEncoding record component
      websocketFallbackReason - the value for the websocketFallbackReason record component
      websocketFallbackAfterMs - the value for the websocketFallbackAfterMs record component
      websocketFallbackErrorKind - the value for the websocketFallbackErrorKind record component
      websocketFallbackStatusCode - the value for the websocketFallbackStatusCode record component
      websocketFallbackCloseCode - the value for the websocketFallbackCloseCode record component
      websocketFallbackReconnectAttempted - the value for the websocketFallbackReconnectAttempted record component
      websocketFallbackStartedThisCall - the value for the websocketFallbackStartedThisCall record component
      apiCallId - the value for the apiCallId record component
      providerCallId - the value for the providerCallId record component
      serviceRequestId - the value for the serviceRequestId record component
      rte - the value for the rte record component
      apiEndpoint - the value for the apiEndpoint record component
      parentToolCallId - the value for the parentToolCallId record component
      quotaSnapshots - the value for the quotaSnapshots record component
      copilotUsage - the value for the copilotUsage record component
      reasoningEffort - the value for the reasoningEffort record component
      reasoningSummary - the value for the reasoningSummary record component
      availableToolCount - the value for the availableToolCount record component
      toolTokenCount - the value for the toolTokenCount record component
      frontierSource - the value for the frontierSource record component
      cacheTtlSeconds - the value for the cacheTtlSeconds record component
      cacheDetailsReported - the value for the cacheDetailsReported record component
      numToolCalls - the value for the numToolCalls record component
      toolCounts - the value for the toolCounts record component
      finishReason - the value for the finishReason record component
      contentFilterTriggered - the value for the contentFilterTriggered record component
      fusion - the value for the fusion record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • aiCreditsStatus

      public AiCreditsStatus aiCreditsStatus()
      Returns the value of the aiCreditsStatus record component.
      Returns:
      the value of the aiCreditsStatus record component
    • model

      public String model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • provider

      public ModelProviderRef provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component
    • modelDisplayName

      public String modelDisplayName()
      Returns the value of the modelDisplayName record component.
      Returns:
      the value of the modelDisplayName record component
    • accounting

      public UsageAccountingIdentity accounting()
      Returns the value of the accounting record component.
      Returns:
      the value of the accounting record component
    • inputTokens

      public Long inputTokens()
      Returns the value of the inputTokens record component.
      Returns:
      the value of the inputTokens record component
    • outputTokens

      public Long outputTokens()
      Returns the value of the outputTokens record component.
      Returns:
      the value of the outputTokens record component
    • cacheReadTokens

      public Long cacheReadTokens()
      Returns the value of the cacheReadTokens record component.
      Returns:
      the value of the cacheReadTokens record component
    • cacheWriteTokens

      public Long cacheWriteTokens()
      Returns the value of the cacheWriteTokens record component.
      Returns:
      the value of the cacheWriteTokens record component
    • cacheExpiresAt

      public OffsetDateTime cacheExpiresAt()
      Returns the value of the cacheExpiresAt record component.
      Returns:
      the value of the cacheExpiresAt record component
    • reasoningTokens

      public Long reasoningTokens()
      Returns the value of the reasoningTokens record component.
      Returns:
      the value of the reasoningTokens record component
    • thinkingDroppedBlocks

      public Long thinkingDroppedBlocks()
      Returns the value of the thinkingDroppedBlocks record component.
      Returns:
      the value of the thinkingDroppedBlocks record component
    • thinkingDroppedReasons

      public List<String> thinkingDroppedReasons()
      Returns the value of the thinkingDroppedReasons record component.
      Returns:
      the value of the thinkingDroppedReasons record component
    • cost

      Returns the value of the cost record component.
      Returns:
      the value of the cost record component
    • duration

      public Long duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • timeToFirstTokenMs

      public Double timeToFirstTokenMs()
      Returns the value of the timeToFirstTokenMs record component.
      Returns:
      the value of the timeToFirstTokenMs record component
    • outputTtftMs

      public Double outputTtftMs()
      Returns the value of the outputTtftMs record component.
      Returns:
      the value of the outputTtftMs record component
    • interTokenLatencyMs

      public Double interTokenLatencyMs()
      Returns the value of the interTokenLatencyMs record component.
      Returns:
      the value of the interTokenLatencyMs record component
    • initiator

      public String initiator()
      Returns the value of the initiator record component.
      Returns:
      the value of the initiator record component
    • interactionType

      public String interactionType()
      Returns the value of the interactionType record component.
      Returns:
      the value of the interactionType record component
    • isByok

      public Boolean isByok()
      Returns the value of the isByok record component.
      Returns:
      the value of the isByok record component
    • byokKind

      public String byokKind()
      Returns the value of the byokKind record component.
      Returns:
      the value of the byokKind record component
    • modelProvider

      public String modelProvider()
      Returns the value of the modelProvider record component.
      Returns:
      the value of the modelProvider record component
    • isAuto

      public Boolean isAuto()
      Returns the value of the isAuto record component.
      Returns:
      the value of the isAuto record component
    • maxPromptTokens

      public Long maxPromptTokens()
      Returns the value of the maxPromptTokens record component.
      Returns:
      the value of the maxPromptTokens record component
    • maxOutputTokens

      public Long maxOutputTokens()
      Returns the value of the maxOutputTokens record component.
      Returns:
      the value of the maxOutputTokens record component
    • acceptedPredictionTokens

      public Long acceptedPredictionTokens()
      Returns the value of the acceptedPredictionTokens record component.
      Returns:
      the value of the acceptedPredictionTokens record component
    • rejectedPredictionTokens

      public Long rejectedPredictionTokens()
      Returns the value of the rejectedPredictionTokens record component.
      Returns:
      the value of the rejectedPredictionTokens record component
    • transport

      public AssistantUsageTransport transport()
      Returns the value of the transport record component.
      Returns:
      the value of the transport record component
    • requestBodyBytes

      public Long requestBodyBytes()
      Returns the value of the requestBodyBytes record component.
      Returns:
      the value of the requestBodyBytes record component
    • requestBodyWireBytes

      public Long requestBodyWireBytes()
      Returns the value of the requestBodyWireBytes record component.
      Returns:
      the value of the requestBodyWireBytes record component
    • requestBodyEncoding

      public ModelCallRequestBodyEncoding requestBodyEncoding()
      Returns the value of the requestBodyEncoding record component.
      Returns:
      the value of the requestBodyEncoding record component
    • websocketFallbackReason

      public ModelCallWebSocketFallbackReason websocketFallbackReason()
      Returns the value of the websocketFallbackReason record component.
      Returns:
      the value of the websocketFallbackReason record component
    • websocketFallbackAfterMs

      public Long websocketFallbackAfterMs()
      Returns the value of the websocketFallbackAfterMs record component.
      Returns:
      the value of the websocketFallbackAfterMs record component
    • websocketFallbackErrorKind

      public ModelCallWebSocketFallbackErrorKind websocketFallbackErrorKind()
      Returns the value of the websocketFallbackErrorKind record component.
      Returns:
      the value of the websocketFallbackErrorKind record component
    • websocketFallbackStatusCode

      public Long websocketFallbackStatusCode()
      Returns the value of the websocketFallbackStatusCode record component.
      Returns:
      the value of the websocketFallbackStatusCode record component
    • websocketFallbackCloseCode

      public Long websocketFallbackCloseCode()
      Returns the value of the websocketFallbackCloseCode record component.
      Returns:
      the value of the websocketFallbackCloseCode record component
    • websocketFallbackReconnectAttempted

      public Boolean websocketFallbackReconnectAttempted()
      Returns the value of the websocketFallbackReconnectAttempted record component.
      Returns:
      the value of the websocketFallbackReconnectAttempted record component
    • websocketFallbackStartedThisCall

      public Boolean websocketFallbackStartedThisCall()
      Returns the value of the websocketFallbackStartedThisCall record component.
      Returns:
      the value of the websocketFallbackStartedThisCall record component
    • apiCallId

      public String apiCallId()
      Returns the value of the apiCallId record component.
      Returns:
      the value of the apiCallId record component
    • providerCallId

      public String providerCallId()
      Returns the value of the providerCallId record component.
      Returns:
      the value of the providerCallId record component
    • serviceRequestId

      public String serviceRequestId()
      Returns the value of the serviceRequestId record component.
      Returns:
      the value of the serviceRequestId record component
    • rte

      public Boolean rte()
      Returns the value of the rte record component.
      Returns:
      the value of the rte record component
    • apiEndpoint

      public AssistantUsageApiEndpoint apiEndpoint()
      Returns the value of the apiEndpoint record component.
      Returns:
      the value of the apiEndpoint record component
    • parentToolCallId

      public String parentToolCallId()
      Returns the value of the parentToolCallId record component.
      Returns:
      the value of the parentToolCallId record component
    • quotaSnapshots

      public Map<String, AssistantUsageQuotaSnapshot> quotaSnapshots()
      Returns the value of the quotaSnapshots record component.
      Returns:
      the value of the quotaSnapshots record component
    • copilotUsage

      public AssistantUsageCopilotUsage copilotUsage()
      Returns the value of the copilotUsage record component.
      Returns:
      the value of the copilotUsage record component
    • reasoningEffort

      public String reasoningEffort()
      Returns the value of the reasoningEffort record component.
      Returns:
      the value of the reasoningEffort record component
    • reasoningSummary

      public ReasoningSummary reasoningSummary()
      Returns the value of the reasoningSummary record component.
      Returns:
      the value of the reasoningSummary record component
    • availableToolCount

      public Long availableToolCount()
      Returns the value of the availableToolCount record component.
      Returns:
      the value of the availableToolCount record component
    • toolTokenCount

      public Long toolTokenCount()
      Returns the value of the toolTokenCount record component.
      Returns:
      the value of the toolTokenCount record component
    • frontierSource

      public String frontierSource()
      Returns the value of the frontierSource record component.
      Returns:
      the value of the frontierSource record component
    • cacheTtlSeconds

      public Long cacheTtlSeconds()
      Returns the value of the cacheTtlSeconds record component.
      Returns:
      the value of the cacheTtlSeconds record component
    • cacheDetailsReported

      public Boolean cacheDetailsReported()
      Returns the value of the cacheDetailsReported record component.
      Returns:
      the value of the cacheDetailsReported record component
    • numToolCalls

      public Long numToolCalls()
      Returns the value of the numToolCalls record component.
      Returns:
      the value of the numToolCalls record component
    • toolCounts

      public Map<String,Long> toolCounts()
      Returns the value of the toolCounts record component.
      Returns:
      the value of the toolCounts record component
    • finishReason

      public String finishReason()
      Returns the value of the finishReason record component.
      Returns:
      the value of the finishReason record component
    • contentFilterTriggered

      public Boolean contentFilterTriggered()
      Returns the value of the contentFilterTriggered record component.
      Returns:
      the value of the contentFilterTriggered record component
    • fusion

      Returns the value of the fusion record component.
      Returns:
      the value of the fusion record component