Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class SessionSendParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionSendParams
@Generated("copilot-sdk-codegen")
public record SessionSendParams(String sessionId, String prompt, String displayPrompt, List<Object> attachments, SendMode mode, Boolean prepend, Boolean billable, String requiredTool, Object source, SendAgentMode agentMode, Map<String,String> requestHeaders, String traceparent, String tracestate, Boolean wait_)
extends Record
Parameters for sending a user message to the session
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionSendParams(String sessionId, String prompt, String displayPrompt, List<Object> attachments, SendMode mode, Boolean prepend, Boolean billable, String requiredTool, Object source, SendAgentMode agentMode, Map<String, String> requestHeaders, String traceparent, String tracestate, Boolean wait_) Creates an instance of aSessionSendParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentModerecord component.Returns the value of theattachmentsrecord component.billable()Returns the value of thebillablerecord component.Returns the value of thedisplayPromptrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.prepend()Returns the value of theprependrecord component.prompt()Returns the value of thepromptrecord component.Returns the value of therequestHeadersrecord component.Returns the value of therequiredToolrecord component.Returns the value of thesessionIdrecord component.source()Returns the value of thesourcerecord 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
-
SessionSendParams
public SessionSendParams(String sessionId, String prompt, String displayPrompt, List<Object> attachments, SendMode mode, Boolean prepend, Boolean billable, String requiredTool, Object source, SendAgentMode agentMode, Map<String, String> requestHeaders, String traceparent, String tracestate, Boolean wait_) Creates an instance of aSessionSendParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentprompt- the value for thepromptrecord componentdisplayPrompt- the value for thedisplayPromptrecord componentattachments- the value for theattachmentsrecord componentmode- the value for themoderecord componentprepend- the value for theprependrecord componentbillable- the value for thebillablerecord componentrequiredTool- the value for therequiredToolrecord componentsource- the value for thesourcerecord 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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-
prompt
Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-
displayPrompt
Returns the value of thedisplayPromptrecord component.- Returns:
- the value of the
displayPromptrecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord 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
-
billable
Returns the value of thebillablerecord component.- Returns:
- the value of the
billablerecord component
-
requiredTool
Returns the value of therequiredToolrecord component.- Returns:
- the value of the
requiredToolrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
agentMode
Returns the value of theagentModerecord component.- Returns:
- the value of the
agentModerecord component
-
requestHeaders
Returns the value of therequestHeadersrecord component.- Returns:
- the value of the
requestHeadersrecord component
-
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
-