Class SessionUiCapabilities

java.lang.Object
com.github.copilot.rpc.SessionUiCapabilities

public class SessionUiCapabilities extends Object
UI-specific capability flags for a session.
Since:
1.0.0
  • Constructor Details

    • SessionUiCapabilities

      public SessionUiCapabilities()
  • Method Details

    • getElicitation

      public Optional<Boolean> getElicitation()
      Returns whether the host supports interactive elicitation dialogs.
      Returns:
      an Optional containing the boolean value, or empty if not set
    • setElicitation

      public SessionUiCapabilities setElicitation(boolean elicitation)
      Sets whether the host supports interactive elicitation dialogs.
      Parameters:
      elicitation - true if elicitation is supported
      Returns:
      this instance for method chaining
    • clearElicitation

      public SessionUiCapabilities clearElicitation()
      Clears the elicitation setting, reverting to the default behavior.
      Returns:
      this instance for method chaining
    • getMcpApps

      public Optional<Boolean> getMcpApps()
      Returns whether the runtime has accepted the session's MCP Apps (SEP-1865) opt-in. Present and true when the consumer set enableMcpApps=true on create/resume and the runtime's MCP_APPS feature flag (or COPILOT_MCP_APPS=true env override) is on. Otherwise empty or false, indicating the runtime silently dropped the opt-in.
      Returns:
      an Optional containing the boolean value, or empty if not set
    • setMcpApps

      public SessionUiCapabilities setMcpApps(boolean mcpApps)
      Sets whether the runtime has accepted the MCP Apps opt-in.
      Parameters:
      mcpApps - true if MCP Apps is enabled for this session
      Returns:
      this instance for method chaining
    • clearMcpApps

      public SessionUiCapabilities clearMcpApps()
      Clears the mcpApps setting.
      Returns:
      this instance for method chaining