Class SendMessageRequest
java.lang.Object
com.github.copilot.rpc.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).
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the per-message agent UI mode.Gets the attachments.Gets the display prompt.getMode()Gets the mode.Gets the message prompt.Gets the per-turn request headers.Gets the output format.Gets the session ID.Gets the message source.voidsetAgentMode(AgentMode agentMode) Sets the per-message agent UI mode.voidsetAttachments(List<MessageAttachment> attachments) Sets the attachments.voidsetDisplayPrompt(String displayPrompt) Sets the display prompt shown in the timeline instead of the prompt.voidSets the mode.voidSets the message prompt.voidsetRequestHeaders(Map<String, String> requestHeaders) Sets the per-turn request headers.voidsetResponseFormat(Map<String, Object> responseFormat) Sets the output format.voidsetSessionId(String sessionId) Sets the session ID.voidsetSource(MessageSource source) Sets the message source.
-
Constructor Details
-
SendMessageRequest
public SendMessageRequest()
-
-
Method Details
-
getResponseFormat
-
setResponseFormat
-
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 -
getSource
Gets the message source. @return the source, ornullif unset -
setSource
Sets the message source. @param source the source, ornullto omit it -
getAgentMode
Gets the per-message agent UI mode. @return the agent mode -
setAgentMode
Sets the per-message agent UI mode. @param agentMode the agent mode -
getRequestHeaders
-
setRequestHeaders
-
getDisplayPrompt
Gets the display prompt. @return the display prompt -
setDisplayPrompt
Sets the display prompt shown in the timeline instead of the prompt.- Parameters:
displayPrompt- the display prompt
-