Enum Class CopilotClientMode

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

public enum CopilotClientMode extends Enum<CopilotClientMode>
Selects the defaulting strategy used by CopilotClient.
Since:
1.3.0
  • Enum Constant Details

    • EMPTY

      public static final CopilotClientMode EMPTY
      Disables optional features by default. The app must explicitly opt into anything it needs. Required for any scenario where CLI-like ambient behavior is unsafe (e.g., multi-user servers).

      When this mode is selected:

    • COPILOT_CLI

      public static final CopilotClientMode COPILOT_CLI
      Uses defaults equivalent to GitHub Copilot CLI. The default. Useful when building a coding agent that shares sessions with Copilot CLI.

      Do not use this mode for server-based multi-user applications — the default coding agent has tools and capabilities that operate across sessions and can access the host OS environment.

  • Method Details

    • values

      public static CopilotClientMode[] 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 CopilotClientMode 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