Package com.github.copilot.sdk.generated
Record Class AssistantMessageEvent.AssistantMessageEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.AssistantMessageEvent.AssistantMessageEventData
- Enclosing class:
- AssistantMessageEvent
public static record AssistantMessageEvent.AssistantMessageEventData(String messageId, String content, List<AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem> toolRequests, String reasoningOpaque, String reasoningText, String encryptedContent, String phase, Double outputTokens, String interactionId, String requestId, String parentToolCallId)
extends Record
Data payload for
AssistantMessageEvent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA tool invocation request from the assistant -
Constructor Summary
ConstructorsConstructorDescriptionAssistantMessageEventData(String messageId, String content, List<AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem> toolRequests, String reasoningOpaque, String reasoningText, String encryptedContent, String phase, Double outputTokens, String interactionId, String requestId, String parentToolCallId) Creates an instance of aAssistantMessageEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.Returns the value of theencryptedContentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinteractionIdrecord component.Returns the value of themessageIdrecord component.Returns the value of theoutputTokensrecord component.Returns the value of theparentToolCallIdrecord component.phase()Returns the value of thephaserecord component.Returns the value of thereasoningOpaquerecord component.Returns the value of thereasoningTextrecord component.Returns the value of therequestIdrecord component.Returns the value of thetoolRequestsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssistantMessageEventData
public AssistantMessageEventData(String messageId, String content, List<AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem> toolRequests, String reasoningOpaque, String reasoningText, String encryptedContent, String phase, Double outputTokens, String interactionId, String requestId, String parentToolCallId) Creates an instance of aAssistantMessageEventDatarecord class.- Parameters:
messageId- the value for themessageIdrecord componentcontent- the value for thecontentrecord componenttoolRequests- the value for thetoolRequestsrecord componentreasoningOpaque- the value for thereasoningOpaquerecord componentreasoningText- the value for thereasoningTextrecord componentencryptedContent- the value for theencryptedContentrecord componentphase- the value for thephaserecord componentoutputTokens- the value for theoutputTokensrecord componentinteractionId- the value for theinteractionIdrecord componentrequestId- the value for therequestIdrecord 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). -
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
toolRequests
public List<AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem> toolRequests()Returns the value of thetoolRequestsrecord component.- Returns:
- the value of the
toolRequestsrecord component
-
reasoningOpaque
Returns the value of thereasoningOpaquerecord component.- Returns:
- the value of the
reasoningOpaquerecord component
-
reasoningText
Returns the value of thereasoningTextrecord component.- Returns:
- the value of the
reasoningTextrecord component
-
encryptedContent
Returns the value of theencryptedContentrecord component.- Returns:
- the value of the
encryptedContentrecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
outputTokens
Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-
interactionId
Returns the value of theinteractionIdrecord component.- Returns:
- the value of the
interactionIdrecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
parentToolCallId
Returns the value of theparentToolCallIdrecord component.- Returns:
- the value of the
parentToolCallIdrecord component
-