Package com.github.copilot.sdk.json
Class SendMessageRequest
java.lang.Object
com.github.copilot.sdk.json.SendMessageRequest
Internal request object for sending a message to a session.
This is a low-level class for JSON-RPC communication. For sending messages,
use CopilotSession.send(String) or
CopilotSession.sendAndWait(String).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the attachments.getMode()Gets the mode.Gets the message prompt.Gets the session ID.voidsetAttachments(List<Attachment> attachments) Sets the attachments.voidSets the mode.voidSets the message prompt.voidsetSessionId(String sessionId) Sets the session ID.
-
Constructor Details
-
SendMessageRequest
public SendMessageRequest()
-
-
Method Details
-
getSessionId
Gets the session ID. @return the session ID -
setSessionId
Sets the session ID. @param sessionId the session ID -
getPrompt
Gets the message prompt. @return the prompt text -
setPrompt
Sets the message prompt. @param prompt the prompt text -
getAttachments
Gets the attachments. @return the list of attachments -
setAttachments
Sets the attachments. @param attachments the list of attachments -
getMode
Gets the mode. @return the message mode -
setMode
Sets the mode. @param mode the message mode
-