Class AgentStopHookInput
java.lang.Object
com.github.copilot.rpc.AgentStopHookInput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCwd()Gets the current working directory.Gets the runtime session ID of the session that triggered the hook.Gets whether this stop follows a previous block decision.Gets the reason the agent stopped.longGets the timestamp of the hook invocation.Gets the path to the on-disk session transcript.setAgentId(String agentId) setAgentType(String agentType) Sets the current working directory.setParentAgentId(String parentAgentId) setSessionId(String sessionId) Sets the runtime session ID of the session that triggered the hook.setStopHookActive(Boolean stopHookActive) Sets whether this stop follows a previous block decision.setStopReason(String stopReason) Sets the reason the agent stopped.setTimestamp(long timestamp) Sets the timestamp of the hook invocation.setTranscriptPath(String transcriptPath) Sets the path to the on-disk session transcript.
-
Constructor Details
-
AgentStopHookInput
public AgentStopHookInput()
-
-
Method Details
-
getAgentId
-
setAgentId
-
getAgentType
-
setAgentType
-
getParentAgentId
-
setParentAgentId
-
getSessionId
Gets the runtime session ID of the session that triggered the hook.- Returns:
- the session ID
-
setSessionId
Sets the runtime session ID of the session that triggered the hook.- Parameters:
sessionId- the session ID- Returns:
- this instance for method chaining
-
getTimestamp
public long getTimestamp()Gets the timestamp of the hook invocation.- Returns:
- the timestamp in milliseconds
-
setTimestamp
Sets the timestamp of the hook invocation.- Parameters:
timestamp- the timestamp in milliseconds- Returns:
- this instance for method chaining
-
getCwd
-
setCwd
Sets the current working directory.- Parameters:
cwd- the working directory path- Returns:
- this instance for method chaining
-
getStopReason
-
setStopReason
Sets the reason the agent stopped.- Parameters:
stopReason- the stop reason- Returns:
- this instance for method chaining
-
getTranscriptPath
Gets the path to the on-disk session transcript.- Returns:
- the transcript path
-
setTranscriptPath
Sets the path to the on-disk session transcript.- Parameters:
transcriptPath- the transcript path- Returns:
- this instance for method chaining
-
getStopHookActive
Gets whether this stop follows a previous block decision.- Returns:
truewhen the stop hook is already active
-
setStopHookActive
Sets whether this stop follows a previous block decision.- Parameters:
stopHookActive- whether the stop hook is already active- Returns:
- this instance for method chaining
-