Record Class SubagentStopHookOutput
java.lang.Object
java.lang.Record
com.github.copilot.rpc.SubagentStopHookOutput
- Record Components:
decision-"block"to run another subagent turn, or"allow"(ornull) to allow the stop; other values fail the subagentreason- the nonempty follow-up instruction required when blocking; invalid withoutdecision = "block"modifiedResponse- replacement final response when the stop is allowed
-
Constructor Summary
ConstructorsConstructorDescriptionSubagentStopHookOutput(String decision, String reason, String modifiedResponse) Creates an instance of aSubagentStopHookOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondecision()Returns the value of thedecisionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodifiedResponserecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubagentStopHookOutput
Creates an instance of aSubagentStopHookOutputrecord class.- Parameters:
decision- the value for thedecisionrecord componentreason- the value for thereasonrecord componentmodifiedResponse- the value for themodifiedResponserecord 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). -
decision
-
reason
-
modifiedResponse
Returns the value of themodifiedResponserecord component.- Returns:
- the value of the
modifiedResponserecord component
-