Skip to content

Commit cc6d81f

Browse files
authored
Merge pull request #15 from code0-tech/feat/#14
Adjusting few shots to current definition def-0.0.28
2 parents b459892 + ca4c20f commit cc6d81f

1 file changed

Lines changed: 23 additions & 41 deletions

File tree

few_shots.configuration.json

Lines changed: 23 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
11
[
22
{
3-
"prompt": "Erstelle einen Webhook flow, welche4 ein user objekt speichert und anschließend die mail als response zurückgibt.",
3+
"prompt": "Erstelle einen Webhook flow, welche ein user objekt entgegennimmt und anschließend die mail als response zurückgibt.",
44
"flow": {
55
"name": "User email webhook",
66
"nodes": [
77
{
8-
"functionIdentifier": "std::control::value",
8+
"functionIdentifier": "rest::control::respond",
99
"id": 1,
10-
"nextNodeId": 2,
11-
"parameters": [
12-
{
13-
"value": {
14-
"email": "test@test.com",
15-
"username": "test"
16-
}
17-
}
18-
]
19-
},
20-
{
21-
"functionIdentifier": "http::response::create",
22-
"id": 2,
23-
"nextNodeId": 3,
2410
"parameters": [
2511
{
2612
"value": 200
@@ -29,26 +15,25 @@
2915
"value": {}
3016
},
3117
{
32-
"nodeFunctionId": 1,
33-
"referencePath": [{
34-
"path": "email"
35-
}]
36-
}
37-
]
38-
},
39-
{
40-
"functionIdentifier": "rest::control::respond",
41-
"id": 3,
42-
"parameters": [
43-
{
44-
"nodeFunctionId": 2
18+
"nodeFunctionId": 0,
19+
"referencePath": [
20+
{
21+
"path": "email"
22+
}
23+
]
4524
}
4625
]
4726
}
4827
],
4928
"startingNodeId": 1,
5029
"type": "REST",
5130
"settings": [
31+
{
32+
"value": {
33+
"email": "",
34+
"username": ""
35+
}
36+
},
5237
{
5338
"value": "/webhook/user"
5439
},
@@ -69,7 +54,11 @@
6954
"nextNodeId": 4,
7055
"parameters": [
7156
{
72-
"value": [1, 2, 3]
57+
"value": [
58+
1,
59+
2,
60+
3
61+
]
7362
},
7463
{
7564
"startingNodeId": 2
@@ -101,9 +90,8 @@
10190
]
10291
},
10392
{
104-
"functionIdentifier": "http::response::create",
93+
"functionIdentifier": "rest::control::respond",
10594
"id": 4,
106-
"nextNodeId": 5,
10795
"parameters": [
10896
{
10997
"value": 200
@@ -115,20 +103,14 @@
115103
"nodeFunctionId": 1
116104
}
117105
]
118-
},
119-
{
120-
"functionIdentifier": "rest::control::respond",
121-
"id": 5,
122-
"parameters": [
123-
{
124-
"nodeFunctionId": 4
125-
}
126-
]
127106
}
128107
],
129108
"startingNodeId": 1,
130109
"type": "REST",
131110
"settings": [
111+
{
112+
"value": {}
113+
},
132114
{
133115
"value": "/webhook/map"
134116
},

0 commit comments

Comments
 (0)