@deepseek-ai/dsh-tool-ask-user 0.1.3-alpha.2 → 0.1.5-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/interaction/tool-ask-user/README.md
5
- README.md: 18240949617daf1ada9d49178fa47cf5a44139ef
6
- README.zh.md: d7c43932aa847eb5bb622741191f90f880215af8
5
+ README.md: e68aaf89d6c272d14e49685f8002dd5b48391d30
6
+ README.zh.md: 6d4c1fc82aa14c0478d1350498c0fbc314000149
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-tool-ask-user` gives the model one tool `ask_user_question` — for asking the human a concise question when it needs confirmation, a choice, or missing information before continuing. The tool pauses until the first scoped answerer accepts the request, then feeds that answer back into the agent loop as an ordinary tool result, so no loop mechanics change. The tool returns the canonical `{ answers: [...] }` shape, rendered as compact JSON text. It renders no UI itself and does not know how input is collected; the Web client contributes its answerer through Remote Events. A runtime-owned child agent cannot ask the user; it must include the unresolved question in its final result.
12
+ `ask_user_question` lets a model pause work and ask the human for confirmation, a choice, or missing information. It accepts one or more questions and returns their answers as compact JSON. The call waits until an answer is accepted or the turn is cancelled; if no answer handler accepts it, the model receives an error. Runtime-owned child agents cannot call this tool and must report unresolved questions in their final result. The package does not render or collect input, so callers must provide a compatible user interaction surface.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-tool-ask-user` 为模型提供一个工具——`ask_user_question`——用于在需要确认、选择结果或缺失的信息才能继续时,向用户提出简明问题。工具会暂停,直到首个作用域 answerer 接受请求,然后把回答作为普通工具结果送回 agent loop(智能体循环),因此循环机制没有任何变化。工具返回规范的 `{ answers: [...] }` 结构,并以紧凑的 JSON 文本形式呈现。它自身不渲染 UI,也不了解输入的收集方式;Web Client 通过 Remote Events 提供 answerer。运行时中归属于其他 agent 的子级不能向用户提问;它必须在最终结果中包含尚未解决的问题。
12
+ `ask_user_question` 让模型暂停工作,向用户请求确认、选择或缺失的信息。它接受一个或多个问题,并以紧凑 JSON 返回回答。调用会等待回答被接受或当前轮次被取消;如果没有回答处理器接受请求,模型会收到错误。归属于运行时其他 agent 的子级不能调用此工具,必须在最终结果中报告尚未解决的问题。本包不渲染界面或收集输入,因此调用方必须提供兼容的用户交互表面。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-ask-user",
3
3
  "description": "Model-facing ask_user_question tool over the ctx.userQuestions seam",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,17 +27,17 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/dsh-agent": "^0.1.3-alpha.2",
31
- "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
32
- "@deepseek-ai/cordis": "^4.0.2",
33
- "@deepseek-ai/dsh-user-questions": "^0.1.3-alpha.2"
30
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.2",
31
+ "@deepseek-ai/dsh-user-questions": "^0.1.5-alpha.2",
32
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
33
+ "@deepseek-ai/cordis": "^4.0.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@deepseek-ai/dsh-agent": "^0.1.3-alpha.2",
37
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
38
- "@deepseek-ai/dsh-system-prompt": "^0.1.3-alpha.2",
39
- "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
40
- "@deepseek-ai/dsh-user-questions": "^0.1.3-alpha.2",
36
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
37
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
38
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.2",
39
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.2",
40
+ "@deepseek-ai/dsh-user-questions": "^0.1.5-alpha.2",
41
41
  "@deepseek-ai/cordis": "^4.0.2"
42
42
  }
43
43
  }