java.lang.Object
com.github.copilot.rpc.SessionUiCapabilities
UI-specific capability flags for a session.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClears the elicitation setting, reverting to the default behavior.Clears the mcpApps setting.Returns whether the host supports interactive elicitation dialogs.Returns whether the runtime has accepted the session's MCP Apps (SEP-1865) opt-in.setElicitation(boolean elicitation) Sets whether the host supports interactive elicitation dialogs.setMcpApps(boolean mcpApps) Sets whether the runtime has accepted the MCP Apps opt-in.
-
Constructor Details
-
SessionUiCapabilities
public SessionUiCapabilities()
-
-
Method Details
-
getElicitation
Returns whether the host supports interactive elicitation dialogs.- Returns:
- an
Optionalcontaining the boolean value, or empty if not set
-
setElicitation
Sets whether the host supports interactive elicitation dialogs.- Parameters:
elicitation-trueif elicitation is supported- Returns:
- this instance for method chaining
-
clearElicitation
Clears the elicitation setting, reverting to the default behavior.- Returns:
- this instance for method chaining
-
getMcpApps
Returns whether the runtime has accepted the session's MCP Apps (SEP-1865) opt-in. Present andtruewhen the consumer setenableMcpApps=trueon create/resume and the runtime'sMCP_APPSfeature flag (orCOPILOT_MCP_APPS=trueenv override) is on. Otherwise empty orfalse, indicating the runtime silently dropped the opt-in.- Returns:
- an
Optionalcontaining the boolean value, or empty if not set
-
setMcpApps
Sets whether the runtime has accepted the MCP Apps opt-in.- Parameters:
mcpApps-trueif MCP Apps is enabled for this session- Returns:
- this instance for method chaining
-
clearMcpApps
Clears the mcpApps setting.- Returns:
- this instance for method chaining
-