Record Class SubagentStopHookInput
java.lang.Object
java.lang.Record
com.github.copilot.rpc.SubagentStopHookInput
- Record Components:
sessionId- the parent session IDtimestamp- Unix timestamp in millisecondscwd- the parent session's working directorytranscriptPath- the parent session transcript pathagentName- the subagent definition nameagentType- the subagent typeagentId- the subagent ID, if availableagentDisplayName- the optional subagent display nameagentDescription- the optional subagent descriptionstopReason- the reason the subagent stoppedresponse- the subagent's last assistant responseparentAgentId- optional subagent identity, absent for root hooks and older runtimes
public record SubagentStopHookInput(String sessionId, long timestamp, String cwd, String transcriptPath, String agentName, String agentType, String agentId, String agentDisplayName, String agentDescription, String stopReason, String response, String parentAgentId)
extends Record
Input received after a subagent's turn.
-
Constructor Summary
ConstructorsConstructorDescriptionSubagentStopHookInput(String sessionId, long timestamp, String cwd, String transcriptPath, String agentName, String agentType, String agentId, String agentDisplayName, String agentDescription, String stopReason, String response) SubagentStopHookInput(String sessionId, long timestamp, String cwd, String transcriptPath, String agentName, String agentType, String agentId, String agentDisplayName, String agentDescription, String stopReason, String response, String parentAgentId) Creates an instance of aSubagentStopHookInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentDescriptionrecord component.Returns the value of theagentDisplayNamerecord component.agentId()Returns the value of theagentIdrecord component.Returns the value of theagentNamerecord component.Returns the value of theagentTyperecord component.cwd()Returns the value of thecwdrecord 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 theparentAgentIdrecord component.response()Returns the value of theresponserecord component.Returns the value of thesessionIdrecord component.Returns the value of thestopReasonrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranscriptPathrecord component.
-
Constructor Details
-
SubagentStopHookInput
-
SubagentStopHookInput
public SubagentStopHookInput(String sessionId, long timestamp, String cwd, String transcriptPath, String agentName, String agentType, String agentId, String agentDisplayName, String agentDescription, String stopReason, String response, String parentAgentId) Creates an instance of aSubagentStopHookInputrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componenttimestamp- the value for thetimestamprecord componentcwd- the value for thecwdrecord componenttranscriptPath- the value for thetranscriptPathrecord componentagentName- the value for theagentNamerecord componentagentType- the value for theagentTyperecord componentagentId- the value for theagentIdrecord componentagentDisplayName- the value for theagentDisplayNamerecord componentagentDescription- the value for theagentDescriptionrecord componentstopReason- the value for thestopReasonrecord componentresponse- the value for theresponserecord componentparentAgentId- the value for theparentAgentIdrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sessionId
-
timestamp
-
cwd
-
transcriptPath
Returns the value of thetranscriptPathrecord component.- Returns:
- the value of the
transcriptPathrecord component
-
agentName
-
agentType
-
agentId
-
agentDisplayName
Returns the value of theagentDisplayNamerecord component.- Returns:
- the value of the
agentDisplayNamerecord component
-
agentDescription
Returns the value of theagentDescriptionrecord component.- Returns:
- the value of the
agentDescriptionrecord component
-
stopReason
Returns the value of thestopReasonrecord component.- Returns:
- the value of the
stopReasonrecord component
-
response
-
parentAgentId
Returns the value of theparentAgentIdrecord component.- Returns:
- the value of the
parentAgentIdrecord component
-