Class SendMessageRequest

java.lang.Object
com.github.copilot.sdk.json.SendMessageRequest

public final class SendMessageRequest extends Object
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).

Since:
1.0.0
See Also:
  • Constructor Details

    • SendMessageRequest

      public SendMessageRequest()
  • Method Details

    • getSessionId

      public String getSessionId()
      Gets the session ID. @return the session ID
    • setSessionId

      public void setSessionId(String sessionId)
      Sets the session ID. @param sessionId the session ID
    • getPrompt

      public String getPrompt()
      Gets the message prompt. @return the prompt text
    • setPrompt

      public void setPrompt(String prompt)
      Sets the message prompt. @param prompt the prompt text
    • getAttachments

      public List<Attachment> getAttachments()
      Gets the attachments. @return the list of attachments
    • setAttachments

      public void setAttachments(List<Attachment> attachments)
      Sets the attachments. @param attachments the list of attachments
    • getMode

      public String getMode()
      Gets the mode. @return the message mode
    • setMode

      public void setMode(String mode)
      Sets the mode. @param mode the message mode