digipair 0.71.4 → 0.71.5
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/package.json +31 -31
- package/src/assets/digipairs/admin/boost-add-digipair-api.json +1 -1
- package/src/assets/digipairs/admin/boost-add-digipair-business-process.json +68 -0
- package/src/assets/digipairs/admin/{boost-add-digipair.json → boost-add-digipair-expert.json} +3 -3
- package/src/assets/digipairs/admin/boost-add-digipair-imap-listener.json +1 -1
- package/src/assets/digipairs/admin/boost-add-digipair-teams.json +1 -1
- package/src/assets/digipairs/admin/digipair-list.json +20 -2
- package/src/assets/digipairs/common/chat.json +18 -0
- package/src/assets/digipairs/common/config.json +5 -1
- package/src/assets/digipairs/common/conversation.json +68 -0
- package/src/assets/templates/expert/avatar.png +0 -0
- package/src/assets/templates/expert/config.json +27 -0
- package/src/assets/templates/{default → expert}/conversation.json +1 -1
- package/src/assets/templates/expert/schema.json +126 -0
- package/src/assets/templates/imap-listener/conversation.json +1 -1
- package/src/assets/templates/imap-listener-oauth2/conversation.json +1 -1
- package/src/assets/templates/msteams-incoming-webhook/conversation.json +1 -1
- package/src/assets/templates/openapi-apikey/conversation.json +1 -1
- /package/src/assets/templates/{default → business-process}/avatar.png +0 -0
- /package/src/assets/templates/{default → business-process}/config.json +0 -0
- /package/src/assets/templates/{default → business-process}/schema.json +0 -0
- /package/src/assets/templates/{default → expert}/chat.json +0 -0
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "digipair",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.5",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"bin": {
|
|
6
6
|
"digipair": "./bin/digipair.js"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@digipair/engine": "0.71.
|
|
10
|
-
"@digipair/skill-chatbot": "0.71.
|
|
11
|
-
"@digipair/skill-common": "0.71.
|
|
12
|
-
"@digipair/skill-cron": "0.71.
|
|
13
|
-
"@digipair/skill-basic": "0.71.
|
|
14
|
-
"@digipair/skill-debug": "0.71.
|
|
15
|
-
"@digipair/skill-dsp": "0.71.
|
|
16
|
-
"@digipair/skill-editor": "0.71.
|
|
17
|
-
"@digipair/skill-factory": "0.71.
|
|
18
|
-
"@digipair/skill-http": "0.71.
|
|
19
|
-
"@digipair/skill-llm": "0.71.
|
|
20
|
-
"@digipair/skill-openai": "0.71.
|
|
21
|
-
"@digipair/skill-service": "0.71.
|
|
22
|
-
"@digipair/skill-sse": "0.71.
|
|
23
|
-
"@digipair/skill-temporal": "0.71.
|
|
24
|
-
"@digipair/skill-web": "0.71.
|
|
25
|
-
"@digipair/skill-logger": "0.71.
|
|
26
|
-
"@digipair/skill-process": "0.71.
|
|
27
|
-
"@digipair/skill-oauth2": "0.71.
|
|
28
|
-
"@digipair/skill-imap": "0.71.
|
|
29
|
-
"@digipair/skill-sendmail": "0.71.
|
|
30
|
-
"@digipair/skill-web-debug": "0.71.
|
|
31
|
-
"@digipair/skill-web-jsoneditor": "0.71.
|
|
32
|
-
"@digipair/skill-web-notification": "0.71.
|
|
33
|
-
"@digipair/skill-web-chatbot": "0.71.
|
|
34
|
-
"@digipair/skill-web-editor": "0.71.
|
|
35
|
-
"@digipair/skill-web-inputs": "0.71.
|
|
36
|
-
"@digipair/skill-web-spectrum": "0.71.
|
|
37
|
-
"@digipair/skill-web-interact": "0.71.
|
|
38
|
-
"@digipair/skill-web-font-awesome": "0.71.
|
|
9
|
+
"@digipair/engine": "0.71.5",
|
|
10
|
+
"@digipair/skill-chatbot": "0.71.5",
|
|
11
|
+
"@digipair/skill-common": "0.71.5",
|
|
12
|
+
"@digipair/skill-cron": "0.71.5",
|
|
13
|
+
"@digipair/skill-basic": "0.71.5",
|
|
14
|
+
"@digipair/skill-debug": "0.71.5",
|
|
15
|
+
"@digipair/skill-dsp": "0.71.5",
|
|
16
|
+
"@digipair/skill-editor": "0.71.5",
|
|
17
|
+
"@digipair/skill-factory": "0.71.5",
|
|
18
|
+
"@digipair/skill-http": "0.71.5",
|
|
19
|
+
"@digipair/skill-llm": "0.71.5",
|
|
20
|
+
"@digipair/skill-openai": "0.71.5",
|
|
21
|
+
"@digipair/skill-service": "0.71.5",
|
|
22
|
+
"@digipair/skill-sse": "0.71.5",
|
|
23
|
+
"@digipair/skill-temporal": "0.71.5",
|
|
24
|
+
"@digipair/skill-web": "0.71.5",
|
|
25
|
+
"@digipair/skill-logger": "0.71.5",
|
|
26
|
+
"@digipair/skill-process": "0.71.5",
|
|
27
|
+
"@digipair/skill-oauth2": "0.71.5",
|
|
28
|
+
"@digipair/skill-imap": "0.71.5",
|
|
29
|
+
"@digipair/skill-sendmail": "0.71.5",
|
|
30
|
+
"@digipair/skill-web-debug": "0.71.5",
|
|
31
|
+
"@digipair/skill-web-jsoneditor": "0.71.5",
|
|
32
|
+
"@digipair/skill-web-notification": "0.71.5",
|
|
33
|
+
"@digipair/skill-web-chatbot": "0.71.5",
|
|
34
|
+
"@digipair/skill-web-editor": "0.71.5",
|
|
35
|
+
"@digipair/skill-web-inputs": "0.71.5",
|
|
36
|
+
"@digipair/skill-web-spectrum": "0.71.5",
|
|
37
|
+
"@digipair/skill-web-interact": "0.71.5",
|
|
38
|
+
"@digipair/skill-web-font-awesome": "0.71.5",
|
|
39
39
|
"tslib": "^2.6.3",
|
|
40
40
|
"@nestjs/common": "^10.3.9",
|
|
41
41
|
"@nestjs/core": "^10.3.9",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"library": "@digipair/skill-dsp",
|
|
33
33
|
"element": "generate",
|
|
34
34
|
"properties": {
|
|
35
|
-
"signature": "\"Extract the information for creating the digipair from the user's comment\"\ncomment:string \"User's comment describing the digipair to create\" -> \n name:string \"Very short name of the agent from the comment
|
|
35
|
+
"signature": "\"Extract the information for creating the digipair from the user's comment\"\ncomment:string \"User's comment describing the digipair to create\" -> \n name:string \"Very short name of the agent from the comment\", \n description:string \"Short description of the agent from the comment\", \n assistant:string \"Assistant's response to confirm that the digipair has been successfully added and recall to the user to update his API key from the agent configuration\"",
|
|
36
36
|
"input": { "comment": "{{request.body.prompt}}" }
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"summary": "Add a digipair business process",
|
|
3
|
+
"description": "Adding a new digipair business process.",
|
|
4
|
+
"library": "@digipair/skill-chatbot",
|
|
5
|
+
"element": "boost",
|
|
6
|
+
"metadata": { "standalone": true, "selector": "any", "url": "^$" },
|
|
7
|
+
"properties": {
|
|
8
|
+
"steps": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Initialisation",
|
|
11
|
+
"execute": [
|
|
12
|
+
{
|
|
13
|
+
"library": "digipair:admin",
|
|
14
|
+
"element": "answer",
|
|
15
|
+
"properties": {
|
|
16
|
+
"assistant": "What is the id for the new digipair ?",
|
|
17
|
+
"boost": [{ "prompt": true, "required": true, "step": "Execution" }]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Execution",
|
|
24
|
+
"execute": [
|
|
25
|
+
{
|
|
26
|
+
"library": "@digipair/skill-basic",
|
|
27
|
+
"element": "setVariable",
|
|
28
|
+
"properties": {
|
|
29
|
+
"name": "infos",
|
|
30
|
+
"execute": [
|
|
31
|
+
{
|
|
32
|
+
"library": "@digipair/skill-dsp",
|
|
33
|
+
"element": "generate",
|
|
34
|
+
"properties": {
|
|
35
|
+
"signature": "\"Extract the information for creating the digipair from the user's comment\"\ncomment:string \"User's comment describing the digipair to create\" -> \n name:string \"Very short name of the agent from the comment\", \n description:string \"Short description of the agent from the comment\", \n assistant:string \"Assistant's response to confirm that the digipair has been successfully added\"",
|
|
36
|
+
"input": { "comment": "{{request.body.prompt}}" }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"library": "@digipair/skill-editor",
|
|
44
|
+
"element": "addDigipair",
|
|
45
|
+
"properties": {
|
|
46
|
+
"template": "business-process",
|
|
47
|
+
"data": {
|
|
48
|
+
"digipair": "EVALUATE:request.body.prompt",
|
|
49
|
+
"name": "EVALUATE:variables.infos.name",
|
|
50
|
+
"description": "EVALUATE:variables.infos.description"
|
|
51
|
+
},
|
|
52
|
+
"digipair": "EVALUATE:request.body.prompt"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"library": "digipair:admin",
|
|
57
|
+
"element": "answer",
|
|
58
|
+
"properties": {
|
|
59
|
+
"assistant": "EVALUATE:variables.infos.assistant",
|
|
60
|
+
"command": [{ "library": "@digipair/skill-web-interact", "element": "reload" }]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"pins": []
|
|
68
|
+
}
|
package/src/assets/digipairs/admin/{boost-add-digipair.json → boost-add-digipair-expert.json}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"summary": "Add a digipair",
|
|
3
|
-
"description": "Adding a new digipair.",
|
|
2
|
+
"summary": "Add a digipair expert",
|
|
3
|
+
"description": "Adding a new digipair expert.",
|
|
4
4
|
"library": "@digipair/skill-chatbot",
|
|
5
5
|
"element": "boost",
|
|
6
6
|
"metadata": { "standalone": true, "selector": "any", "url": "^$" },
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"library": "@digipair/skill-editor",
|
|
44
44
|
"element": "addDigipair",
|
|
45
45
|
"properties": {
|
|
46
|
-
"template": "
|
|
46
|
+
"template": "expert",
|
|
47
47
|
"data": {
|
|
48
48
|
"digipair": "EVALUATE:request.body.prompt",
|
|
49
49
|
"name": "EVALUATE:variables.infos.name",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"library": "@digipair/skill-dsp",
|
|
33
33
|
"element": "generate",
|
|
34
34
|
"properties": {
|
|
35
|
-
"signature": "\"Extract the information for creating the digipair from the user's comment\"\ncomment:string \"User's comment describing the digipair to create\" -> \n name:string \"Very short name of the agent from the comment\", \n description:string \"Short description of the agent from the comment
|
|
35
|
+
"signature": "\"Extract the information for creating the digipair from the user's comment\"\ncomment:string \"User's comment describing the digipair to create\" -> \n name:string \"Very short name of the agent from the comment\", \n description:string \"Short description of the agent from the comment\", \n assistant:string \"Assistant's response to confirm that the digipair has been successfully added and recall to the user to update his IMPA and SMTP settings from the agent configuration\"",
|
|
36
36
|
"input": { "comment": "{{request.body.prompt}}" }
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"library": "@digipair/skill-dsp",
|
|
33
33
|
"element": "generate",
|
|
34
34
|
"properties": {
|
|
35
|
-
"signature": "\"Extract the information for creating the digipair from the user's comment\"\ncomment:string \"User's comment describing the digipair to create\" -> \n name:string \"Very short name of the agent from the comment\", \n description:string \"Short description of the agent from the comment
|
|
35
|
+
"signature": "\"Extract the information for creating the digipair from the user's comment\"\ncomment:string \"User's comment describing the digipair to create\" -> \n name:string \"Very short name of the agent from the comment\", \n description:string \"Short description of the agent from the comment\", \n assistant:string \"Assistant's response to confirm that the digipair has been successfully added and recall to the user to update his API key from the agent configuration\"",
|
|
36
36
|
"input": { "comment": "{{request.body.prompt}}" }
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
{
|
|
75
75
|
"library": "@digipair/skill-web-spectrum",
|
|
76
76
|
"element": "sp-menu-item",
|
|
77
|
-
"properties": { "textContent": "Add a digipair" },
|
|
77
|
+
"properties": { "textContent": "Add a digipair expert" },
|
|
78
78
|
"events": {
|
|
79
79
|
"click": [
|
|
80
80
|
{
|
|
@@ -83,7 +83,25 @@
|
|
|
83
83
|
"properties": {
|
|
84
84
|
"name": "executeBoost",
|
|
85
85
|
"selector": "digipair-chatbot",
|
|
86
|
-
"args": [{ "reasoning": "boost-add-digipair" }]
|
|
86
|
+
"args": [{ "reasoning": "boost-add-digipair-expert" }]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"library": "@digipair/skill-web-spectrum",
|
|
94
|
+
"element": "sp-menu-item",
|
|
95
|
+
"properties": { "textContent": "Add a digipair business process" },
|
|
96
|
+
"events": {
|
|
97
|
+
"click": [
|
|
98
|
+
{
|
|
99
|
+
"library": "@digipair/skill-web-interact",
|
|
100
|
+
"element": "execute",
|
|
101
|
+
"properties": {
|
|
102
|
+
"name": "executeBoost",
|
|
103
|
+
"selector": "digipair-chatbot",
|
|
104
|
+
"args": [{ "reasoning": "boost-add-digipair-business-process" }]
|
|
87
105
|
}
|
|
88
106
|
}
|
|
89
107
|
]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"summary": "Chatbot",
|
|
3
|
+
"description": "Chatbot",
|
|
4
|
+
"library": "@digipair/skill-web",
|
|
5
|
+
"element": "page",
|
|
6
|
+
"metadata": {},
|
|
7
|
+
"properties": {
|
|
8
|
+
"body": [
|
|
9
|
+
{
|
|
10
|
+
"library": "@digipair/skill-web-chatbot",
|
|
11
|
+
"element": "digipair-chatbot-full",
|
|
12
|
+
"properties": { "code": "{{request.digipair}}" }
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"styleBody": "background-color:#212E3C;"
|
|
16
|
+
},
|
|
17
|
+
"pins": []
|
|
18
|
+
}
|
|
@@ -6,9 +6,13 @@
|
|
|
6
6
|
"@digipair/skill-basic": "latest",
|
|
7
7
|
"@digipair/skill-factory": "latest",
|
|
8
8
|
"@digipair/skill-service": "latest",
|
|
9
|
+
"@digipair/skill-dsp": "latest",
|
|
9
10
|
"@digipair/skill-sse": "latest",
|
|
10
11
|
"@digipair/skill-common": "latest",
|
|
11
|
-
"@digipair/skill-debug": "latest"
|
|
12
|
+
"@digipair/skill-debug": "latest",
|
|
13
|
+
"@digipair/skill-web": "latest",
|
|
14
|
+
"@digipair/skill-web-chatbot": "latest",
|
|
15
|
+
"@digipair/skill-web-inputs": "latest"
|
|
12
16
|
},
|
|
13
17
|
"variables": {},
|
|
14
18
|
"privates": {}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Generating a response for the user via the chatbot.",
|
|
3
|
+
"summary": "Conversation",
|
|
4
|
+
"library": "@digipair/skill-chatbot",
|
|
5
|
+
"element": "boost",
|
|
6
|
+
"metadata": {
|
|
7
|
+
"standalone": false,
|
|
8
|
+
"selector": "any",
|
|
9
|
+
"url": "^$"
|
|
10
|
+
},
|
|
11
|
+
"properties": {
|
|
12
|
+
"steps": [
|
|
13
|
+
{
|
|
14
|
+
"name": "Conversation",
|
|
15
|
+
"execute": [
|
|
16
|
+
{
|
|
17
|
+
"library": "@digipair/skill-basic",
|
|
18
|
+
"element": "setVariable",
|
|
19
|
+
"properties": {
|
|
20
|
+
"name": "history",
|
|
21
|
+
"value": "EVALUATE:if request.body.inputs[1].value = null then []\nelse request.body.inputs[1].value"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"library": "@digipair/skill-dsp",
|
|
26
|
+
"element": "agent",
|
|
27
|
+
"properties": {
|
|
28
|
+
"name": "Assistant",
|
|
29
|
+
"description": "You are a helpful assistant, capable of explaining concepts in a simple manner. If you're unsure of an answer, you can say \"I don't know\" or \"I'm not sure.\"",
|
|
30
|
+
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer\"",
|
|
31
|
+
"input": {
|
|
32
|
+
"userQuestion": "{{request.body.prompt}}",
|
|
33
|
+
"history": "EVALUATE:variables.history"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"library": "@digipair/skill-factory",
|
|
39
|
+
"element": "start",
|
|
40
|
+
"properties": {
|
|
41
|
+
"reasoning": "answer",
|
|
42
|
+
"body": {
|
|
43
|
+
"assistant": "{{previous.answer}}",
|
|
44
|
+
"boost": [
|
|
45
|
+
{
|
|
46
|
+
"prompt": true,
|
|
47
|
+
"required": true,
|
|
48
|
+
"step": "Conversation",
|
|
49
|
+
"inputs": [
|
|
50
|
+
{
|
|
51
|
+
"library": "@digipair/skill-web-inputs",
|
|
52
|
+
"element": "digipair-input-hidden",
|
|
53
|
+
"properties": {
|
|
54
|
+
"value": "EVALUATE:flatten([variables.history, [\n \"user: \" + request.body.prompt,\n \"assistant: \" + parent.previous.answer\n]])"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"pins": []
|
|
68
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<%= name %>",
|
|
3
|
+
"description": "<%= description %>",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"avatar": "avatar.png",
|
|
6
|
+
"primary": "#51E0DC",
|
|
7
|
+
"textPrimary": "#242E3B",
|
|
8
|
+
"secondary": "#242E3B",
|
|
9
|
+
"textSecondary": "#FFFFFF"
|
|
10
|
+
},
|
|
11
|
+
"libraries": {
|
|
12
|
+
"@digipair/skill-service": "latest",
|
|
13
|
+
"@digipair/skill-chatbot": "latest",
|
|
14
|
+
"@digipair/skill-dsp": "latest",
|
|
15
|
+
"@digipair/skill-web": "latest",
|
|
16
|
+
"@digipair/skill-factory": "latest",
|
|
17
|
+
"@digipair/skill-basic": "latest",
|
|
18
|
+
"@digipair/skill-debug": "latest",
|
|
19
|
+
"@digipair/skill-web-debug": "latest",
|
|
20
|
+
"@digipair/skill-web-chatbot": "latest",
|
|
21
|
+
"@digipair/skill-web-inputs": "latest",
|
|
22
|
+
"@digipair/skill-web-interact": "latest"
|
|
23
|
+
},
|
|
24
|
+
"variables": {},
|
|
25
|
+
"privates": {},
|
|
26
|
+
"digipair": "<%= digipair %>"
|
|
27
|
+
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"name": "Assistant",
|
|
29
29
|
"description": "You are a helpful assistant, capable of explaining concepts in a simple manner. If you're unsure of an answer, you can say \"I don't know\" or \"I'm not sure.\"",
|
|
30
|
-
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer
|
|
30
|
+
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer\"",
|
|
31
31
|
"input": {
|
|
32
32
|
"userQuestion": "{{request.body.prompt}}",
|
|
33
33
|
"history": "EVALUATE:variables.history"
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "digipair:<%= digipair %>",
|
|
5
|
+
"summary": "<%= name %>",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"x-icon": "🤖"
|
|
8
|
+
},
|
|
9
|
+
"paths": {
|
|
10
|
+
"/answer": {
|
|
11
|
+
"post": {
|
|
12
|
+
"tags": ["boost"],
|
|
13
|
+
"summary": "<%= name %> response",
|
|
14
|
+
"parameters": [
|
|
15
|
+
{
|
|
16
|
+
"name": "prompt",
|
|
17
|
+
"required": false,
|
|
18
|
+
"description": "User question",
|
|
19
|
+
"schema": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "assistant",
|
|
25
|
+
"required": true,
|
|
26
|
+
"summary": "Assistant's response",
|
|
27
|
+
"schema": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "userId",
|
|
33
|
+
"required": false,
|
|
34
|
+
"summary": "User Id",
|
|
35
|
+
"schema": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "boost",
|
|
41
|
+
"required": false,
|
|
42
|
+
"summary": "Boost used to push the user request",
|
|
43
|
+
"schema": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"$ref": "#/components/schemas/Boost"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "command",
|
|
52
|
+
"required": false,
|
|
53
|
+
"summary": "Commands executed on the chatbot",
|
|
54
|
+
"schema": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "boosts",
|
|
63
|
+
"required": false,
|
|
64
|
+
"summary": "List of proposed boosts",
|
|
65
|
+
"schema": {
|
|
66
|
+
"type": "object"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "sources",
|
|
71
|
+
"required": false,
|
|
72
|
+
"summary": "List of sources used to respond to the user",
|
|
73
|
+
"schema": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "object"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "logs",
|
|
82
|
+
"required": false,
|
|
83
|
+
"summary": "Useful information for debugging reasoning",
|
|
84
|
+
"schema": {
|
|
85
|
+
"type": "object"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"x-events": []
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"components": {
|
|
94
|
+
"schemas": {
|
|
95
|
+
"Boost": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"tags": ["boost"],
|
|
98
|
+
"summary": "Boost",
|
|
99
|
+
"properties": {
|
|
100
|
+
"prompt": {
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
},
|
|
103
|
+
"required": {
|
|
104
|
+
"type": "boolean"
|
|
105
|
+
},
|
|
106
|
+
"selector": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"url": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"step": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"inputs": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": []
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"name": "Assistant",
|
|
29
29
|
"description": "You are a helpful assistant, capable of explaining concepts in a simple manner. If you're unsure of an answer, you can say \"I don't know\" or \"I'm not sure.\"",
|
|
30
|
-
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer
|
|
30
|
+
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer\"",
|
|
31
31
|
"input": {
|
|
32
32
|
"userQuestion": "{{request.body.prompt}}",
|
|
33
33
|
"history": "EVALUATE:variables.history"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"name": "Assistant",
|
|
29
29
|
"description": "You are a helpful assistant, capable of explaining concepts in a simple manner. If you're unsure of an answer, you can say \"I don't know\" or \"I'm not sure.\"",
|
|
30
|
-
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer
|
|
30
|
+
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer\"",
|
|
31
31
|
"input": {
|
|
32
32
|
"userQuestion": "{{request.body.prompt}}",
|
|
33
33
|
"history": "EVALUATE:variables.history"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"name": "Assistant",
|
|
29
29
|
"description": "You are a helpful assistant, capable of explaining concepts in a simple manner. If you're unsure of an answer, you can say \"I don't know\" or \"I'm not sure.\"",
|
|
30
|
-
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer
|
|
30
|
+
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer\"",
|
|
31
31
|
"input": {
|
|
32
32
|
"userQuestion": "{{request.body.prompt}}",
|
|
33
33
|
"history": "EVALUATE:variables.history"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"name": "Assistant",
|
|
29
29
|
"description": "You are a helpful assistant, capable of explaining concepts in a simple manner. If you're unsure of an answer, you can say \"I don't know\" or \"I'm not sure.\"",
|
|
30
|
-
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer
|
|
30
|
+
"signature": "\"Provide a very short, precise, and concise answer to the user's question using only your knowledge base.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer\"",
|
|
31
31
|
"input": {
|
|
32
32
|
"userQuestion": "{{request.body.prompt}}",
|
|
33
33
|
"history": "EVALUATE:variables.history"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|