Package com.github.copilot.sdk.events
Class AssistantMessageEvent.AssistantMessageData
java.lang.Object
com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
- Enclosing class:
- AssistantMessageEvent
Contains the assistant message content and metadata.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a request from the assistant to invoke a tool. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the text content of the assistant's message.Gets the encrypted content.Gets the unique message identifier.Gets the parent tool call ID if this message is in response to a tool.Gets the opaque reasoning content (encrypted/encoded).Gets the human-readable reasoning text.Gets the list of tool requests made by the assistant.voidsetContent(String content) Sets the message content.voidsetEncryptedContent(String encryptedContent) Sets the encrypted content.voidsetMessageId(String messageId) Sets the message identifier.voidsetParentToolCallId(String parentToolCallId) Sets the parent tool call ID.voidsetReasoningOpaque(String reasoningOpaque) Sets the opaque reasoning content.voidsetReasoningText(String reasoningText) Sets the reasoning text.voidSets the tool requests.
-
Constructor Details
-
AssistantMessageData
public AssistantMessageData()
-
-
Method Details
-
getMessageId
Gets the unique message identifier.- Returns:
- the message ID
-
setMessageId
Sets the message identifier.- Parameters:
messageId- the message ID
-
getContent
Gets the text content of the assistant's message.- Returns:
- the message content
-
setContent
Sets the message content.- Parameters:
content- the message content
-
getToolRequests
Gets the list of tool requests made by the assistant.- Returns:
- the tool requests, or
nullif none
-
setToolRequests
public void setToolRequests(List<AssistantMessageEvent.AssistantMessageData.ToolRequest> toolRequests) Sets the tool requests.- Parameters:
toolRequests- the tool requests
-
getParentToolCallId
Gets the parent tool call ID if this message is in response to a tool.- Returns:
- the parent tool call ID, or
null
-
setParentToolCallId
Sets the parent tool call ID.- Parameters:
parentToolCallId- the parent tool call ID
-
getReasoningOpaque
Gets the opaque reasoning content (encrypted/encoded).- Returns:
- the opaque reasoning content, or
null
-
setReasoningOpaque
Sets the opaque reasoning content.- Parameters:
reasoningOpaque- the opaque reasoning content
-
getReasoningText
Gets the human-readable reasoning text.- Returns:
- the reasoning text, or
null
-
setReasoningText
Sets the reasoning text.- Parameters:
reasoningText- the reasoning text
-
getEncryptedContent
Gets the encrypted content.- Returns:
- the encrypted content, or
null
-
setEncryptedContent
Sets the encrypted content.- Parameters:
encryptedContent- the encrypted content
-