Record Class SubagentStartHookOutput
java.lang.Object
java.lang.Record
com.github.copilot.rpc.SubagentStartHookOutput
- Record Components:
additionalContext- context prepended to the subagent's initial prompt, ornull
-
Constructor Summary
ConstructorsConstructorDescriptionSubagentStartHookOutput(String additionalContext) Creates an instance of aSubagentStartHookOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalContextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubagentStartHookOutput
Creates an instance of aSubagentStartHookOutputrecord class.- Parameters:
additionalContext- the value for theadditionalContextrecord 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). -
additionalContext
Returns the value of theadditionalContextrecord component.- Returns:
- the value of the
additionalContextrecord component
-