Enum Class HookType

java.lang.Object
java.lang.Enum<HookType>
com.github.copilot.generated.rpc.HookType
All Implemented Interfaces:
Serializable, Comparable<HookType>, Constable

@Generated("copilot-sdk-codegen") public enum HookType extends Enum<HookType>
Hook event name dispatched through the SDK callback transport.
Since:
1.0.0
  • Enum Constant Details

    • PRETOOLUSE

      public static final HookType PRETOOLUSE
      The preToolUse variant.
    • PREMCPTOOLCALL

      public static final HookType PREMCPTOOLCALL
      The preMcpToolCall variant.
    • POSTTOOLUSE

      public static final HookType POSTTOOLUSE
      The postToolUse variant.
    • POSTTOOLUSEFAILURE

      public static final HookType POSTTOOLUSEFAILURE
      The postToolUseFailure variant.
    • USERPROMPTSUBMITTED

      public static final HookType USERPROMPTSUBMITTED
      The userPromptSubmitted variant.
    • USERPROMPTTRANSFORMED

      public static final HookType USERPROMPTTRANSFORMED
      The userPromptTransformed variant.
    • SESSIONSTART

      public static final HookType SESSIONSTART
      The sessionStart variant.
    • SESSIONEND

      public static final HookType SESSIONEND
      The sessionEnd variant.
    • POSTRESULT

      public static final HookType POSTRESULT
      The postResult variant.
    • PREPRDESCRIPTION

      public static final HookType PREPRDESCRIPTION
      The prePRDescription variant.
    • ERROROCCURRED

      public static final HookType ERROROCCURRED
      The errorOccurred variant.
    • AGENTSTOP

      public static final HookType AGENTSTOP
      The agentStop variant.
    • SUBAGENTSTART

      public static final HookType SUBAGENTSTART
      The subagentStart variant.
    • SUBAGENTSTOP

      public static final HookType SUBAGENTSTOP
      The subagentStop variant.
    • PRECOMPACT

      public static final HookType PRECOMPACT
      The preCompact variant.
    • PERMISSIONREQUEST

      public static final HookType PERMISSIONREQUEST
      The permissionRequest variant.
    • NOTIFICATION

      public static final HookType NOTIFICATION
      The notification variant.
  • Method Details

    • values

      public static HookType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HookType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • fromValue

      public static HookType fromValue(String value)