Skip to content

Commit 4a92323

Browse files
committed
feat: adding few shots
1 parent ab1976b commit 4a92323

1 file changed

Lines changed: 141 additions & 0 deletions

File tree

few_shots.configuration.json

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
[
2+
{
3+
"prompt": "Erstelle einen Webhook flow, welche4 ein user objekt speichert und anschließend die mail als response zurückgibt.",
4+
"flow": {
5+
"name": "User email webhook",
6+
"nodes": [
7+
{
8+
"functionIdentifier": "std::control::value",
9+
"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,
24+
"parameters": [
25+
{
26+
"value": 200
27+
},
28+
{
29+
"value": {}
30+
},
31+
{
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
45+
}
46+
]
47+
}
48+
],
49+
"startingNodeId": 1,
50+
"type": "REST",
51+
"settings": [
52+
{
53+
"value": "/webhook/user"
54+
},
55+
{
56+
"value": "GET"
57+
}
58+
]
59+
}
60+
},
61+
{
62+
"prompt": "Erstelle einen Webhook flow, welcher über die Liste [1,2,3] iteriert und jede Zahl mal zwei rechnet und das Eregbnis zurückgibt.",
63+
"flow": {
64+
"name": "Map list webhook flow",
65+
"nodes": [
66+
{
67+
"functionIdentifier": "std::list::map",
68+
"id": 1,
69+
"nextNodeId": 4,
70+
"parameters": [
71+
{
72+
"value": [1, 2, 3]
73+
},
74+
{
75+
"startingNodeId": 2
76+
}
77+
]
78+
},
79+
{
80+
"functionIdentifier": "std::number::multiply",
81+
"id": 2,
82+
"nextNodeId": 3,
83+
"parameters": [
84+
{
85+
"nodeFunctionId": 1,
86+
"parameterIndex": 1,
87+
"input_index": 0
88+
},
89+
{
90+
"value": 2
91+
}
92+
]
93+
},
94+
{
95+
"functionIdentifier": "std::control::return",
96+
"id": 3,
97+
"parameters": [
98+
{
99+
"nodeFunctionId": 2
100+
}
101+
]
102+
},
103+
{
104+
"functionIdentifier": "http::response::create",
105+
"id": 4,
106+
"nextNodeId": 5,
107+
"parameters": [
108+
{
109+
"value": 200
110+
},
111+
{
112+
"value": {}
113+
},
114+
{
115+
"nodeFunctionId": 1
116+
}
117+
]
118+
},
119+
{
120+
"functionIdentifier": "rest::control::respond",
121+
"id": 5,
122+
"parameters": [
123+
{
124+
"nodeFunctionId": 4
125+
}
126+
]
127+
}
128+
],
129+
"startingNodeId": 1,
130+
"type": "REST",
131+
"settings": [
132+
{
133+
"value": "/webhook/map"
134+
},
135+
{
136+
"value": "GET"
137+
}
138+
]
139+
}
140+
}
141+
]

0 commit comments

Comments
 (0)