Class AgentStopHookOutput
java.lang.Object
com.github.copilot.rpc.AgentStopHookOutput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the stop decision.Gets the follow-up instruction supplied when the stop is blocked.setDecision(String decision) Sets the stop decision.Sets the follow-up instruction supplied when the stop is blocked.
-
Constructor Details
-
AgentStopHookOutput
public AgentStopHookOutput()
-
-
Method Details
-
getDecision
Gets the stop decision.- Returns:
"block"to keep the agent running, ornull
-
setDecision
Sets the stop decision.- Parameters:
decision-"block"to keep the agent running- Returns:
- this instance for method chaining
-
getReason
Gets the follow-up instruction supplied when the stop is blocked.- Returns:
- the follow-up instruction
-
setReason
Sets the follow-up instruction supplied when the stop is blocked.- Parameters:
reason- the follow-up instruction- Returns:
- this instance for method chaining
-