Enum Class SkillInvokedTrigger

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

@Generated("copilot-sdk-codegen") public enum SkillInvokedTrigger extends Enum<SkillInvokedTrigger>
What triggered the skill invocation: `user-invoked` (explicit user action, such as via a slash command or UI affordance), `agent-invoked` (agent requested the skill), or `context-load` (loaded as part of another context, such as preloading skills configured on a custom agent or subagent)
Since:
1.0.0
  • Enum Constant Details

    • USER_INVOKED

      public static final SkillInvokedTrigger USER_INVOKED
      The user-invoked variant.
    • AGENT_INVOKED

      public static final SkillInvokedTrigger AGENT_INVOKED
      The agent-invoked variant.
    • CONTEXT_LOAD

      public static final SkillInvokedTrigger CONTEXT_LOAD
      The context-load variant.
  • Method Details

    • values

      public static SkillInvokedTrigger[] 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 SkillInvokedTrigger 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 SkillInvokedTrigger fromValue(String value)