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 unique message identifier.Gets the parent tool call ID if this message is in response to a tool.Gets the list of tool requests made by the assistant.voidsetContent(String content) Sets the message content.voidsetMessageId(String messageId) Sets the message identifier.voidsetParentToolCallId(String parentToolCallId) Sets the parent tool call ID.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
-