Class SessionUiApi
ui namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionRequests structured input from a UI-capable client.Runs a transient no-tools model query against the current conversation context.Resolves a pending `auto_mode_switch.requested` event with the user's accept/decline decision.Provides the user response for a pending elicitation request.Resolves a pending `exit_plan_mode.requested` event with the user's response.Resolves a pending `sampling.requested` event with a sampling result, or rejects it.Resolves a pending `session_limits_exhausted.requested` event with the user's selected limit action.Resolves a pending `user_input.requested` event with the user's response.Registers an in-process handler for auto-mode-switch requests so the server bridge skips dispatch.Unregisters a previously-registered in-process auto-mode-switch handler by its opaque handle.
-
Method Details
-
ephemeralQuery
@CopilotExperimental public CompletableFuture<SessionUiEphemeralQueryResult> ephemeralQuery(SessionUiEphemeralQueryParams params) Runs a transient no-tools model query against the current conversation context.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
elicitation
@CopilotExperimental public CompletableFuture<SessionUiElicitationResult> elicitation(SessionUiElicitationParams params) Requests structured input from a UI-capable client.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingElicitation
@CopilotExperimental public CompletableFuture<SessionUiHandlePendingElicitationResult> handlePendingElicitation(SessionUiHandlePendingElicitationParams params) Provides the user response for a pending elicitation request.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingUserInput
@CopilotExperimental public CompletableFuture<SessionUiHandlePendingUserInputResult> handlePendingUserInput(SessionUiHandlePendingUserInputParams params) Resolves a pending `user_input.requested` event with the user's response.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingSampling
@CopilotExperimental public CompletableFuture<SessionUiHandlePendingSamplingResult> handlePendingSampling(SessionUiHandlePendingSamplingParams params) Resolves a pending `sampling.requested` event with a sampling result, or rejects it.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingAutoModeSwitch
@CopilotExperimental public CompletableFuture<SessionUiHandlePendingAutoModeSwitchResult> handlePendingAutoModeSwitch(SessionUiHandlePendingAutoModeSwitchParams params) Resolves a pending `auto_mode_switch.requested` event with the user's accept/decline decision.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingSessionLimitsExhausted
@CopilotExperimental public CompletableFuture<SessionUiHandlePendingSessionLimitsExhaustedResult> handlePendingSessionLimitsExhausted(SessionUiHandlePendingSessionLimitsExhaustedParams params) Resolves a pending `session_limits_exhausted.requested` event with the user's selected limit action.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingExitPlanMode
@CopilotExperimental public CompletableFuture<SessionUiHandlePendingExitPlanModeResult> handlePendingExitPlanMode(SessionUiHandlePendingExitPlanModeParams params) Resolves a pending `exit_plan_mode.requested` event with the user's response.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
registerDirectAutoModeSwitchHandler
@CopilotExperimental public CompletableFuture<SessionUiRegisterDirectAutoModeSwitchHandlerResult> registerDirectAutoModeSwitchHandler()Registers an in-process handler for auto-mode-switch requests so the server bridge skips dispatch.- Since:
- 1.0.0
-
unregisterDirectAutoModeSwitchHandler
@CopilotExperimental public CompletableFuture<SessionUiUnregisterDirectAutoModeSwitchHandlerResult> unregisterDirectAutoModeSwitchHandler(SessionUiUnregisterDirectAutoModeSwitchHandlerParams params) Unregisters a previously-registered in-process auto-mode-switch handler by its opaque handle.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-