Daisuke675 commited on
Commit
d07ebee
·
verified ·
1 Parent(s): c688c52

Upload 74_scugnizz_agentic_benchmark.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. 74_scugnizz_agentic_benchmark.py +263 -0
74_scugnizz_agentic_benchmark.py ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ TESTS = [
2
+
3
+ # ===========================
4
+ # RENDER TOOL_RESULT
5
+ # ===========================
6
+
7
+ """### Instruction:
8
+
9
+ TOOL_RESULT:
10
+
11
+ {"tool":"weather.forecast","result":{"city":"Napoli","condition":"sereno","temperature_c":27,"wind_kmh":9}}
12
+
13
+ Rispondi usando solo questi dati.
14
+
15
+ ### Response:
16
+ """,
17
+
18
+ """### Instruction:
19
+
20
+ TOOL_RESULT:
21
+
22
+ {"tool":"weather.forecast","result":{"city":"Trento","condition":"neve","temperature_c":-3,"wind_kmh":28}}
23
+
24
+ Rispondi usando solo questi dati.
25
+
26
+ ### Response:
27
+ """,
28
+
29
+ """### Instruction:
30
+
31
+ TOOL_RESULT:
32
+
33
+ {"tool":"finance.quote","result":{"symbol":"AAPL","price":214.52,"currency":"USD","change_percent":-1.42}}
34
+
35
+ Rispondi usando solo questi dati.
36
+
37
+ ### Response:
38
+ """,
39
+
40
+ """### Instruction:
41
+
42
+ TOOL_RESULT:
43
+
44
+ {"tool":"finance.quote","result":{"symbol":"NVDA","price":182.11,"currency":"USD","change_percent":5.61}}
45
+
46
+ Rispondi usando solo questi dati.
47
+
48
+ ### Response:
49
+ """,
50
+
51
+ """### Instruction:
52
+
53
+ TOOL_RESULT:
54
+
55
+ {"tool":"spotify.current_song","result":{"artist":"Metallica","title":"One","album":"...And Justice for All"}}
56
+
57
+ Trasforma il risultato in italiano.
58
+
59
+ ### Response:
60
+ """,
61
+
62
+ """### Instruction:
63
+
64
+ TOOL_RESULT:
65
+
66
+ {"tool":"mail.summary","result":{"unread":13,"important":5,"latest_sender":"Marco"}}
67
+
68
+ Usa solo questi dati.
69
+
70
+ ### Response:
71
+ """,
72
+
73
+ """### Instruction:
74
+
75
+ TOOL_RESULT:
76
+
77
+ {"tool":"calendar.next_event","result":{"title":"Riunione","date":"domani","time":"09:30"}}
78
+
79
+ Rispondi in italiano.
80
+
81
+ ### Response:
82
+ """,
83
+
84
+ # ===========================
85
+ # HASH
86
+ # ===========================
87
+
88
+ """### Instruction:
89
+
90
+ TOOL_RESULT:
91
+
92
+ {"tool":"hash.lookup","result":{"sha256":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","size_bytes":2048}}
93
+
94
+ Copia ESATTAMENTE hash e dimensione.
95
+
96
+ ### Response:
97
+ """,
98
+
99
+ """### Instruction:
100
+
101
+ TOOL_RESULT:
102
+
103
+ {"tool":"hash.lookup","result":{"md5":"00112233445566778899aabbccddeeff"}}
104
+
105
+ Copia esattamente l'MD5.
106
+
107
+ ### Response:
108
+ """,
109
+
110
+ # ===========================
111
+ # NETWORK
112
+ # ===========================
113
+
114
+ """### Instruction:
115
+
116
+ TOOL_RESULT:
117
+
118
+ {"tool":"network.info","result":{"ipv4":"010.000.001.255","ipv6":"2001:0db8:0000:0000:0000:ff00:0042:8329","port":443,"protocol":"TCP"}}
119
+
120
+ Non modificare alcun numero.
121
+
122
+ ### Response:
123
+ """,
124
+
125
+ """### Instruction:
126
+
127
+ TOOL_RESULT:
128
+
129
+ {"tool":"dns.lookup","result":{"domain":"redhotcyber.com","ipv4":"104.21.10.12","mx":"mail.redhotcyber.com"}}
130
+
131
+ Rispondi usando solo questi dati.
132
+
133
+ ### Response:
134
+ """,
135
+
136
+ """### Instruction:
137
+
138
+ TOOL_RESULT:
139
+
140
+ {"tool":"whois.lookup","result":{"domain":"example.org","registrar":"ICANN","created":"2001-05-12"}}
141
+
142
+ Rispondi usando solo questi dati.
143
+
144
+ ### Response:
145
+ """,
146
+
147
+ # ===========================
148
+ # JSON COMPLESSI
149
+ # ===========================
150
+
151
+ """### Instruction:
152
+
153
+ Trasforma questo JSON in italiano.
154
+
155
+ {"weather":{"city":"Roma","temperature_c":30},"mail":{"unread":4},"calendar":{"title":"Backup","time":"18:00"}}
156
+
157
+ ### Response:
158
+ """,
159
+
160
+ """### Instruction:
161
+
162
+ Trasforma questo JSON in italiano.
163
+
164
+ {"home":{"room":"garage","device":"porta","state":"chiuso"},"weather":{"city":"Milano","condition":"pioggia"}}
165
+
166
+ ### Response:
167
+ """,
168
+
169
+ # ===========================
170
+ # TOOL CALLING
171
+ # ===========================
172
+
173
+ """### System:
174
+
175
+ You can call tools.
176
+
177
+ Available tools:
178
+
179
+ - weather.forecast
180
+
181
+ ### User:
182
+
183
+ Che tempo fa a Bologna?
184
+
185
+ ### Assistant:
186
+ """,
187
+
188
+ """### System:
189
+
190
+ You can call tools.
191
+
192
+ Available tools:
193
+
194
+ - finance.quote
195
+
196
+ ### User:
197
+
198
+ Quanto quota TSLA?
199
+
200
+ ### Assistant:
201
+ """,
202
+
203
+ """### System:
204
+
205
+ You can call tools.
206
+
207
+ Available tools:
208
+
209
+ - dns.lookup
210
+
211
+ ### User:
212
+
213
+ Qual è l'IPv4 di redhotcyber.com?
214
+
215
+ ### Assistant:
216
+ """,
217
+
218
+ """### System:
219
+
220
+ You can call tools.
221
+
222
+ Available tools:
223
+
224
+ - spotify.current_song
225
+
226
+ ### User:
227
+
228
+ Che brano sto ascoltando?
229
+
230
+ ### Assistant:
231
+ """,
232
+
233
+ # ===========================
234
+ # RAG
235
+ # ===========================
236
+
237
+ """### Instruction:
238
+
239
+ CONTEXT:
240
+
241
+ La regola 3-2-1 prevede tre copie dei dati su due supporti diversi con una copia offline.
242
+
243
+ QUESTION:
244
+
245
+ Spiegala senza inventare nulla.
246
+
247
+ ### Response:
248
+ """,
249
+
250
+ """### Instruction:
251
+
252
+ CONTEXT:
253
+
254
+ L'autenticazione a due fattori aggiunge un secondo elemento oltre alla password.
255
+
256
+ QUESTION:
257
+
258
+ Cos'è?
259
+
260
+ ### Response:
261
+ """,
262
+
263
+ ]