Package com.github.copilot.sdk.events
Record Class ToolExecutionCompleteEvent.ToolExecutionCompleteData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
- Enclosing class:
- ToolExecutionCompleteEvent
public static record ToolExecutionCompleteEvent.ToolExecutionCompleteData(String toolCallId, boolean success, Boolean isUserRequested, ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result result, ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error error, Map<String,Object> toolTelemetry, String parentToolCallId)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionToolExecutionCompleteData(String toolCallId, boolean success, Boolean isUserRequested, ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result result, ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error error, Map<String, Object> toolTelemetry, String parentToolCallId) Creates an instance of aToolExecutionCompleteDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theisUserRequestedrecord component.Returns the value of theparentToolCallIdrecord component.result()Returns the value of theresultrecord component.booleansuccess()Returns the value of thesuccessrecord component.Returns the value of thetoolCallIdrecord component.Returns a defensive copy of the tool telemetry map.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToolExecutionCompleteData
public ToolExecutionCompleteData(String toolCallId, boolean success, Boolean isUserRequested, ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result result, ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error error, Map<String, Object> toolTelemetry, String parentToolCallId) Creates an instance of aToolExecutionCompleteDatarecord class.- Parameters:
toolCallId- the value for thetoolCallIdrecord componentsuccess- the value for thesuccessrecord componentisUserRequested- the value for theisUserRequestedrecord componentresult- the value for theresultrecord componenterror- the value for theerrorrecord componenttoolTelemetry- the value for thetoolTelemetryrecord componentparentToolCallId- the value for theparentToolCallIdrecord component
-
-
Method Details
-
toolTelemetry
Returns a defensive copy of the tool telemetry map. -
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. -
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. -
equals
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
isUserRequested
Returns the value of theisUserRequestedrecord component.- Returns:
- the value of the
isUserRequestedrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
parentToolCallId
Returns the value of theparentToolCallIdrecord component.- Returns:
- the value of the
parentToolCallIdrecord component
-