digipair 0.117.4 → 0.117.6
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/assets/digipairs/common/answer.json +30 -30
- package/assets/digipairs/common/conversation.json +3 -3
- package/assets/digipairs/common/schema.json.json +64 -5
- package/assets/digipairs/studio/action-answer.json +30 -30
- package/assets/digipairs/studio/action-openapi2schema.json +24 -24
- package/assets/digipairs/studio/boost-duplicate.json +5 -5
- package/assets/digipairs/studio/boost-plan.json +1 -1
- package/assets/digipairs/studio/boost-tool-add-client-mcp.json +11 -11
- package/assets/digipairs/studio/boost-tool-add-library.json +11 -11
- package/assets/digipairs/studio/boost-tool-add-openapi.json +24 -24
- package/assets/digipairs/studio/boost-tool-add.json +6 -6
- package/assets/digipairs/studio/boost-tool-task-add.json +1 -1
- package/assets/digipairs/studio/boost-worker-add.json +6 -6
- package/assets/digipairs/studio/boost-worker-task-add.json +1 -1
- package/assets/digipairs/studio/common-edit.json +2 -2
- package/assets/digipairs/studio/consumptions-monthly.json +8 -8
- package/assets/digipairs/studio/consumptions.json +8 -8
- package/assets/digipairs/studio/conversation.json +4 -4
- package/assets/digipairs/studio/logs.json +7 -7
- package/assets/digipairs/studio/process-list.json +2 -2
- package/assets/digipairs/studio/tool-add.json +1 -1
- package/assets/digipairs/studio/tool-edit.json +17 -17
- package/assets/digipairs/studio/tool-task-add.json +14 -14
- package/assets/digipairs/studio/tool-task-edit.json +10 -10
- package/assets/digipairs/studio/tool-task-editor.json +6 -6
- package/assets/digipairs/studio/tool-task-json.json +4 -4
- package/assets/digipairs/studio/tool-tasks.json +26 -26
- package/assets/digipairs/studio/tool-tool-add.json +51 -24
- package/assets/digipairs/studio/tools.json +5 -5
- package/assets/digipairs/studio/worker-edit.json +18 -18
- package/assets/digipairs/studio/worker-task-add.json +14 -14
- package/assets/digipairs/studio/worker-task-edit.json +10 -10
- package/assets/digipairs/studio/worker-task-editor.json +6 -6
- package/assets/digipairs/studio/worker-task-json.json +4 -4
- package/assets/digipairs/studio/worker-tasks.json +26 -26
- package/assets/digipairs/studio/worker-tool-add.json +52 -25
- package/assets/digipairs/studio/workers.json +9 -9
- package/assets/templates/openapi-apikey/fallback.json +32 -32
- package/assets/templates/openapi-apikey/openapi.json +1 -1
- package/assets/templates/tool-client-mcp-apikey/fallback.json +1 -1
- package/assets/templates/tool-library/fallback.json +1 -1
- package/main.js +33 -24
- package/package.json +38 -38
- package/src/app/assets/digipairs/common/answer.json +30 -30
- package/src/app/assets/digipairs/common/conversation.json +3 -3
- package/src/app/assets/digipairs/common/schema.json.json +64 -5
- package/src/app/assets/digipairs/studio/action-answer.json +30 -30
- package/src/app/assets/digipairs/studio/action-openapi2schema.json +24 -24
- package/src/app/assets/digipairs/studio/boost-duplicate.json +5 -5
- package/src/app/assets/digipairs/studio/boost-plan.json +1 -1
- package/src/app/assets/digipairs/studio/boost-tool-add-client-mcp.json +11 -11
- package/src/app/assets/digipairs/studio/boost-tool-add-library.json +11 -11
- package/src/app/assets/digipairs/studio/boost-tool-add-openapi.json +24 -24
- package/src/app/assets/digipairs/studio/boost-tool-add.json +6 -6
- package/src/app/assets/digipairs/studio/boost-tool-task-add.json +1 -1
- package/src/app/assets/digipairs/studio/boost-worker-add.json +6 -6
- package/src/app/assets/digipairs/studio/boost-worker-task-add.json +1 -1
- package/src/app/assets/digipairs/studio/common-edit.json +2 -2
- package/src/app/assets/digipairs/studio/consumptions-monthly.json +8 -8
- package/src/app/assets/digipairs/studio/consumptions.json +8 -8
- package/src/app/assets/digipairs/studio/conversation.json +4 -4
- package/src/app/assets/digipairs/studio/logs.json +7 -7
- package/src/app/assets/digipairs/studio/process-list.json +2 -2
- package/src/app/assets/digipairs/studio/tool-add.json +1 -1
- package/src/app/assets/digipairs/studio/tool-edit.json +17 -17
- package/src/app/assets/digipairs/studio/tool-task-add.json +14 -14
- package/src/app/assets/digipairs/studio/tool-task-edit.json +10 -10
- package/src/app/assets/digipairs/studio/tool-task-editor.json +6 -6
- package/src/app/assets/digipairs/studio/tool-task-json.json +4 -4
- package/src/app/assets/digipairs/studio/tool-tasks.json +26 -26
- package/src/app/assets/digipairs/studio/tool-tool-add.json +51 -24
- package/src/app/assets/digipairs/studio/tools.json +5 -5
- package/src/app/assets/digipairs/studio/worker-edit.json +18 -18
- package/src/app/assets/digipairs/studio/worker-task-add.json +14 -14
- package/src/app/assets/digipairs/studio/worker-task-edit.json +10 -10
- package/src/app/assets/digipairs/studio/worker-task-editor.json +6 -6
- package/src/app/assets/digipairs/studio/worker-task-json.json +4 -4
- package/src/app/assets/digipairs/studio/worker-tasks.json +26 -26
- package/src/app/assets/digipairs/studio/worker-tool-add.json +52 -25
- package/src/app/assets/digipairs/studio/workers.json +9 -9
- package/src/app/assets/templates/openapi-apikey/fallback.json +32 -32
- package/src/app/assets/templates/openapi-apikey/openapi.json +1 -1
- package/src/app/assets/templates/tool-client-mcp-apikey/fallback.json +1 -1
- package/src/app/assets/templates/tool-library/fallback.json +1 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"library": "@digipair/skill-basic",
|
|
16
16
|
"element": "transform",
|
|
17
17
|
"properties": {
|
|
18
|
-
"value": "FEEL:if requester.request.body.prompt != null and requester.request.body.prompt != \"\" then getTime() else null"
|
|
18
|
+
"value": "FEEL: if requester.request.body.prompt != null and requester.request.body.prompt != \"\" then getTime() else null"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
]
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"properties": {
|
|
28
28
|
"name": "boost",
|
|
29
29
|
"value": {
|
|
30
|
-
"reasoning": "FEEL:requester.request.reasoning",
|
|
31
|
-
"step": "FEEL:request.body.boost[1].step",
|
|
32
|
-
"prompt": "FEEL:request.body.boost[1].prompt",
|
|
33
|
-
"required": "FEEL:request.body.boost[1].required",
|
|
34
|
-
"selector": "FEEL:request.body.boost[1].selector",
|
|
35
|
-
"url": "FEEL:request.body.boost[1].url",
|
|
36
|
-
"inputs": "FEEL:request.body.boost[1].inputs",
|
|
37
|
-
"context": "FEEL:requester.request.body.context"
|
|
30
|
+
"reasoning": "FEEL: requester.request.reasoning",
|
|
31
|
+
"step": "FEEL: request.body.boost[1].step",
|
|
32
|
+
"prompt": "FEEL: request.body.boost[1].prompt",
|
|
33
|
+
"required": "FEEL: request.body.boost[1].required",
|
|
34
|
+
"selector": "FEEL: request.body.boost[1].selector",
|
|
35
|
+
"url": "FEEL: request.body.boost[1].url",
|
|
36
|
+
"inputs": "FEEL: request.body.boost[1].inputs",
|
|
37
|
+
"context": "FEEL: requester.request.body.context"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"conditions": {
|
|
41
|
-
"if": "FEEL:request.body.boost[1]"
|
|
41
|
+
"if": "FEEL: request.body.boost[1]"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
{
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
"element": "transform",
|
|
47
47
|
"properties": {
|
|
48
48
|
"value": {
|
|
49
|
-
"uuid": "FEEL:previous[1]",
|
|
50
|
-
"parent_history": "FEEL:variables.userMessageId",
|
|
51
|
-
"parent_conversation": "FEEL:requester.request.body.parent_conversation",
|
|
49
|
+
"uuid": "FEEL: previous[1]",
|
|
50
|
+
"parent_history": "FEEL: variables.userMessageId",
|
|
51
|
+
"parent_conversation": "FEEL: requester.request.body.parent_conversation",
|
|
52
52
|
"assistant": "{{request.body.assistant}}",
|
|
53
|
-
"command": "FEEL:if request.body.command then request.body.command else []",
|
|
54
|
-
"boost": "FEEL:variables.boost",
|
|
55
|
-
"boosts": "FEEL:request.body.boosts",
|
|
56
|
-
"sources": "FEEL:request.body.sources",
|
|
57
|
-
"files": "FEEL:request.body.files",
|
|
58
|
-
"logs": "FEEL:request.body.logs"
|
|
53
|
+
"command": "FEEL: if request.body.command then request.body.command else []",
|
|
54
|
+
"boost": "FEEL: variables.boost",
|
|
55
|
+
"boosts": "FEEL: request.body.boosts",
|
|
56
|
+
"sources": "FEEL: request.body.sources",
|
|
57
|
+
"files": "FEEL: request.body.files",
|
|
58
|
+
"logs": "FEEL: request.body.logs"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
},
|
|
@@ -68,20 +68,20 @@
|
|
|
68
68
|
"library": "@digipair/skill-chatbot",
|
|
69
69
|
"element": "answer",
|
|
70
70
|
"properties": {
|
|
71
|
-
"assistant": "FEEL:data.assistant",
|
|
72
|
-
"boosts": "FEEL:data.boosts",
|
|
73
|
-
"logs": "FEEL:data.logs",
|
|
74
|
-
"parent_conversation": "FEEL:data.parent_conversation",
|
|
75
|
-
"parent_history": "FEEL:data.parent_history",
|
|
76
|
-
"sources": "FEEL:data.sources",
|
|
77
|
-
"files": "FEEL:data.files",
|
|
78
|
-
"uuid": "FEEL:data.uuid",
|
|
79
|
-
"boost": "FEEL:data.boost",
|
|
80
|
-
"command": "FEEL:data.command"
|
|
71
|
+
"assistant": "FEEL: data.assistant",
|
|
72
|
+
"boosts": "FEEL: data.boosts",
|
|
73
|
+
"logs": "FEEL: data.logs",
|
|
74
|
+
"parent_conversation": "FEEL: data.parent_conversation",
|
|
75
|
+
"parent_history": "FEEL: data.parent_history",
|
|
76
|
+
"sources": "FEEL: data.sources",
|
|
77
|
+
"files": "FEEL: data.files",
|
|
78
|
+
"uuid": "FEEL: data.uuid",
|
|
79
|
+
"boost": "FEEL: data.boost",
|
|
80
|
+
"command": "FEEL: data.command"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
|
-
"context": "FEEL:context put(requester, \"data\", previous)"
|
|
84
|
+
"context": "FEEL: context put(requester, \"data\", previous)"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
]
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"element": "setVariable",
|
|
19
19
|
"properties": {
|
|
20
20
|
"name": "history",
|
|
21
|
-
"value": "FEEL:if request.body.inputs[1].value = null then []\nelse request.body.inputs[1].value"
|
|
21
|
+
"value": "FEEL: if request.body.inputs[1].value = null then []\nelse request.body.inputs[1].value"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
{
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"signature": "\"You are a helpful assistant, capable of explaining concepts in a simple manner.\" \nuserQuestion:string,\nhistory?:string[] ->\n answer: string \"Assistant answer\"",
|
|
29
29
|
"input": {
|
|
30
30
|
"userQuestion": "{{request.body.prompt}}",
|
|
31
|
-
"history": "FEEL:variables.history"
|
|
31
|
+
"history": "FEEL: variables.history"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
},
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"library": "@digipair/skill-web-inputs",
|
|
50
50
|
"element": "digipair-input-hidden",
|
|
51
51
|
"properties": {
|
|
52
|
-
"value": "FEEL:flatten([variables.history, [\n \"user: \" + request.body.prompt,\n \"assistant: \" + parent.previous.answer\n]])"
|
|
52
|
+
"value": "FEEL: flatten([variables.history, [\n \"user: \" + request.body.prompt,\n \"assistant: \" + parent.previous.answer\n]])"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
]
|
|
@@ -1,19 +1,78 @@
|
|
|
1
1
|
{
|
|
2
|
-
"summary": "Liste les raisonnements partagés",
|
|
3
2
|
"description": "Gestion des interfaces des digipairs",
|
|
3
|
+
"summary": "Liste les raisonnements partagés",
|
|
4
4
|
"library": "@digipair/skill-service",
|
|
5
5
|
"element": "service",
|
|
6
6
|
"metadata": {},
|
|
7
7
|
"properties": {
|
|
8
8
|
"execute": [
|
|
9
9
|
{
|
|
10
|
-
"library": "@digipair/skill-
|
|
11
|
-
"element": "
|
|
10
|
+
"library": "@digipair/skill-basic",
|
|
11
|
+
"element": "setVariable",
|
|
12
|
+
"properties": {
|
|
13
|
+
"name": "schemaRoles",
|
|
14
|
+
"execute": [
|
|
15
|
+
{
|
|
16
|
+
"library": "@digipair/skill-common",
|
|
17
|
+
"element": "roles",
|
|
18
|
+
"properties": {
|
|
19
|
+
"digipair": "FEEL: request.digipair"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"library": "@digipair/skill-factory",
|
|
24
|
+
"element": "start",
|
|
25
|
+
"properties": {
|
|
26
|
+
"reasoning": "schema.json",
|
|
27
|
+
"digipair": "FEEL: substring(item.key, 10)"
|
|
28
|
+
},
|
|
29
|
+
"conditions": {
|
|
30
|
+
"each": "FEEL: get entries(previous)[\n starts with(key,\"digipair:\")\n]"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"library": "@digipair/skill-basic",
|
|
38
|
+
"element": "setVariable",
|
|
39
|
+
"properties": {
|
|
40
|
+
"name": "schema",
|
|
41
|
+
"execute": [
|
|
42
|
+
{
|
|
43
|
+
"library": "@digipair/skill-common",
|
|
44
|
+
"element": "schema",
|
|
45
|
+
"properties": {
|
|
46
|
+
"digipair": "FEEL: request.digipair"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"library": "@digipair/skill-basic",
|
|
54
|
+
"element": "setVariable",
|
|
55
|
+
"properties": {
|
|
56
|
+
"name": "paths",
|
|
57
|
+
"value": "FEEL: context merge( \n append(\n variables.schemaRoles.paths, \n variables.schema.paths\n )\n)"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"library": "@digipair/skill-basic",
|
|
62
|
+
"element": "setVariable",
|
|
63
|
+
"properties": {
|
|
64
|
+
"name": "sceneBlocks",
|
|
65
|
+
"value": "FEEL: context merge(\n append(\n get value(variables.schemaRoles, \"x-scene-blocks\"), \n get value(variables.schema, \"x-scene-blocks\")\n )\n)"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"library": "@digipair/skill-basic",
|
|
70
|
+
"element": "transform",
|
|
12
71
|
"properties": {
|
|
13
|
-
"
|
|
72
|
+
"value": "FEEL: context merge(\n variables.schema,\n { \"paths\":variables.paths },\n { \"x-scene-blocks\": variables.sceneBlocks }\n)"
|
|
14
73
|
}
|
|
15
74
|
}
|
|
16
75
|
]
|
|
17
76
|
},
|
|
18
77
|
"pins": []
|
|
19
|
-
}
|
|
78
|
+
}
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"library": "@digipair/skill-basic",
|
|
107
107
|
"element": "transform",
|
|
108
108
|
"properties": {
|
|
109
|
-
"value": "FEEL:if requester.request.body.prompt != null and requester.request.body.prompt != \"\" then getTime() else null"
|
|
109
|
+
"value": "FEEL: if requester.request.body.prompt != null and requester.request.body.prompt != \"\" then getTime() else null"
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
]
|
|
@@ -118,18 +118,18 @@
|
|
|
118
118
|
"properties": {
|
|
119
119
|
"name": "boost",
|
|
120
120
|
"value": {
|
|
121
|
-
"reasoning": "FEEL:requester.request.reasoning",
|
|
122
|
-
"step": "FEEL:request.body.boost[1].step",
|
|
123
|
-
"prompt": "FEEL:request.body.boost[1].prompt",
|
|
124
|
-
"required": "FEEL:request.body.boost[1].required",
|
|
125
|
-
"selector": "FEEL:request.body.boost[1].selector",
|
|
126
|
-
"url": "FEEL:request.body.boost[1].url",
|
|
127
|
-
"inputs": "FEEL:request.body.boost[1].inputs",
|
|
128
|
-
"context": "FEEL:requester.request.body.context"
|
|
121
|
+
"reasoning": "FEEL: requester.request.reasoning",
|
|
122
|
+
"step": "FEEL: request.body.boost[1].step",
|
|
123
|
+
"prompt": "FEEL: request.body.boost[1].prompt",
|
|
124
|
+
"required": "FEEL: request.body.boost[1].required",
|
|
125
|
+
"selector": "FEEL: request.body.boost[1].selector",
|
|
126
|
+
"url": "FEEL: request.body.boost[1].url",
|
|
127
|
+
"inputs": "FEEL: request.body.boost[1].inputs",
|
|
128
|
+
"context": "FEEL: requester.request.body.context"
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"conditions": {
|
|
132
|
-
"if": "FEEL:request.body.boost[1]"
|
|
132
|
+
"if": "FEEL: request.body.boost[1]"
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
{
|
|
@@ -137,16 +137,16 @@
|
|
|
137
137
|
"element": "transform",
|
|
138
138
|
"properties": {
|
|
139
139
|
"value": {
|
|
140
|
-
"uuid": "FEEL:previous[1]",
|
|
141
|
-
"parent_history": "FEEL:variables.userMessageId",
|
|
142
|
-
"parent_conversation": "FEEL:requester.request.body.parent_conversation",
|
|
140
|
+
"uuid": "FEEL: previous[1]",
|
|
141
|
+
"parent_history": "FEEL: variables.userMessageId",
|
|
142
|
+
"parent_conversation": "FEEL: requester.request.body.parent_conversation",
|
|
143
143
|
"assistant": "{{request.body.assistant}}",
|
|
144
|
-
"command": "FEEL:if request.body.command then request.body.command else []",
|
|
145
|
-
"boost": "FEEL:variables.boost",
|
|
146
|
-
"boosts": "FEEL:request.body.boosts",
|
|
147
|
-
"sources": "FEEL:request.body.sources",
|
|
148
|
-
"files": "FEEL:request.body.files",
|
|
149
|
-
"logs": "FEEL:request.body.logs"
|
|
144
|
+
"command": "FEEL: if request.body.command then request.body.command else []",
|
|
145
|
+
"boost": "FEEL: variables.boost",
|
|
146
|
+
"boosts": "FEEL: request.body.boosts",
|
|
147
|
+
"sources": "FEEL: request.body.sources",
|
|
148
|
+
"files": "FEEL: request.body.files",
|
|
149
|
+
"logs": "FEEL: request.body.logs"
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
},
|
|
@@ -159,20 +159,20 @@
|
|
|
159
159
|
"library": "@digipair/skill-chatbot",
|
|
160
160
|
"element": "answer",
|
|
161
161
|
"properties": {
|
|
162
|
-
"assistant": "FEEL:data.assistant",
|
|
163
|
-
"command": "FEEL:data.command",
|
|
164
|
-
"boosts": "FEEL:data.boosts",
|
|
165
|
-
"sources": "FEEL:data.sources",
|
|
166
|
-
"files": "FEEL:data.files",
|
|
167
|
-
"logs": "FEEL:data.logs",
|
|
168
|
-
"boost": "FEEL:data.boost",
|
|
169
|
-
"parent_conversation": "FEEL:data.parent_conversation",
|
|
170
|
-
"parent_history": "FEEL:data.parent_history",
|
|
171
|
-
"uuid": "FEEL:data.uuid"
|
|
162
|
+
"assistant": "FEEL: data.assistant",
|
|
163
|
+
"command": "FEEL: data.command",
|
|
164
|
+
"boosts": "FEEL: data.boosts",
|
|
165
|
+
"sources": "FEEL: data.sources",
|
|
166
|
+
"files": "FEEL: data.files",
|
|
167
|
+
"logs": "FEEL: data.logs",
|
|
168
|
+
"boost": "FEEL: data.boost",
|
|
169
|
+
"parent_conversation": "FEEL: data.parent_conversation",
|
|
170
|
+
"parent_history": "FEEL: data.parent_history",
|
|
171
|
+
"uuid": "FEEL: data.uuid"
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
],
|
|
175
|
-
"context": "FEEL:context put(requester, \"data\", previous)"
|
|
175
|
+
"context": "FEEL: context put(requester, \"data\", previous)"
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
]
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"element": "setVariable",
|
|
47
47
|
"properties": {
|
|
48
48
|
"name": "openapi",
|
|
49
|
-
"value": "FEEL:request.body.openapi"
|
|
49
|
+
"value": "FEEL: request.body.openapi"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
{
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"element": "setVariable",
|
|
66
66
|
"properties": {
|
|
67
67
|
"name": "originalPath",
|
|
68
|
-
"value": "FEEL:item.key"
|
|
68
|
+
"value": "FEEL: item.key"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -86,14 +86,14 @@
|
|
|
86
86
|
"element": "setVariable",
|
|
87
87
|
"properties": {
|
|
88
88
|
"name": "params",
|
|
89
|
-
"value": "FEEL:item.value"
|
|
89
|
+
"value": "FEEL: item.value"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
94
|
"conditions": {
|
|
95
|
-
"if": "FEEL:item.key = \"parameters\"",
|
|
96
|
-
"each": "FEEL:get entries(item.value)"
|
|
95
|
+
"if": "FEEL: item.key = \"parameters\"",
|
|
96
|
+
"each": "FEEL: get entries(item.value)"
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
{
|
|
@@ -107,9 +107,9 @@
|
|
|
107
107
|
"properties": {
|
|
108
108
|
"name": "path",
|
|
109
109
|
"value": {
|
|
110
|
-
"key": "FEEL:if\n item.value.operationId != null\nthen\n replace(replace(replace(item.value.operationId, \"/\", \"\"), \"\\{\", \"\"), \"\\}\", \"\")\nelse\n item.key + replace(replace(replace(variables.originalPath, \"/\", \"-\"), \"\\{\", \"\"), \"\\}\", \"\")",
|
|
111
|
-
"value": "FEEL:item.value",
|
|
112
|
-
"method": "FEEL:item.key"
|
|
110
|
+
"key": "FEEL: if\n item.value.operationId != null\nthen\n replace(replace(replace(item.value.operationId, \"/\", \"\"), \"\\{\", \"\"), \"\\}\", \"\")\nelse\n item.key + replace(replace(replace(variables.originalPath, \"/\", \"-\"), \"\\{\", \"\"), \"\\}\", \"\")",
|
|
111
|
+
"value": "FEEL: item.value",
|
|
112
|
+
"method": "FEEL: item.key"
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
},
|
|
@@ -124,24 +124,24 @@
|
|
|
124
124
|
"element": "transform",
|
|
125
125
|
"properties": {
|
|
126
126
|
"value": {
|
|
127
|
-
"name": "FEEL:item.name",
|
|
128
|
-
"summary": "FEEL:item.name",
|
|
129
|
-
"description": "FEEL:if item.description != null then item.description else item.name",
|
|
130
|
-
"required": "FEEL:if item.required = true then true else false",
|
|
127
|
+
"name": "FEEL: item.name",
|
|
128
|
+
"summary": "FEEL: item.name",
|
|
129
|
+
"description": "FEEL: if item.description != null then item.description else item.name",
|
|
130
|
+
"required": "FEEL: if item.required = true then true else false",
|
|
131
131
|
"schema": {
|
|
132
|
-
"type": "FEEL:if list contains([\"string\", \"number\", \"boolean\"], item.schema.type) then item.schema.type else \"object\""
|
|
132
|
+
"type": "FEEL: if list contains([\"string\", \"number\", \"boolean\"], item.schema.type) then item.schema.type else \"object\""
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
"conditions": {
|
|
137
|
-
"each": "FEEL:if \n variables.path.value.parameters != null\nthen\n concatenate(\n variables.path.value.parameters, \n variables.params\n )\nelse\n variables.params"
|
|
137
|
+
"each": "FEEL: if \n variables.path.value.parameters != null\nthen\n concatenate(\n variables.path.value.parameters, \n variables.params\n )\nelse\n variables.params"
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"library": "@digipair/skill-basic",
|
|
142
142
|
"element": "transform",
|
|
143
143
|
"properties": {
|
|
144
|
-
"value": "FEEL:if variables.path.value.requestBody != null then \n append(previous, { \n \"name\": \"body\",\n \"summary\": \"body\",\n \"description\": \"body\",\n \"required\": if variables.path.value.requestBody.required = true then true else false,\n \"schema\": { \"type\": \"object\" }\n }) \nelse previous"
|
|
144
|
+
"value": "FEEL: if variables.path.value.requestBody != null then \n append(previous, { \n \"name\": \"body\",\n \"summary\": \"body\",\n \"description\": \"body\",\n \"required\": if variables.path.value.requestBody.required = true then true else false,\n \"schema\": { \"type\": \"object\" }\n }) \nelse previous"
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
]
|
|
@@ -152,15 +152,15 @@
|
|
|
152
152
|
"element": "transform",
|
|
153
153
|
"properties": {
|
|
154
154
|
"value": {
|
|
155
|
-
"key": "FEEL
|
|
155
|
+
"key": "FEEL: \"/\" + variables.path.key",
|
|
156
156
|
"value": {
|
|
157
157
|
"post": {
|
|
158
158
|
"tags": [
|
|
159
159
|
"service"
|
|
160
160
|
],
|
|
161
|
-
"summary": "FEEL:if \n variables.path.value.summary != null and \n variables.path.value.summary != \"\"\nthen\n variables.path.value.summary \nelse\n if \n variables.path.value.operationId != null\n then\n variables.path.value.operationId\n else\n variables.originalPath",
|
|
162
|
-
"description": "FEEL:if variables.path.value.description != null then variables.path.value.description else variables.path.value.operationId",
|
|
163
|
-
"parameters": "FEEL:variables.parameters",
|
|
161
|
+
"summary": "FEEL: if \n variables.path.value.summary != null and \n variables.path.value.summary != \"\"\nthen\n variables.path.value.summary \nelse\n if \n variables.path.value.operationId != null\n then\n variables.path.value.operationId\n else\n variables.originalPath",
|
|
162
|
+
"description": "FEEL: if variables.path.value.description != null then variables.path.value.description else variables.path.value.operationId",
|
|
163
|
+
"parameters": "FEEL: variables.parameters",
|
|
164
164
|
"x-events": []
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -170,21 +170,21 @@
|
|
|
170
170
|
]
|
|
171
171
|
},
|
|
172
172
|
"conditions": {
|
|
173
|
-
"if": "FEEL:list contains([\n \"get\",\n \"post\",\n \"put\",\n \"delete\",\n \"patch\",\n \"head\"\n], item.key)",
|
|
174
|
-
"each": "FEEL:get entries(item.value)"
|
|
173
|
+
"if": "FEEL: list contains([\n \"get\",\n \"post\",\n \"put\",\n \"delete\",\n \"patch\",\n \"head\"\n], item.key)",
|
|
174
|
+
"each": "FEEL: get entries(item.value)"
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
]
|
|
178
178
|
},
|
|
179
179
|
"conditions": {
|
|
180
|
-
"each": "FEEL:get entries(variables.openapi.paths)"
|
|
180
|
+
"each": "FEEL: get entries(variables.openapi.paths)"
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
"library": "@digipair/skill-basic",
|
|
185
185
|
"element": "transform",
|
|
186
186
|
"properties": {
|
|
187
|
-
"value": "FEEL:flatten(previous)"
|
|
187
|
+
"value": "FEEL: flatten(previous)"
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
]
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"library": "@digipair/skill-basic",
|
|
202
202
|
"element": "transform",
|
|
203
203
|
"properties": {
|
|
204
|
-
"value": "FEEL:JSONparse(previous)"
|
|
204
|
+
"value": "FEEL: JSONparse(previous)"
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
]
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"properties": {
|
|
43
43
|
"signature": "\"Extraire les informations du raisonnement à partir du commentaire de l'utilisateur\" comment:string \"Commentaire de l'utilisateur décrivant le raisonnement\" -> \n reasoning:string \"Nom du raisonnement très court et en anglais\", \n description:string \"Description du raisonnement courte et en anglais\", \n assistant:string \"Réponse de l'assistant en anglais pour informer l'utilisateur que le raisonnement a bien été dupliqué\"",
|
|
44
44
|
"input": {
|
|
45
|
-
"comment": "FEEL:request.body.prompt"
|
|
45
|
+
"comment": "FEEL: request.body.prompt"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
"element": "setReasoning",
|
|
63
63
|
"properties": {
|
|
64
64
|
"digipair": "{{request.body.context.digipair}}",
|
|
65
|
-
"reasoning": "FEEL
|
|
65
|
+
"reasoning": "FEEL: \nif request.body.context.element = \"boost\" then \n \"boost-\" + request.body.prompt \nelse if request.body.context.element = \"action\" then \n \"action-\" + request.body.prompt \nelse if request.body.context.element = \"trigger\" then \n \"trigger-\" + request.body.prompt \nelse\n request.body.prompt",
|
|
66
66
|
"value": {
|
|
67
67
|
"summary": "{{variables.infos.reasoning}}",
|
|
68
68
|
"description": "{{variables.infos.description}}",
|
|
69
69
|
"library": "{{previous.library}}",
|
|
70
70
|
"element": "{{previous.element}}",
|
|
71
|
-
"properties": "FEEL:previous.properties",
|
|
72
|
-
"pins": "FEEL:previous.pins",
|
|
73
|
-
"metadata": "FEEL:previous.metadata"
|
|
71
|
+
"properties": "FEEL: previous.properties",
|
|
72
|
+
"pins": "FEEL: previous.pins",
|
|
73
|
+
"metadata": "FEEL: previous.metadata"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"properties": {
|
|
42
42
|
"signature": "comment:string -> cron:string \"task scheduling in relation to the comment or @startup to execute it only once\", assistant:string \"Assistant's response to indicate that the task has been successfully scheduled.\"",
|
|
43
43
|
"input": {
|
|
44
|
-
"comment": "FEEL:request.body.prompt"
|
|
44
|
+
"comment": "FEEL: request.body.prompt"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"element": "digipair-input-hidden",
|
|
66
66
|
"properties": {
|
|
67
67
|
"value": {
|
|
68
|
-
"digipair": "FEEL
|
|
69
|
-
"name": "FEEL:variables.infos.name",
|
|
70
|
-
"description": "FEEL:variables.infos.description",
|
|
71
|
-
"assistant": "FEEL:variables.infos.assistant"
|
|
68
|
+
"digipair": "FEEL: \"tool-\" + request.body.prompt",
|
|
69
|
+
"name": "FEEL: variables.infos.name",
|
|
70
|
+
"description": "FEEL: variables.infos.description",
|
|
71
|
+
"assistant": "FEEL: variables.infos.assistant"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -88,27 +88,27 @@
|
|
|
88
88
|
"properties": {
|
|
89
89
|
"template": "tool-client-mcp-apikey",
|
|
90
90
|
"data": {
|
|
91
|
-
"digipair": "FEEL:request.body.inputs[1].value.digipair",
|
|
92
|
-
"name": "FEEL:request.body.inputs[1].value.name",
|
|
93
|
-
"description": "FEEL:request.body.inputs[1].value.description",
|
|
94
|
-
"api": "FEEL:request.body.prompt",
|
|
91
|
+
"digipair": "FEEL: request.body.inputs[1].value.digipair",
|
|
92
|
+
"name": "FEEL: request.body.inputs[1].value.name",
|
|
93
|
+
"description": "FEEL: request.body.inputs[1].value.description",
|
|
94
|
+
"api": "FEEL: request.body.prompt",
|
|
95
95
|
"key": "API_KEY"
|
|
96
96
|
},
|
|
97
|
-
"digipair": "FEEL:request.body.inputs[1].value.digipair"
|
|
97
|
+
"digipair": "FEEL: request.body.inputs[1].value.digipair"
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"library": "@digipair/skill-editor",
|
|
102
102
|
"element": "reasonings",
|
|
103
103
|
"properties": {
|
|
104
|
-
"digipair": "FEEL:request.body.inputs[1].value.digipair"
|
|
104
|
+
"digipair": "FEEL: request.body.inputs[1].value.digipair"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"library": "digipair:studio",
|
|
109
109
|
"element": "action-answer",
|
|
110
110
|
"properties": {
|
|
111
|
-
"assistant": "FEEL:request.body.inputs[1].value.assistant",
|
|
111
|
+
"assistant": "FEEL: request.body.inputs[1].value.assistant",
|
|
112
112
|
"command": [
|
|
113
113
|
{
|
|
114
114
|
"library": "@digipair/skill-web-interact",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"library": "@digipair/skill-web-inputs",
|
|
28
28
|
"element": "digipair-input-hidden",
|
|
29
29
|
"properties": {
|
|
30
|
-
"value": "FEEL:request.body.context.library"
|
|
30
|
+
"value": "FEEL: request.body.context.library"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
]
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"library": "@digipair/skill-editor",
|
|
70
70
|
"element": "schemas",
|
|
71
71
|
"properties": {
|
|
72
|
-
"libraries": "FEEL:context([{ key: request.body.inputs[1].value, value: \"latest\" }])",
|
|
72
|
+
"libraries": "FEEL: context([{ key: request.body.inputs[1].value, value: \"latest\" }])",
|
|
73
73
|
"language": "en"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"library": "@digipair/skill-basic",
|
|
78
78
|
"element": "transform",
|
|
79
79
|
"properties": {
|
|
80
|
-
"value": "FEEL:context merge(\n previous[1], \n {\n info: context merge(previous[1].info, { \n title: \"digipair:tool-\" + request.body.prompt \n })\n }\n)"
|
|
80
|
+
"value": "FEEL: context merge(\n previous[1], \n {\n info: context merge(previous[1].info, { \n title: \"digipair:tool-\" + request.body.prompt \n })\n }\n)"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
]
|
|
@@ -89,27 +89,27 @@
|
|
|
89
89
|
"properties": {
|
|
90
90
|
"template": "tool-library",
|
|
91
91
|
"data": {
|
|
92
|
-
"digipair": "FEEL
|
|
93
|
-
"name": "FEEL:variables.infos.name",
|
|
94
|
-
"description": "FEEL:variables.infos.description",
|
|
95
|
-
"library": "FEEL:request.body.inputs[1].value",
|
|
96
|
-
"schema": "FEEL:variables.schema"
|
|
92
|
+
"digipair": "FEEL: \"tool-\" + request.body.prompt",
|
|
93
|
+
"name": "FEEL: variables.infos.name",
|
|
94
|
+
"description": "FEEL: variables.infos.description",
|
|
95
|
+
"library": "FEEL: request.body.inputs[1].value",
|
|
96
|
+
"schema": "FEEL: variables.schema"
|
|
97
97
|
},
|
|
98
|
-
"digipair": "FEEL
|
|
98
|
+
"digipair": "FEEL: \"tool-\" + request.body.prompt"
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"library": "@digipair/skill-editor",
|
|
103
103
|
"element": "reasonings",
|
|
104
104
|
"properties": {
|
|
105
|
-
"digipair": "FEEL
|
|
105
|
+
"digipair": "FEEL: \"tool-\" + request.body.prompt"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"library": "digipair:studio",
|
|
110
110
|
"element": "action-answer",
|
|
111
111
|
"properties": {
|
|
112
|
-
"assistant": "FEEL:variables.infos.assistant",
|
|
112
|
+
"assistant": "FEEL: variables.infos.assistant",
|
|
113
113
|
"command": [
|
|
114
114
|
{
|
|
115
115
|
"library": "@digipair/skill-web-interact",
|