Record Class PromptCacheBreakEvent.PromptCacheBreakEventData

java.lang.Object
java.lang.Record
com.github.copilot.generated.PromptCacheBreakEvent.PromptCacheBreakEventData
Enclosing class:
PromptCacheBreakEvent

public static record PromptCacheBreakEvent.PromptCacheBreakEventData(String primaryReason, List<String> contributingReasons, Object beforeRequest, Object afterRequest, Long survivedTokens, Long frontierTokens, Long shortfallTokens, Double retentionRatio, String modelFrom, String modelTo, List<String> toolsAdded, List<String> toolsRemoved, List<String> toolsRedefined, List<String> toolsAddedRaw, List<String> toolsRemovedRaw, List<String> toolsRedefinedRaw, Boolean toolsReordered, List<String> systemSegmentsChanged, List<String> cacheConfigChangedFields, Long rewriteMessageIndex, String rewriteShape, List<String> rewriteSource, String agentName) extends Record
Data payload for PromptCacheBreakEvent.
Since:
1.0.0
  • Constructor Details

    • PromptCacheBreakEventData

      public PromptCacheBreakEventData(String primaryReason, List<String> contributingReasons, Object beforeRequest, Object afterRequest, Long survivedTokens, Long frontierTokens, Long shortfallTokens, Double retentionRatio, String modelFrom, String modelTo, List<String> toolsAdded, List<String> toolsRemoved, List<String> toolsRedefined, List<String> toolsAddedRaw, List<String> toolsRemovedRaw, List<String> toolsRedefinedRaw, Boolean toolsReordered, List<String> systemSegmentsChanged, List<String> cacheConfigChangedFields, Long rewriteMessageIndex, String rewriteShape, List<String> rewriteSource, String agentName)
      Creates an instance of a PromptCacheBreakEventData record class.
      Parameters:
      primaryReason - the value for the primaryReason record component
      contributingReasons - the value for the contributingReasons record component
      beforeRequest - the value for the beforeRequest record component
      afterRequest - the value for the afterRequest record component
      survivedTokens - the value for the survivedTokens record component
      frontierTokens - the value for the frontierTokens record component
      shortfallTokens - the value for the shortfallTokens record component
      retentionRatio - the value for the retentionRatio record component
      modelFrom - the value for the modelFrom record component
      modelTo - the value for the modelTo record component
      toolsAdded - the value for the toolsAdded record component
      toolsRemoved - the value for the toolsRemoved record component
      toolsRedefined - the value for the toolsRedefined record component
      toolsAddedRaw - the value for the toolsAddedRaw record component
      toolsRemovedRaw - the value for the toolsRemovedRaw record component
      toolsRedefinedRaw - the value for the toolsRedefinedRaw record component
      toolsReordered - the value for the toolsReordered record component
      systemSegmentsChanged - the value for the systemSegmentsChanged record component
      cacheConfigChangedFields - the value for the cacheConfigChangedFields record component
      rewriteMessageIndex - the value for the rewriteMessageIndex record component
      rewriteShape - the value for the rewriteShape record component
      rewriteSource - the value for the rewriteSource record component
      agentName - the value for the agentName 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.
    • primaryReason

      public String primaryReason()
      Returns the value of the primaryReason record component.
      Returns:
      the value of the primaryReason record component
    • contributingReasons

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

      public Object beforeRequest()
      Returns the value of the beforeRequest record component.
      Returns:
      the value of the beforeRequest record component
    • afterRequest

      public Object afterRequest()
      Returns the value of the afterRequest record component.
      Returns:
      the value of the afterRequest record component
    • survivedTokens

      public Long survivedTokens()
      Returns the value of the survivedTokens record component.
      Returns:
      the value of the survivedTokens record component
    • frontierTokens

      public Long frontierTokens()
      Returns the value of the frontierTokens record component.
      Returns:
      the value of the frontierTokens record component
    • shortfallTokens

      public Long shortfallTokens()
      Returns the value of the shortfallTokens record component.
      Returns:
      the value of the shortfallTokens record component
    • retentionRatio

      public Double retentionRatio()
      Returns the value of the retentionRatio record component.
      Returns:
      the value of the retentionRatio record component
    • modelFrom

      public String modelFrom()
      Returns the value of the modelFrom record component.
      Returns:
      the value of the modelFrom record component
    • modelTo

      public String modelTo()
      Returns the value of the modelTo record component.
      Returns:
      the value of the modelTo record component
    • toolsAdded

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

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

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

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

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

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

      public Boolean toolsReordered()
      Returns the value of the toolsReordered record component.
      Returns:
      the value of the toolsReordered record component
    • systemSegmentsChanged

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

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

      public Long rewriteMessageIndex()
      Returns the value of the rewriteMessageIndex record component.
      Returns:
      the value of the rewriteMessageIndex record component
    • rewriteShape

      public String rewriteShape()
      Returns the value of the rewriteShape record component.
      Returns:
      the value of the rewriteShape record component
    • rewriteSource

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

      public String agentName()
      Returns the value of the agentName record component.
      Returns:
      the value of the agentName record component