UserInteractionService — provided by @deepseek-ai/dsh-user-interaction.
ctx.userInteraction: one active UI provider plus an ask() surface.
registerProvider(provider: UserInteractionProvider): () => void
Register the UI provider. Only one provider may be active in a context.
provider — UI-side implementation that collects answers.Returns Disposer that unregisters this provider.
async ask(request: AskUserQuestionRequest): Promise<AskUserQuestionAnswer>
Ask the active UI provider and wait for the user's answer.
request — Questions, owner agent, and abort signal.Returns The answer chosen or typed by the human.