Record Class UserPromptTransformedHookInput
java.lang.Object
java.lang.Record
com.github.copilot.rpc.UserPromptTransformedHookInput
- Record Components:
sessionId- the runtime session IDtimestamp- Unix timestamp in millisecondscwd- the current working directoryprompt- the prompt after user-prompt-submitted hookstransformedPrompt- the model-facing prompt after runtime transformations
-
Constructor Summary
ConstructorsConstructorDescriptionUserPromptTransformedHookInput(String sessionId, long timestamp, String cwd, String prompt, String transformedPrompt) Creates an instance of aUserPromptTransformedHookInputrecord 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.prompt()Returns the value of thepromptrecord 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 thetransformedPromptrecord component.
-
Constructor Details
-
UserPromptTransformedHookInput
public UserPromptTransformedHookInput(String sessionId, long timestamp, String cwd, String prompt, String transformedPrompt) Creates an instance of aUserPromptTransformedHookInputrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componenttimestamp- the value for thetimestamprecord componentcwd- the value for thecwdrecord componentprompt- the value for thepromptrecord componenttransformedPrompt- the value for thetransformedPromptrecord 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
-
prompt
-
transformedPrompt
Returns the value of thetransformedPromptrecord component.- Returns:
- the value of the
transformedPromptrecord component
-