Record Class SessionTasksStartAgentParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionTasksStartAgentParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionTasksStartAgentParams(String sessionId, String agentType, String prompt, String name, String description, String model)
extends Record
Agent type, prompt, name, and optional description and model override for the new task.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentTyperecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.name()Returns the value of thenamerecord component.prompt()Returns the value of thepromptrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionTasksStartAgentParams
public SessionTasksStartAgentParams(String sessionId, String agentType, String prompt, String name, String description, String model) Creates an instance of aSessionTasksStartAgentParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentagentType- the value for theagentTyperecord componentprompt- the value for thepromptrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentmodel- the value for themodelrecord 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
-
agentType
Returns the value of theagentTyperecord component.- Returns:
- the value of the
agentTyperecord component
-
prompt
Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-