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.
Files changed (72) hide show
  1. package/.gitattributes +2 -0
  2. package/LICENSE +21 -0
  3. package/README.md +95 -0
  4. package/assets/llaminate-256.webp +0 -0
  5. package/assets/llaminate.jpg +0 -0
  6. package/assets/llaminate.webp +0 -0
  7. package/dist/build-info.json +5 -0
  8. package/dist/config.schema.json +126 -0
  9. package/dist/llaminate.d.ts +202 -0
  10. package/dist/llaminate.min.js +9 -0
  11. package/dist/llaminate.min.js.map +1 -0
  12. package/dist/ratelimiter.d.ts +33 -0
  13. package/dist/ratelimiter.min.js +7 -0
  14. package/dist/ratelimiter.min.js.map +1 -0
  15. package/dist/system.hbs +3 -0
  16. package/docs/LICENSE +21 -0
  17. package/docs/Llaminate.html +1040 -0
  18. package/docs/Llaminate.module_Endpoints.html +278 -0
  19. package/docs/Llaminate.module_Llaminate.html +200 -0
  20. package/docs/Llaminate.module_MimeTypes.html +275 -0
  21. package/docs/LlaminateConfig.html +667 -0
  22. package/docs/LlaminateMessage.html +328 -0
  23. package/docs/LlaminateResponse.html +253 -0
  24. package/docs/assets/llaminate-256.webp +0 -0
  25. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  26. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  27. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  28. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  29. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  30. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  31. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  32. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  33. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  34. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  35. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  36. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  37. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  38. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  39. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  40. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  41. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  42. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  43. package/docs/index.html +142 -0
  44. package/docs/scripts/linenumber.js +25 -0
  45. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  46. package/docs/scripts/prettify/lang-css.js +2 -0
  47. package/docs/scripts/prettify/prettify.js +28 -0
  48. package/docs/styles/jsdoc-default.css +358 -0
  49. package/docs/styles/prettify-jsdoc.css +111 -0
  50. package/docs/styles/prettify-tomorrow.css +132 -0
  51. package/jsdoc.json +23 -0
  52. package/package.json +38 -0
  53. package/scripts/build.sh +21 -0
  54. package/scripts/docs.sh +28 -0
  55. package/scripts/prebuild.js +43 -0
  56. package/scripts/prepare.sh +11 -0
  57. package/scripts/pretest.js +14 -0
  58. package/src/config.schema.json +126 -0
  59. package/src/llaminate.d.ts +99 -0
  60. package/src/llaminate.ts +1326 -0
  61. package/src/llaminate.types.js +176 -0
  62. package/src/ratelimiter.ts +95 -0
  63. package/src/system.hbs +3 -0
  64. package/tests/attachments.test.js +66 -0
  65. package/tests/common/base64.js +13 -0
  66. package/tests/common/matches.js +69 -0
  67. package/tests/common/setup.js +45 -0
  68. package/tests/complete.test.js +27 -0
  69. package/tests/extensions/toMatchSchema.js +20 -0
  70. package/tests/history.test.js +86 -0
  71. package/tests/stream.test.js +67 -0
  72. package/tsconfig.json +12 -0
@@ -0,0 +1,328 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>: Interface: LlaminateMessage</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: LlaminateMessage</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+ <h2>LlaminateMessage</h2>
32
+
33
+
34
+ </header>
35
+
36
+ <article>
37
+ <div class="container-overview">
38
+
39
+
40
+ <div class="description">Represents a message in 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>role</code></td>
75
+
76
+
77
+ <td class="type">
78
+
79
+
80
+ <span class="param-type">"assistant"</span>
81
+ |
82
+
83
+ <span class="param-type">"developer"</span>
84
+ |
85
+
86
+ <span class="param-type">"system"</span>
87
+ |
88
+
89
+ <span class="param-type">"user"</span>
90
+ |
91
+
92
+ <span class="param-type">"tool"</span>
93
+
94
+
95
+
96
+ </td>
97
+
98
+
99
+ <td class="attributes">
100
+
101
+
102
+
103
+ </td>
104
+
105
+
106
+
107
+
108
+ <td class="description last">The
109
+ role of the message sender.</td>
110
+ </tr>
111
+
112
+
113
+
114
+ <tr>
115
+
116
+ <td class="name"><code>content</code></td>
117
+
118
+
119
+ <td class="type">
120
+
121
+
122
+ <span class="param-type">string</span>
123
+ |
124
+
125
+ <span class="param-type">any</span>
126
+
127
+
128
+
129
+ </td>
130
+
131
+
132
+ <td class="attributes">
133
+
134
+ &lt;optional><br>
135
+
136
+
137
+
138
+ </td>
139
+
140
+
141
+
142
+
143
+ <td class="description last">The content of the message, which can be a
144
+ string or any JSON-serializable object.</td>
145
+ </tr>
146
+
147
+
148
+
149
+ <tr>
150
+
151
+ <td class="name"><code>name</code></td>
152
+
153
+
154
+ <td class="type">
155
+
156
+
157
+ <span class="param-type">string</span>
158
+
159
+
160
+
161
+ </td>
162
+
163
+
164
+ <td class="attributes">
165
+
166
+ &lt;optional><br>
167
+
168
+
169
+
170
+ </td>
171
+
172
+
173
+
174
+
175
+ <td class="description last">The name of the tool used in tool responses.</td>
176
+ </tr>
177
+
178
+
179
+
180
+ <tr>
181
+
182
+ <td class="name"><code>tool_call_id</code></td>
183
+
184
+
185
+ <td class="type">
186
+
187
+
188
+ <span class="param-type">string</span>
189
+
190
+
191
+
192
+ </td>
193
+
194
+
195
+ <td class="attributes">
196
+
197
+ &lt;optional><br>
198
+
199
+
200
+
201
+ </td>
202
+
203
+
204
+
205
+
206
+ <td class="description last">The ID linking tool messages to calls.</td>
207
+ </tr>
208
+
209
+
210
+
211
+ <tr>
212
+
213
+ <td class="name"><code>tool_calls</code></td>
214
+
215
+
216
+ <td class="type">
217
+
218
+
219
+ <span class="param-type">Array.&lt;{type: string, function: {name: string, arguments: string}, id: string}></span>
220
+
221
+
222
+
223
+ </td>
224
+
225
+
226
+ <td class="attributes">
227
+
228
+ &lt;optional><br>
229
+
230
+
231
+
232
+ </td>
233
+
234
+
235
+
236
+
237
+ <td class="description last">The tool calls associated with assistant messages.</td>
238
+ </tr>
239
+
240
+
241
+ </tbody>
242
+ </table>
243
+
244
+
245
+
246
+
247
+ <dl class="details">
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+ </dl>
281
+
282
+
283
+
284
+
285
+ </div>
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+ </article>
307
+
308
+ </section>
309
+
310
+
311
+
312
+
313
+ </div>
314
+
315
+ <nav>
316
+ <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>
317
+ </nav>
318
+
319
+ <br class="clear">
320
+
321
+ <footer>
322
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc"> 4.0.5</a>
323
+ </footer>
324
+
325
+ <script> prettyPrint(); </script>
326
+ <script src="scripts/linenumber.js"> </script>
327
+ </body>
328
+ </html>
@@ -0,0 +1,253 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>: Interface: LlaminateResponse</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: LlaminateResponse</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+ <h2>LlaminateResponse</h2>
32
+
33
+
34
+ </header>
35
+
36
+ <article>
37
+ <div class="container-overview">
38
+
39
+
40
+ <div class="description">Represents the response from 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
+
61
+
62
+
63
+ <th class="last">Description</th>
64
+ </tr>
65
+ </thead>
66
+
67
+ <tbody>
68
+
69
+
70
+ <tr>
71
+
72
+ <td class="name"><code>message</code></td>
73
+
74
+
75
+ <td class="type">
76
+
77
+
78
+ <span class="param-type">string</span>
79
+ |
80
+
81
+ <span class="param-type">any</span>
82
+
83
+
84
+
85
+ </td>
86
+
87
+
88
+
89
+
90
+
91
+ <td class="description last">The response message, which can be a string or
92
+ any JSON-serializable object.</td>
93
+ </tr>
94
+
95
+
96
+
97
+ <tr>
98
+
99
+ <td class="name"><code>result</code></td>
100
+
101
+
102
+ <td class="type">
103
+
104
+
105
+ <span class="param-type">Array.&lt;<a href="LlaminateMessage.html">LlaminateMessage</a>></span>
106
+
107
+
108
+
109
+ </td>
110
+
111
+
112
+
113
+
114
+
115
+ <td class="description last">The array of messages returned as part
116
+ of the response.</td>
117
+ </tr>
118
+
119
+
120
+
121
+ <tr>
122
+
123
+ <td class="name"><code>tokens</code></td>
124
+
125
+
126
+ <td class="type">
127
+
128
+
129
+ <span class="param-type">Tokens</span>
130
+
131
+
132
+
133
+ </td>
134
+
135
+
136
+
137
+
138
+
139
+ <td class="description last">The token usage information for the request.</td>
140
+ </tr>
141
+
142
+
143
+
144
+ <tr>
145
+
146
+ <td class="name"><code>uuid</code></td>
147
+
148
+
149
+ <td class="type">
150
+
151
+
152
+ <span class="param-type">string</span>
153
+
154
+
155
+
156
+ </td>
157
+
158
+
159
+
160
+
161
+
162
+ <td class="description last">The unique identifier for the response.</td>
163
+ </tr>
164
+
165
+
166
+ </tbody>
167
+ </table>
168
+
169
+
170
+
171
+
172
+ <dl class="details">
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+ </dl>
206
+
207
+
208
+
209
+
210
+ </div>
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+ </article>
232
+
233
+ </section>
234
+
235
+
236
+
237
+
238
+ </div>
239
+
240
+ <nav>
241
+ <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>
242
+ </nav>
243
+
244
+ <br class="clear">
245
+
246
+ <footer>
247
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc"> 4.0.5</a>
248
+ </footer>
249
+
250
+ <script> prettyPrint(); </script>
251
+ <script src="scripts/linenumber.js"> </script>
252
+ </body>
253
+ </html>
Binary file