ui namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionPrompt message and JSON schema describing the form fields to elicit from the user.Request ID of a pending `auto_mode_switch.requested` event and the user's response.Pending elicitation request ID and the user's response (accept/decline/cancel + form values).Request ID of a pending `exit_plan_mode.requested` event and the user's response.Request ID of a pending `sampling.requested` event and an optional sampling result payload (omit to reject).Request ID of a pending `user_input.requested` event and the user's response.Identifies the target session.Opaque handle previously returned by `registerDirectAutoModeSwitchHandler` to release.
-
Method Details
-
elicitation
Prompt message and JSON schema describing the form fields to elicit from the user.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingElicitation
public CompletableFuture<SessionUiHandlePendingElicitationResult> handlePendingElicitation(SessionUiHandlePendingElicitationParams params) Pending elicitation request ID and the user's response (accept/decline/cancel + form values).Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingUserInput
public CompletableFuture<SessionUiHandlePendingUserInputResult> handlePendingUserInput(SessionUiHandlePendingUserInputParams params) Request ID of a pending `user_input.requested` event and 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
public CompletableFuture<SessionUiHandlePendingSamplingResult> handlePendingSampling(SessionUiHandlePendingSamplingParams params) Request ID of a pending `sampling.requested` event and an optional sampling result payload (omit to reject).Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingAutoModeSwitch
public CompletableFuture<SessionUiHandlePendingAutoModeSwitchResult> handlePendingAutoModeSwitch(SessionUiHandlePendingAutoModeSwitchParams params) Request ID of a pending `auto_mode_switch.requested` event and 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
-
handlePendingExitPlanMode
public CompletableFuture<SessionUiHandlePendingExitPlanModeResult> handlePendingExitPlanMode(SessionUiHandlePendingExitPlanModeParams params) Request ID of a pending `exit_plan_mode.requested` event and 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
public CompletableFuture<SessionUiRegisterDirectAutoModeSwitchHandlerResult> registerDirectAutoModeSwitchHandler()Identifies the target session.- Since:
- 1.0.0
-
unregisterDirectAutoModeSwitchHandler
public CompletableFuture<SessionUiUnregisterDirectAutoModeSwitchHandlerResult> unregisterDirectAutoModeSwitchHandler(SessionUiUnregisterDirectAutoModeSwitchHandlerParams params) Opaque handle previously returned by `registerDirectAutoModeSwitchHandler` to release.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-