Skip to content

Commit 8642d8d

Browse files
committed
fix: fix syntax error issue
1 parent 020e83f commit 8642d8d

File tree

2 files changed

+60
-66
lines changed

2 files changed

+60
-66
lines changed

docs/customize/custom-quick-action.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,21 @@ For more, see in example: [https://github.com/unit-mesh/untitled/tree/master/pro
1717

1818
You can custom task by your own, by put prompts files under `prompts/quick`:
1919

20-
```vtl
21-
---
22-
type: QuickAction
23-
name: Continue Writing
24-
category: Default
25-
language: Markdown
26-
interaction: AppendCursorStream
27-
---
28-
**system**
29-
30-
You are an assistant helping a user write a document. Output how the document continues, no more than 3 sentences. Output in markdown format. Do not use links.
31-
32-
Use this format, replacing text in brackets with the result. Do not include the brackets in the output:
33-
34-
[Continuation of the document in markdown format, no more than 3 sentences.]
35-
36-
**user**
37-
38-
${beforeCursor}
39-
```
20+
---
21+
type: QuickAction
22+
name: Continue Writing
23+
category: Default
24+
language: Markdown
25+
interaction: AppendCursorStream
26+
---
27+
**system**
28+
29+
You are an assistant helping a user write a document. Output how the document continues, no more than 3 sentences. Output in markdown format. Do not use links.
30+
31+
Use this format, replacing text in brackets with the result. Do not include the brackets in the output:
32+
33+
[Continuation of the document in markdown format, no more than 3 sentences.]
34+
35+
**user**
36+
37+
${beforeCursor}

docs/customize/team-prompts.md

Lines changed: 42 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,23 @@ interaction type:
5151

5252
variables list: [https://ide.unitmesh.cc/variables](https://ide.unitmesh.cc/variables)
5353

54-
```vtl
55-
---
56-
interaction: AppendCursorStream
57-
---
58-
```user```
59-
60-
You are an experienced software development engineer skilled in using Test-Driven Development (TDD) to develop software.
61-
You need to help users write test code based on their requirements.
62-
63-
${frameworkContext}
64-
65-
The current class-related code is as follows:
66-
67-
${beforeCursor}
68-
69-
The user's requirement is: ${selection}
70-
71-
Please use ```@Test to begin writing your code block:
72-
```
54+
---
55+
interaction: AppendCursorStream
56+
---
57+
```user```
58+
59+
You are an experienced software development engineer skilled in using Test-Driven Development (TDD) to develop software.
60+
You need to help users write test code based on their requirements.
61+
62+
${frameworkContext}
63+
64+
The current class-related code is as follows:
65+
66+
${beforeCursor}
67+
68+
The user's requirement is: ${selection}
69+
70+
Please use ```@Test to begin writing your code block:
7371

7472
full TDD
7573
example: [https://github.com/unit-mesh/untitled/tree/english/prompts](https://github.com/unit-mesh/untitled/tree/english/prompts)
@@ -78,33 +76,31 @@ example: [https://github.com/unit-mesh/untitled/tree/english/prompts](https://gi
7876

7977
变量列表: [AutoDev 模板变量](/variables)
8078

81-
```vtl
82-
---
83-
interaction: AppendCursorStream
84-
---
85-
```user```
86-
87-
你是一个资深的软件开发工程师,你擅长使用 TDD 的方式来开发软件,你现在需要帮助帮手开发人员做好 Tasking,以方便于编写测试用例。
88-
89-
- Tasking 产生的任务都是具有独立业务价值的,每完成一条,都可以独立交付、产生价值。
90-
- 采用面向业务需求的 Tasking 采用业务语言描述任务列表,更有助于开发人员和业务人员对需求进行详细的沟通和确认。
91-
- 采用 Given When Then 的书写格式,其中 When 中所代表系统行为。
92-
- 要考虑业务场景覆盖率,尽可能考虑到边界条件
93-
94-
请严格按照以下的格式输出。
95-
96-
示例如下:
97-
98-
Question: 开发一个出租车计费功能,它的计算规则是这样的:不超过8公里时每公里收费0.8元,超过8公里则每公里加收50%长途费,停车等待时每分钟加收0.25元。
99-
Answer: ###
100-
${commentSymbol} Given 出租车行驶了5公里(8公里以内),未发生等待,When 计费,Then 收费4元
101-
${commentSymbol} Given 出租车行驶了5公里(8公里以内),等待10分钟,When 计费,Then 收费6.5元
102-
${commentSymbol} Given 出租车恰好行驶了8公里,未发生等待,When 计费,Then 收费6.4元
103-
${commentSymbol} Given 出租车恰好行驶了8公里,等待10分钟,When 计费,Then 收费8.9元
104-
###
105-
Question: ${selection}
106-
Answer: ###
107-
```
79+
---
80+
interaction: AppendCursorStream
81+
---
82+
```user```
83+
84+
你是一个资深的软件开发工程师,你擅长使用 TDD 的方式来开发软件,你现在需要帮助帮手开发人员做好 Tasking,以方便于编写测试用例。
85+
86+
- Tasking 产生的任务都是具有独立业务价值的,每完成一条,都可以独立交付、产生价值。
87+
- 采用面向业务需求的 Tasking 采用业务语言描述任务列表,更有助于开发人员和业务人员对需求进行详细的沟通和确认。
88+
- 采用 Given When Then 的书写格式,其中 When 中所代表系统行为。
89+
- 要考虑业务场景覆盖率,尽可能考虑到边界条件
90+
91+
请严格按照以下的格式输出。
92+
93+
示例如下:
94+
95+
Question: 开发一个出租车计费功能,它的计算规则是这样的:不超过8公里时每公里收费0.8元,超过8公里则每公里加收50%长途费,停车等待时每分钟加收0.25元。
96+
Answer: ###
97+
${commentSymbol} Given 出租车行驶了5公里(8公里以内),未发生等待,When 计费,Then 收费4元
98+
${commentSymbol} Given 出租车行驶了5公里(8公里以内),等待10分钟,When 计费,Then 收费6.5元
99+
${commentSymbol} Given 出租车恰好行驶了8公里,未发生等待,When 计费,Then 收费6.4元
100+
${commentSymbol} Given 出租车恰好行驶了8公里,等待10分钟,When 计费,Then 收费8.9元
101+
###
102+
Question: ${selection}
103+
Answer: ###
108104

109105
完整的 TDD
110106
示例:[https://github.com/unit-mesh/untitled/tree/master/prompts](https://github.com/unit-mesh/untitled/tree/master/prompts)

0 commit comments

Comments
 (0)