banso-dsh-prompt 0.1.1 → 0.1.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.md +2 -2
- package/lib/prompts.d.ts +1 -1
- package/lib/prompts.d.ts.map +1 -1
- package/lib/prompts.js +1 -6
- package/lib/prompts.js.map +1 -1
- package/package.json +16 -13
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Banso 提示词插件
|
|
2
2
|
|
|
3
|
-
`banso-dsh-prompt` 为默认 DSH agent loop
|
|
3
|
+
`banso-dsh-prompt` 为默认 DSH agent loop 提供可配置的研究规则和本轮参考时间。由 Banso SDK bundle 或 preset 加载,依赖 `systemPrompt`、`agents` 服务。
|
|
4
4
|
|
|
5
|
-
- `banso:research` section
|
|
5
|
+
- `banso:research` section:通过 `researchPrompt` 配置研究规则,当前默认正文为空;工具操作协议及材料指导由 [资料插件](https://github.com/Tindada/banso-dsh/blob/main/packages/materials/README.md) 提供。
|
|
6
6
|
- `banso:reference-time` context:本轮开始处理输入时的 UTC 时间。需要 `includeRuntimeContext: true`;Banso bundle 已开启。
|
|
7
7
|
|
|
8
8
|
## 配置
|
package/lib/prompts.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const RESEARCH_PROMPT = "
|
|
1
|
+
export declare const RESEARCH_PROMPT = "";
|
|
2
2
|
export declare function referenceTimeText(referenceTime: string): string;
|
|
3
3
|
//# sourceMappingURL=prompts.d.ts.map
|
package/lib/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,KAAK,CAAA;AAEjC,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE/D"}
|
package/lib/prompts.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export const RESEARCH_PROMPT =
|
|
2
|
-
1. Understand the question, scope, time frame, and output requirements. Answer simple questions directly; break complex research into subquestions as needed. Use the runtime research reference time to interpret relative dates, while respecting user-specified dates and ranges.
|
|
3
|
-
2. Research unresolved questions by searching for sources and reading relevant pages, preferring primary sources and reliable reporting. Reuse available materials and avoid unproductive repetition.
|
|
4
|
-
3. Check whether the evidence supports the key conclusions and covers the requested scope. Distinguish facts from inference, preserve important qualifications and uncertainty, and investigate significant conflicts as needed.
|
|
5
|
-
4. Continue researching gaps that could materially change the answer. Stop when evidence is sufficient or further research is unlikely to resolve the remaining gaps.
|
|
6
|
-
5. Answer directly in the user's requested language and format; otherwise match their language. If the user specifies an output format, check that the final answer conforms to it before submitting. Cite sources near supported claims when permitted, disclose material limitations, and never invent facts or sources or claim to have verified unread pages.`;
|
|
1
|
+
export const RESEARCH_PROMPT = '';
|
|
7
2
|
export function referenceTimeText(referenceTime) {
|
|
8
3
|
return `Research reference time (UTC): ${referenceTime}\nThis is the current time when input processing began for this turn. Use it to interpret relative dates.`;
|
|
9
4
|
}
|
package/lib/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAA;AAEjC,MAAM,UAAU,iBAAiB,CAAC,aAAqB;IACrD,OAAO,kCAAkC,aAAa,2GAA2G,CAAA;AACnK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "banso-dsh-prompt",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Banso research instructions and per-turn reference time",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"engines": {
|
|
8
|
+
"dsh": ">=0.2.1-rc.2 <0.3.0-0"
|
|
9
|
+
},
|
|
7
10
|
"main": "./lib/index.js",
|
|
8
11
|
"types": "./lib/index.d.ts",
|
|
9
12
|
"exports": {
|
|
@@ -17,22 +20,22 @@
|
|
|
17
20
|
"README.md"
|
|
18
21
|
],
|
|
19
22
|
"dependencies": {
|
|
20
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
23
|
+
"@deepseek-ai/schemastery": "^3.18.5"
|
|
21
24
|
},
|
|
22
25
|
"peerDependencies": {
|
|
23
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
24
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
25
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.
|
|
26
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
27
|
+
"@deepseek-ai/dsh-agent": ">=0.2.1-rc.2 <0.3.0-0",
|
|
28
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.2.1-rc.2 <0.3.0-0"
|
|
26
29
|
},
|
|
27
30
|
"devDependencies": {
|
|
28
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
29
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
30
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.
|
|
31
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.
|
|
32
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
33
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
34
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
35
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
31
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
32
|
+
"@deepseek-ai/dsh-agent": "0.2.1-rc.2",
|
|
33
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.2",
|
|
34
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.2",
|
|
35
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.2",
|
|
36
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.2",
|
|
37
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.2",
|
|
38
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.2",
|
|
36
39
|
"@types/node": "^24.19.0",
|
|
37
40
|
"typescript": "^7.0.2"
|
|
38
41
|
},
|