Package com.github.copilot.sdk.generated
Record Class ToolExecutionCompleteEvent.ToolExecutionCompleteEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.ToolExecutionCompleteEvent.ToolExecutionCompleteEventData
- Enclosing class:
- ToolExecutionCompleteEvent
public static record ToolExecutionCompleteEvent.ToolExecutionCompleteEventData(String toolCallId, Boolean success, String model, String interactionId, Boolean isUserRequested, ToolExecutionCompleteEvent.ToolExecutionCompleteEventData.ToolExecutionCompleteEventDataResult result, ToolExecutionCompleteEvent.ToolExecutionCompleteEventData.ToolExecutionCompleteEventDataError error, Map<String,Object> toolTelemetry, String parentToolCallId)
extends Record
Data payload for
ToolExecutionCompleteEvent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordError details when the tool execution failedstatic final recordTool execution result on success -
Constructor Summary
ConstructorsConstructorDescriptionToolExecutionCompleteEventData(String toolCallId, Boolean success, String model, String interactionId, Boolean isUserRequested, ToolExecutionCompleteEvent.ToolExecutionCompleteEventData.ToolExecutionCompleteEventDataResult result, ToolExecutionCompleteEvent.ToolExecutionCompleteEventData.ToolExecutionCompleteEventDataError error, Map<String, Object> toolTelemetry, String parentToolCallId) Creates an instance of aToolExecutionCompleteEventDatarecord 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 theinteractionIdrecord component.Returns the value of theisUserRequestedrecord component.model()Returns the value of themodelrecord component.Returns the value of theparentToolCallIdrecord component.result()Returns the value of theresultrecord component.success()Returns the value of thesuccessrecord component.Returns the value of thetoolCallIdrecord component.Returns the value of thetoolTelemetryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToolExecutionCompleteEventData
public ToolExecutionCompleteEventData(String toolCallId, Boolean success, String model, String interactionId, Boolean isUserRequested, ToolExecutionCompleteEvent.ToolExecutionCompleteEventData.ToolExecutionCompleteEventDataResult result, ToolExecutionCompleteEvent.ToolExecutionCompleteEventData.ToolExecutionCompleteEventDataError error, Map<String, Object> toolTelemetry, String parentToolCallId) Creates an instance of aToolExecutionCompleteEventDatarecord class.- Parameters:
toolCallId- the value for thetoolCallIdrecord componentsuccess- the value for thesuccessrecord componentmodel- the value for themodelrecord componentinteractionId- the value for theinteractionIdrecord 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
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-
success
Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
interactionId
Returns the value of theinteractionIdrecord component.- Returns:
- the value of the
interactionIdrecord component
-
isUserRequested
Returns the value of theisUserRequestedrecord component.- Returns:
- the value of the
isUserRequestedrecord component
-
result
public ToolExecutionCompleteEvent.ToolExecutionCompleteEventData.ToolExecutionCompleteEventDataResult result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
error
public ToolExecutionCompleteEvent.ToolExecutionCompleteEventData.ToolExecutionCompleteEventDataError error()Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
toolTelemetry
Returns the value of thetoolTelemetryrecord component.- Returns:
- the value of the
toolTelemetryrecord component
-
parentToolCallId
Returns the value of theparentToolCallIdrecord component.- Returns:
- the value of the
parentToolCallIdrecord component
-