Record Class SessionStartHookInput
java.lang.Object
java.lang.Record
com.github.copilot.rpc.SessionStartHookInput
- Record Components:
sessionId- the runtime session ID of the session that triggered the hooktimestamp- the timestamp in milliseconds since epoch when the session startedcwd- the current working directorysource- the source: "startup", "resume", or "new"initialPrompt- the initial prompt, ornull
-
Constructor Summary
ConstructorsConstructorDescriptionSessionStartHookInput(String sessionId, long timestamp, String cwd, String source, String initialPrompt) Creates an instance of aSessionStartHookInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncwd()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 theinitialPromptrecord component.Returns the value of thesessionIdrecord component.source()Returns the value of thesourcerecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionStartHookInput
public SessionStartHookInput(String sessionId, long timestamp, String cwd, String source, String initialPrompt) Creates an instance of aSessionStartHookInputrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componenttimestamp- the value for thetimestamprecord componentcwd- the value for thecwdrecord componentsource- the value for thesourcerecord componentinitialPrompt- the value for theinitialPromptrecord 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
-
source
-
initialPrompt
Returns the value of theinitialPromptrecord component.- Returns:
- the value of the
initialPromptrecord component
-