You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Samples/Senparc.Weixin.AI.MPSample/App_Data/skills/ResponseChooseSkill/ResponseMessageChoose/skprompt.txt
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,16 @@ Example:
9
9
Input: What's the mean of animal?
10
10
Output: {"MessageType":"Text", "Result":"The word \"animal\" is a broad term that refers to living organisms that are not plants or fungi, and it encompasses a wide range of species with diverse characteristics. Therefore, it is not possible to calculate a mean for the term "animal" as it is not a numerical value or a quantitative measure."}
11
11
12
+
Input: Can you tell me what's in the image?
13
+
Output: [{""MessageType"":""Text"", ""Result"":""It's an image of a panda driving a car in the sky, with the car flying high and the panda looking happy and excited.""}]
14
+
15
+
Input: Create me a picture with sky and birds.
16
+
Output: [{""MessageType"":""Image"", ""Result"":""The sky is filled with colorful birds.""}]
17
+
12
18
Input: Give me an image shows the spring of China.
13
19
Output: {"MessageType":"Image", "Result":"Generate a high-quality and visually stunning image that depicts the beauty of spring in China, with a focus on blooming flowers, lush green landscapes, and perhaps a cultural or historical element such as a traditional Chinese garden or temple."}
Copy file name to clipboardExpand all lines: src/Senparc.Weixin.AI/WeixinSkills/SenparcWeixinSkills.cs
+5-16Lines changed: 5 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -21,34 +21,23 @@ public class SenparcWeixinSkills
21
21
22
22
privateconststringBUILD_RESPONSE_MESSAGE_DEFINITION=@"Determine the type of message and result that should be returned based on the input information.
23
23
24
-
The context of the request may contains several history messages, only the last message can determine the type of the message, which always using the key of ""input"" in context.
25
-
26
24
There are two types of message:
27
25
- Text: just need return text, without image required. The Result parameter will be returned as a ChatBot's reply.
28
26
- Image: need to generate image. The Result parameter will give a better prompt to generate a image by general image generate engine.
29
27
30
-
Examples:
28
+
Example:
31
29
32
30
Input: What's the mean of animal?
33
-
Output: [{""MessageType"":""Text"", ""Result"":""The word \""animal\"" is a broad term that refers to living organisms that are not plants or fungi, and it encompasses a wide range of species with diverse characteristics. Therefore, it is not possible to calculate a mean for the term ""animal"" as it is not a numerical value or a quantitative measure.""}]
34
-
35
-
Input: Can you tell me what's in the image?
36
-
Output: [{""MessageType"":""Text"", ""Result"":""It's an image of a panda driving a car in the sky, with the car flying high and the panda looking happy and excited.""}]
37
-
38
-
Input: Give me a picture with sky and bird.
39
-
Output: [{""MessageType"":""Image"", ""Result"":""The sky is filled with colorful birds.""}]
31
+
Output: {""MessageType"":""Text"", ""Result"":""The word \""animal\"" is a broad term that refers to living organisms that are not plants or fungi, and it encompasses a wide range of species with diverse characteristics. Therefore, it is not possible to calculate a mean for the term ""animal"" as it is not a numerical value or a quantitative measure.""}
40
32
41
33
Input: Give me an image shows the spring of China.
42
-
Output: [{""MessageType"":""Image"", ""Result"":""Generate a high-quality and visually stunning image that depicts the beauty of spring in China, with a focus on blooming flowers, lush green landscapes, and perhaps a cultural or historical element such as a traditional Chinese garden or temple.""}]
34
+
Output: {""MessageType"":""Image"", ""Result"":""Generate a high-quality and visually stunning image that depicts the beauty of spring in China, with a focus on blooming flowers, lush green landscapes, and perhaps a cultural or historical element such as a traditional Chinese garden or temple.""}
43
35
44
36
[done]
45
37
46
-
47
-
The original Output is JSON format, I want to get an XML format result, do the parse first. Just left JSON information without any other 'appendToResult' information.
0 commit comments