llaminate 0.1.0
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/.gitattributes +2 -0
- package/LICENSE +21 -0
- package/README.md +95 -0
- package/assets/llaminate-256.webp +0 -0
- package/assets/llaminate.jpg +0 -0
- package/assets/llaminate.webp +0 -0
- package/dist/build-info.json +5 -0
- package/dist/config.schema.json +126 -0
- package/dist/llaminate.d.ts +202 -0
- package/dist/llaminate.min.js +9 -0
- package/dist/llaminate.min.js.map +1 -0
- package/dist/ratelimiter.d.ts +33 -0
- package/dist/ratelimiter.min.js +7 -0
- package/dist/ratelimiter.min.js.map +1 -0
- package/dist/system.hbs +3 -0
- package/docs/LICENSE +21 -0
- package/docs/Llaminate.html +1040 -0
- package/docs/Llaminate.module_Endpoints.html +278 -0
- package/docs/Llaminate.module_Llaminate.html +200 -0
- package/docs/Llaminate.module_MimeTypes.html +275 -0
- package/docs/LlaminateConfig.html +667 -0
- package/docs/LlaminateMessage.html +328 -0
- package/docs/LlaminateResponse.html +253 -0
- package/docs/assets/llaminate-256.webp +0 -0
- package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/docs/index.html +142 -0
- package/docs/scripts/linenumber.js +25 -0
- package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/docs/scripts/prettify/lang-css.js +2 -0
- package/docs/scripts/prettify/prettify.js +28 -0
- package/docs/styles/jsdoc-default.css +358 -0
- package/docs/styles/prettify-jsdoc.css +111 -0
- package/docs/styles/prettify-tomorrow.css +132 -0
- package/jsdoc.json +23 -0
- package/package.json +38 -0
- package/scripts/build.sh +21 -0
- package/scripts/docs.sh +28 -0
- package/scripts/prebuild.js +43 -0
- package/scripts/prepare.sh +11 -0
- package/scripts/pretest.js +14 -0
- package/src/config.schema.json +126 -0
- package/src/llaminate.d.ts +99 -0
- package/src/llaminate.ts +1326 -0
- package/src/llaminate.types.js +176 -0
- package/src/ratelimiter.ts +95 -0
- package/src/system.hbs +3 -0
- package/tests/attachments.test.js +66 -0
- package/tests/common/base64.js +13 -0
- package/tests/common/matches.js +69 -0
- package/tests/common/setup.js +45 -0
- package/tests/complete.test.js +27 -0
- package/tests/extensions/toMatchSchema.js +20 -0
- package/tests/history.test.js +86 -0
- package/tests/stream.test.js +67 -0
- package/tsconfig.json +12 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>: Interface: LlaminateConfig</title>
|
|
6
|
+
|
|
7
|
+
<script src="scripts/prettify/prettify.js"> </script>
|
|
8
|
+
<script src="scripts/prettify/lang-css.js"> </script>
|
|
9
|
+
<!--[if lt IE 9]>
|
|
10
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
11
|
+
<![endif]-->
|
|
12
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
13
|
+
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
|
14
|
+
</head>
|
|
15
|
+
|
|
16
|
+
<body>
|
|
17
|
+
|
|
18
|
+
<div id="main">
|
|
19
|
+
|
|
20
|
+
<h1 class="page-title">Interface: LlaminateConfig</h1>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<section>
|
|
28
|
+
|
|
29
|
+
<header>
|
|
30
|
+
|
|
31
|
+
<h2>LlaminateConfig</h2>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
</header>
|
|
35
|
+
|
|
36
|
+
<article>
|
|
37
|
+
<div class="container-overview">
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div class="description">Represents the configuration options for the Llaminate service.</div>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
<table class="props">
|
|
51
|
+
<thead>
|
|
52
|
+
<tr>
|
|
53
|
+
|
|
54
|
+
<th>Name</th>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
<th>Type</th>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
<th>Attributes</th>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
<th class="last">Description</th>
|
|
66
|
+
</tr>
|
|
67
|
+
</thead>
|
|
68
|
+
|
|
69
|
+
<tbody>
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<tr>
|
|
73
|
+
|
|
74
|
+
<td class="name"><code>endpoint</code></td>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
<td class="type">
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<span class="param-type">string</span>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
<td class="attributes">
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
</td>
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<td class="description last">The endpoint URL for the LLM service to use.</td>
|
|
97
|
+
</tr>
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
<tr>
|
|
102
|
+
|
|
103
|
+
<td class="name"><code>key</code></td>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<td class="type">
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
<span class="param-type">string</span>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</td>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
<td class="attributes">
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
</td>
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
<td class="description last">The API key for the LLM service.</td>
|
|
126
|
+
</tr>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
<tr>
|
|
131
|
+
|
|
132
|
+
<td class="name"><code>model</code></td>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
<td class="type">
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
<span class="param-type">string</span>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
</td>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<td class="attributes">
|
|
146
|
+
|
|
147
|
+
<optional><br>
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
</td>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
<td class="description last">The model name to use with the LLM service.</td>
|
|
157
|
+
</tr>
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
<tr>
|
|
162
|
+
|
|
163
|
+
<td class="name"><code>attachments</code></td>
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
<td class="type">
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
<span class="param-type">Array.<{type: string, url: string}></span>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
</td>
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
<td class="attributes">
|
|
177
|
+
|
|
178
|
+
<optional><br>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
</td>
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
<td class="description last">Attachments to include with the request.</td>
|
|
188
|
+
</tr>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
<tr>
|
|
193
|
+
|
|
194
|
+
<td class="name"><code>fetch</code></td>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<td class="type">
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
<span class="param-type">function</span>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
</td>
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
<td class="attributes">
|
|
208
|
+
|
|
209
|
+
<optional><br>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
</td>
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
<td class="description last">A custom fetch function to use for making API
|
|
219
|
+
requests to the LLM service.</td>
|
|
220
|
+
</tr>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
<tr>
|
|
225
|
+
|
|
226
|
+
<td class="name"><code>headers</code></td>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
<td class="type">
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
<span class="param-type">Object</span>
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
</td>
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
<td class="attributes">
|
|
240
|
+
|
|
241
|
+
<optional><br>
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
</td>
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
<td class="description last">Additional headers to include in the API
|
|
251
|
+
requests to the LLM service.</td>
|
|
252
|
+
</tr>
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
<tr>
|
|
257
|
+
|
|
258
|
+
<td class="name"><code>history</code></td>
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
<td class="type">
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
<span class="param-type">Array.<<a href="LlaminateMessage.html">LlaminateMessage</a>></span>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
</td>
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
<td class="attributes">
|
|
272
|
+
|
|
273
|
+
<optional><br>
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
</td>
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
<td class="description last">An array of messages to include as
|
|
283
|
+
part of the conversation history for the request.</td>
|
|
284
|
+
</tr>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
<tr>
|
|
289
|
+
|
|
290
|
+
<td class="name"><code>options</code></td>
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
<td class="type">
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
<span class="param-type">Object</span>
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
</td>
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
<td class="attributes">
|
|
304
|
+
|
|
305
|
+
<optional><br>
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
</td>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
<td class="description last">Additional options to include in the request
|
|
315
|
+
body sent to the LLM service.</td>
|
|
316
|
+
</tr>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
<tr>
|
|
321
|
+
|
|
322
|
+
<td class="name"><code>rpm</code></td>
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
<td class="type">
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
<span class="param-type">number</span>
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
</td>
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
<td class="attributes">
|
|
336
|
+
|
|
337
|
+
<optional><br>
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
</td>
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
<td class="description last">The maximum number of requests per minute (RPM) to
|
|
347
|
+
allow when making API requests.</td>
|
|
348
|
+
</tr>
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
<tr>
|
|
353
|
+
|
|
354
|
+
<td class="name"><code>schema</code></td>
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
<td class="type">
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
<span class="param-type">Object</span>
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
</td>
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
<td class="attributes">
|
|
368
|
+
|
|
369
|
+
<optional><br>
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
</td>
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
<td class="description last">An optional JSON schema to specify the expected
|
|
379
|
+
structure of the response.</td>
|
|
380
|
+
</tr>
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
<tr>
|
|
385
|
+
|
|
386
|
+
<td class="name"><code>system</code></td>
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
<td class="type">
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
<span class="param-type">Array.<string></span>
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
</td>
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
<td class="attributes">
|
|
400
|
+
|
|
401
|
+
<optional><br>
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
</td>
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
<td class="description last">System prompts to include with every request.</td>
|
|
411
|
+
</tr>
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
<tr>
|
|
416
|
+
|
|
417
|
+
<td class="name"><code>tools</code></td>
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
<td class="type">
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
<span class="param-type">Array.<{function: {name: string, description: string, parameters: Object, strict: boolean}, handler: function()}></span>
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
</td>
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
<td class="attributes">
|
|
431
|
+
|
|
432
|
+
<optional><br>
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
</td>
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
<td class="description last">Tool definitions to include with the request.</td>
|
|
442
|
+
</tr>
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
<tr>
|
|
447
|
+
|
|
448
|
+
<td class="name"><code>window</code></td>
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
<td class="type">
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
<span class="param-type">number</span>
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
</td>
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
<td class="attributes">
|
|
462
|
+
|
|
463
|
+
<optional><br>
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
</td>
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
<td class="description last">The number of recent user messages to include in
|
|
473
|
+
the context window for each request.</td>
|
|
474
|
+
</tr>
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
</tbody>
|
|
478
|
+
</table>
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
<dl class="details">
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
<dt class="tag-default">Default Value:</dt>
|
|
509
|
+
<dd class="tag-default"><ul class="dummy">
|
|
510
|
+
<li>12</li>
|
|
511
|
+
</ul></dd>
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
</dl>
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
<h3>Examples</h3>
|
|
526
|
+
|
|
527
|
+
<pre class="prettyprint"><code>{ endpoint: Llaminate.MISTRAL }</code></pre>
|
|
528
|
+
|
|
529
|
+
<pre class="prettyprint"><code>{ endpoint: "https://api.example.com/v1/chat/completions" }</code></pre>
|
|
530
|
+
|
|
531
|
+
<pre class="prettyprint"><code>{ key: "12345-abcde-67890-fghij-klm" }</code></pre>
|
|
532
|
+
|
|
533
|
+
<pre class="prettyprint"><code>{ model: "mistral-small-latest" }</code></pre>
|
|
534
|
+
|
|
535
|
+
<pre class="prettyprint"><code>{ attachments: [
|
|
536
|
+
{
|
|
537
|
+
type: Llaminate.JPEG,
|
|
538
|
+
url: "https://example.com/image.jpg"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
type: Llaminate.PDF,
|
|
542
|
+
url: "data:application/pdf;base64,JVBERi0xLjcKJcfs..."
|
|
543
|
+
}
|
|
544
|
+
] }</code></pre>
|
|
545
|
+
|
|
546
|
+
<pre class="prettyprint"><code>{ fetch: async (url, options) => {
|
|
547
|
+
// Example fetch using Node's https module
|
|
548
|
+
return new Promise((resolve, reject) => {
|
|
549
|
+
const request = https.request(url, options, (response) => {
|
|
550
|
+
let data = "";
|
|
551
|
+
response.on("data", (chunk) => data += chunk);
|
|
552
|
+
response.on("end", () => resolve({
|
|
553
|
+
ok: response.statusCode >= 200 && response.statusCode < 300,
|
|
554
|
+
status: response.statusCode,
|
|
555
|
+
json: async () => JSON.parse(data),
|
|
556
|
+
text: async () => data,
|
|
557
|
+
}));
|
|
558
|
+
});
|
|
559
|
+
request.on("error", reject);
|
|
560
|
+
if (options.body) request.write(options.body);
|
|
561
|
+
request.end();
|
|
562
|
+
});
|
|
563
|
+
} }</code></pre>
|
|
564
|
+
|
|
565
|
+
<pre class="prettyprint"><code>{ headers: {
|
|
566
|
+
"OpenAI-Organization": "org-12345-abcde-67890",
|
|
567
|
+
"OpenAI-Project": "project-abcde-12345-fghij",
|
|
568
|
+
} }</code></pre>
|
|
569
|
+
|
|
570
|
+
<pre class="prettyprint"><code>{ history: [
|
|
571
|
+
{ role: "user", content: "What is the capital of France?" },
|
|
572
|
+
{ role: "assistant", content: "The capital of France is Paris." },
|
|
573
|
+
] }</code></pre>
|
|
574
|
+
|
|
575
|
+
<pre class="prettyprint"><code>{ options: {
|
|
576
|
+
temperature: 0.7,
|
|
577
|
+
max_tokens: 150,
|
|
578
|
+
} }</code></pre>
|
|
579
|
+
|
|
580
|
+
<pre class="prettyprint"><code>{ rpm: 720 }</code></pre>
|
|
581
|
+
|
|
582
|
+
<pre class="prettyprint"><code>{ schema: {
|
|
583
|
+
type: "object",
|
|
584
|
+
properties: {
|
|
585
|
+
reply: {
|
|
586
|
+
type: "string",
|
|
587
|
+
description: "Your response to the user's query."
|
|
588
|
+
},
|
|
589
|
+
thoughts: {
|
|
590
|
+
type: "string",
|
|
591
|
+
description: "Your internal thoughts about the user's query."
|
|
592
|
+
},
|
|
593
|
+
},
|
|
594
|
+
required: ["reply", "thoughts"],
|
|
595
|
+
additionalProperties: false,
|
|
596
|
+
} }</code></pre>
|
|
597
|
+
|
|
598
|
+
<pre class="prettyprint"><code>{ system: [
|
|
599
|
+
"You are an assistant who answers questions about movies.",
|
|
600
|
+
"You are always excited about movie trivia and love sharing fun facts.",
|
|
601
|
+
] }</code></pre>
|
|
602
|
+
|
|
603
|
+
<pre class="prettyprint"><code>{ tools: [
|
|
604
|
+
{
|
|
605
|
+
function: {
|
|
606
|
+
name: "get_current_time",
|
|
607
|
+
description: "Returns the current time in ISO format.",
|
|
608
|
+
parameters: {
|
|
609
|
+
type: "object",
|
|
610
|
+
properties: {},
|
|
611
|
+
required: [],
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
handler: async () => {
|
|
615
|
+
return new Date().toISOString();
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
] }</code></pre>
|
|
619
|
+
|
|
620
|
+
<pre class="prettyprint"><code>{ window: 5 }</code></pre>
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
</div>
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
</article>
|
|
646
|
+
|
|
647
|
+
</section>
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
</div>
|
|
653
|
+
|
|
654
|
+
<nav>
|
|
655
|
+
<h4><a href="index.html">README.md</a></h4><h3>Modules</h3><ul><li><a href="Llaminate.module_Endpoints.html">Endpoints</a></li><li><a href="Llaminate.module_Llaminate.html">Llaminate</a></li><li><a href="Llaminate.module_MimeTypes.html">MimeTypes</a></li></ul><h3>Classes</h3><ul><li><a href="Llaminate.html">Llaminate</a></li></ul><h3>Interfaces</h3><ul><li><a href="LlaminateConfig.html">LlaminateConfig</a></li><li><a href="LlaminateMessage.html">LlaminateMessage</a></li><li><a href="LlaminateResponse.html">LlaminateResponse</a></li></ul>
|
|
656
|
+
</nav>
|
|
657
|
+
|
|
658
|
+
<br class="clear">
|
|
659
|
+
|
|
660
|
+
<footer>
|
|
661
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc"> 4.0.5</a>
|
|
662
|
+
</footer>
|
|
663
|
+
|
|
664
|
+
<script> prettyPrint(); </script>
|
|
665
|
+
<script src="scripts/linenumber.js"> </script>
|
|
666
|
+
</body>
|
|
667
|
+
</html>
|