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