Record Class SessionSendMessagesParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionSendMessagesParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionSendMessagesParams(String sessionId, List<SendMessageItem> messages, SendMode mode, Boolean prepend, SendAgentMode agentMode, Map<String,String> requestHeaders, String traceparent, String tracestate, Boolean wait_)
extends Record
Parameters for sending zero or more user messages to the session in a single turn. Remote-backed (Mission Control) sessions do not support this method and will return an error.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionSendMessagesParams(String sessionId, List<SendMessageItem> messages, SendMode mode, Boolean prepend, SendAgentMode agentMode, Map<String, String> requestHeaders, String traceparent, String tracestate, Boolean wait_) Creates an instance of aSessionSendMessagesParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.mode()Returns the value of themoderecord component.prepend()Returns the value of theprependrecord component.Returns the value of therequestHeadersrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetraceparentrecord component.Returns the value of thetracestaterecord component.wait_()Returns the value of thewait_record component.
-
Constructor Details
-
SessionSendMessagesParams
public SessionSendMessagesParams(String sessionId, List<SendMessageItem> messages, SendMode mode, Boolean prepend, SendAgentMode agentMode, Map<String, String> requestHeaders, String traceparent, String tracestate, Boolean wait_) Creates an instance of aSessionSendMessagesParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentmessages- the value for themessagesrecord componentmode- the value for themoderecord componentprepend- the value for theprependrecord componentagentMode- the value for theagentModerecord componentrequestHeaders- the value for therequestHeadersrecord componenttraceparent- the value for thetraceparentrecord componenttracestate- the value for thetracestaterecord componentwait_- the value for thewait_record component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
prepend
Returns the value of theprependrecord component.- Returns:
- the value of the
prependrecord component
-
agentMode
Returns the value of theagentModerecord component.- Returns:
- the value of the
agentModerecord component
-
requestHeaders
-
traceparent
Returns the value of thetraceparentrecord component.- Returns:
- the value of the
traceparentrecord component
-
tracestate
Returns the value of thetracestaterecord component.- Returns:
- the value of the
tracestaterecord component
-
wait_
Returns the value of thewait_record component.- Returns:
- the value of the
wait_record component
-