mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
18 lines
585 B
TypeScript
18 lines
585 B
TypeScript
/**
|
|
* Web question plugin, node half: enabling this UI feature also exposes the
|
|
* model-facing ask_user_question tool on the host composition.
|
|
*/
|
|
import type { Context } from 'cordis'
|
|
import * as toolAskUser from '@deepseek-ai/dsh-tool-ask-user'
|
|
|
|
/** Host services required by the model-facing tool. */
|
|
export const inject = ['tools', 'userInteraction']
|
|
|
|
/**
|
|
* Mount ask_user_question for hosts that selected the Web question plugin.
|
|
* @param ctx - Host plugin context carrying tools and userInteraction.
|
|
*/
|
|
export function apply(ctx: Context): void {
|
|
toolAskUser.apply(ctx)
|
|
}
|