Record Class AgentInterruptedEvent.AgentInterruptedEventData

java.lang.Object
java.lang.Record
com.github.copilot.generated.AgentInterruptedEvent.AgentInterruptedEventData
Enclosing class:
AgentInterruptedEvent

public static record AgentInterruptedEvent.AgentInterruptedEventData(AgentInterruptedActivity activity, Double elapsedMs, Long turn, String model, String apiEndpoint, ModelCallFailureTransport transport, String reasoningEffort, AgentInterruptedCancelPhase cancelPhase, Double outputTtftMs, List<String> toolNames, List<String> toolCallIds, List<String> safeToolNames, Long interruptedAgentCount) extends Record
Data payload for AgentInterruptedEvent.
Since:
1.0.0
  • Constructor Details

    • AgentInterruptedEventData

      public AgentInterruptedEventData(AgentInterruptedActivity activity, Double elapsedMs, Long turn, String model, String apiEndpoint, ModelCallFailureTransport transport, String reasoningEffort, AgentInterruptedCancelPhase cancelPhase, Double outputTtftMs, List<String> toolNames, List<String> toolCallIds, List<String> safeToolNames, Long interruptedAgentCount)
      Creates an instance of a AgentInterruptedEventData record class.
      Parameters:
      activity - the value for the activity record component
      elapsedMs - the value for the elapsedMs record component
      turn - the value for the turn record component
      model - the value for the model record component
      apiEndpoint - the value for the apiEndpoint record component
      transport - the value for the transport record component
      reasoningEffort - the value for the reasoningEffort record component
      cancelPhase - the value for the cancelPhase record component
      outputTtftMs - the value for the outputTtftMs record component
      toolNames - the value for the toolNames record component
      toolCallIds - the value for the toolCallIds record component
      safeToolNames - the value for the safeToolNames record component
      interruptedAgentCount - the value for the interruptedAgentCount 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.
    • activity

      public AgentInterruptedActivity activity()
      Returns the value of the activity record component.
      Returns:
      the value of the activity record component
    • elapsedMs

      public Double elapsedMs()
      Returns the value of the elapsedMs record component.
      Returns:
      the value of the elapsedMs record component
    • turn

      public Long turn()
      Returns the value of the turn record component.
      Returns:
      the value of the turn record component
    • model

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

      public String apiEndpoint()
      Returns the value of the apiEndpoint record component.
      Returns:
      the value of the apiEndpoint record component
    • transport

      public ModelCallFailureTransport transport()
      Returns the value of the transport record component.
      Returns:
      the value of the transport record component
    • reasoningEffort

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

      public AgentInterruptedCancelPhase cancelPhase()
      Returns the value of the cancelPhase record component.
      Returns:
      the value of the cancelPhase record component
    • outputTtftMs

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

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

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

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

      public Long interruptedAgentCount()
      Returns the value of the interruptedAgentCount record component.
      Returns:
      the value of the interruptedAgentCount record component