Record Class SubagentStartHookInput
java.lang.Object
java.lang.Record
com.github.copilot.rpc.SubagentStartHookInput
- 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 nameagentDisplayName- the optional subagent display nameagentDescription- the optional subagent descriptionagentId- optional subagent identity, absent for root hooks and older runtimesagentType- optional subagent identity, absent for root hooks and older runtimesparentAgentId- optional subagent identity, absent for root hooks and older runtimes
-
Constructor Summary
ConstructorsConstructorDescriptionSubagentStartHookInput(String sessionId, long timestamp, String cwd, String transcriptPath, String agentName, String agentDisplayName, String agentDescription) SubagentStartHookInput(String sessionId, long timestamp, String cwd, String transcriptPath, String agentName, String agentDisplayName, String agentDescription, String agentId, String agentType, String parentAgentId) Creates an instance of aSubagentStartHookInputrecord 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.Returns the value of thesessionIdrecord 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
-
SubagentStartHookInput
-
SubagentStartHookInput
public SubagentStartHookInput(String sessionId, long timestamp, String cwd, String transcriptPath, String agentName, String agentDisplayName, String agentDescription, String agentId, String agentType, String parentAgentId) Creates an instance of aSubagentStartHookInputrecord 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 componentagentDisplayName- the value for theagentDisplayNamerecord componentagentDescription- the value for theagentDescriptionrecord componentagentId- the value for theagentIdrecord componentagentType- the value for theagentTyperecord 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
-
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
-
agentId
-
agentType
-
parentAgentId
Returns the value of theparentAgentIdrecord component.- Returns:
- the value of the
parentAgentIdrecord component
-