Package com.github.copilot.sdk.json
Record Class SessionEndHookOutput
java.lang.Object
java.lang.Record
com.github.copilot.sdk.json.SessionEndHookOutput
- Record Components:
suppressOutput-trueto suppress output, ornullcleanupActions- the cleanup actions to perform, ornullsessionSummary- the session summary, ornull
public record SessionEndHookOutput(Boolean suppressOutput, List<String> cleanupActions, String sessionSummary)
extends Record
Output for a session-end hook.
Allows specifying cleanup actions and session summary.
- Since:
- 1.0.7
-
Constructor Summary
ConstructorsConstructorDescriptionSessionEndHookOutput(Boolean suppressOutput, List<String> cleanupActions, String sessionSummary) Creates an instance of aSessionEndHookOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecleanupActionsrecord 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 thesessionSummaryrecord component.Returns the value of thesuppressOutputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionEndHookOutput
public SessionEndHookOutput(Boolean suppressOutput, List<String> cleanupActions, String sessionSummary) Creates an instance of aSessionEndHookOutputrecord class.- Parameters:
suppressOutput- the value for thesuppressOutputrecord componentcleanupActions- the value for thecleanupActionsrecord componentsessionSummary- the value for thesessionSummaryrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
suppressOutput
Returns the value of thesuppressOutputrecord component.- Returns:
- the value of the
suppressOutputrecord component
-
cleanupActions
Returns the value of thecleanupActionsrecord component.- Returns:
- the value of the
cleanupActionsrecord component
-
sessionSummary
Returns the value of thesessionSummaryrecord component.- Returns:
- the value of the
sessionSummaryrecord component
-