Enum Class CompactionTrigger

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

@Generated("copilot-sdk-codegen") public enum CompactionTrigger extends Enum<CompactionTrigger>
What initiated a conversation compaction
Since:
1.0.0
  • Enum Constant Details

    • THRESHOLD

      public static final CompactionTrigger THRESHOLD
      The threshold variant.
    • CONTEXT_LIMIT_RETRY

      public static final CompactionTrigger CONTEXT_LIMIT_RETRY
      The context_limit_retry variant.
    • MANUAL

      public static final CompactionTrigger MANUAL
      The manual variant.
    • MEMORY_PRESSURE

      public static final CompactionTrigger MEMORY_PRESSURE
      The memory_pressure variant.
    • MODEL_SWITCH

      public static final CompactionTrigger MODEL_SWITCH
      The model_switch variant.
  • Method Details

    • values

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