Class AssistantMessageEvent.AssistantMessageData

java.lang.Object
com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
Enclosing class:
AssistantMessageEvent

public static class AssistantMessageEvent.AssistantMessageData extends Object
Contains the assistant message content and metadata.
  • Constructor Details

    • AssistantMessageData

      public AssistantMessageData()
  • Method Details

    • getMessageId

      public String getMessageId()
      Gets the unique message identifier.
      Returns:
      the message ID
    • setMessageId

      public void setMessageId(String messageId)
      Sets the message identifier.
      Parameters:
      messageId - the message ID
    • getContent

      public String getContent()
      Gets the text content of the assistant's message.
      Returns:
      the message content
    • setContent

      public void setContent(String content)
      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 null if none
    • setToolRequests

      public void setToolRequests(List<AssistantMessageEvent.AssistantMessageData.ToolRequest> toolRequests)
      Sets the tool requests.
      Parameters:
      toolRequests - the tool requests
    • getParentToolCallId

      public String 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

      public void setParentToolCallId(String parentToolCallId)
      Sets the parent tool call ID.
      Parameters:
      parentToolCallId - the parent tool call ID
    • getReasoningOpaque

      public String getReasoningOpaque()
      Gets the opaque reasoning content (encrypted/encoded).
      Returns:
      the opaque reasoning content, or null
    • setReasoningOpaque

      public void setReasoningOpaque(String reasoningOpaque)
      Sets the opaque reasoning content.
      Parameters:
      reasoningOpaque - the opaque reasoning content
    • getReasoningText

      public String getReasoningText()
      Gets the human-readable reasoning text.
      Returns:
      the reasoning text, or null
    • setReasoningText

      public void setReasoningText(String reasoningText)
      Sets the reasoning text.
      Parameters:
      reasoningText - the reasoning text
    • getEncryptedContent

      public String getEncryptedContent()
      Gets the encrypted content.
      Returns:
      the encrypted content, or null
    • setEncryptedContent

      public void setEncryptedContent(String encryptedContent)
      Sets the encrypted content.
      Parameters:
      encryptedContent - the encrypted content