@dxos/assistant 0.8.4-main.66e292d → 0.8.4-main.69d29f4

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 (84) hide show
  1. package/dist/lib/browser/chunk-7CDDG6LL.mjs +578 -0
  2. package/dist/lib/browser/chunk-7CDDG6LL.mjs.map +7 -0
  3. package/dist/lib/browser/extraction/index.mjs +3 -3
  4. package/dist/lib/browser/extraction/index.mjs.map +3 -3
  5. package/dist/lib/browser/index.mjs +239 -678
  6. package/dist/lib/browser/index.mjs.map +4 -4
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/testing/index.mjs +32 -0
  9. package/dist/lib/browser/testing/index.mjs.map +7 -0
  10. package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs +579 -0
  11. package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs.map +7 -0
  12. package/dist/lib/node-esm/extraction/index.mjs +3 -3
  13. package/dist/lib/node-esm/extraction/index.mjs.map +3 -3
  14. package/dist/lib/node-esm/index.mjs +239 -678
  15. package/dist/lib/node-esm/index.mjs.map +4 -4
  16. package/dist/lib/node-esm/meta.json +1 -1
  17. package/dist/lib/node-esm/testing/index.mjs +33 -0
  18. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  19. package/dist/types/src/conversation/context.d.ts +82 -50
  20. package/dist/types/src/conversation/context.d.ts.map +1 -1
  21. package/dist/types/src/conversation/context.test.d.ts +2 -0
  22. package/dist/types/src/conversation/context.test.d.ts.map +1 -0
  23. package/dist/types/src/conversation/conversation.d.ts +14 -14
  24. package/dist/types/src/conversation/conversation.d.ts.map +1 -1
  25. package/dist/types/src/conversation/conversation.test.d.ts +2 -0
  26. package/dist/types/src/conversation/conversation.test.d.ts.map +1 -0
  27. package/dist/types/src/errors.d.ts +12 -16
  28. package/dist/types/src/errors.d.ts.map +1 -1
  29. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +237 -236
  30. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
  31. package/dist/types/src/extraction/extraction.d.ts +285 -241
  32. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  33. package/dist/types/src/extraction/quotes.d.ts +2 -2
  34. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  35. package/dist/types/src/functions/services.d.ts +3 -3
  36. package/dist/types/src/functions/services.d.ts.map +1 -1
  37. package/dist/types/src/functions.test.d.ts +2 -0
  38. package/dist/types/src/functions.test.d.ts.map +1 -0
  39. package/dist/types/src/session/GenericToolkit.d.ts +1 -0
  40. package/dist/types/src/session/GenericToolkit.d.ts.map +1 -1
  41. package/dist/types/src/session/format.d.ts +3 -3
  42. package/dist/types/src/session/format.d.ts.map +1 -1
  43. package/dist/types/src/session/observer.d.ts +4 -3
  44. package/dist/types/src/session/observer.d.ts.map +1 -1
  45. package/dist/types/src/session/session.d.ts +14 -9
  46. package/dist/types/src/session/session.d.ts.map +1 -1
  47. package/dist/types/src/session/toolkit.d.ts +5 -6
  48. package/dist/types/src/session/toolkit.d.ts.map +1 -1
  49. package/dist/types/src/session/version-pin.d.ts +1 -1
  50. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  51. package/dist/types/src/testing/index.d.ts +2 -0
  52. package/dist/types/src/testing/index.d.ts.map +1 -0
  53. package/dist/types/src/testing/layer.d.ts +21 -0
  54. package/dist/types/src/testing/layer.d.ts.map +1 -0
  55. package/dist/types/src/types/artifact.d.ts +12 -3
  56. package/dist/types/src/types/artifact.d.ts.map +1 -1
  57. package/dist/types/tsconfig.tsbuildinfo +1 -1
  58. package/package.json +38 -29
  59. package/src/conversation/context.test.ts +46 -0
  60. package/src/conversation/context.ts +183 -65
  61. package/src/conversation/conversation.test.ts +65 -0
  62. package/src/conversation/conversation.ts +46 -49
  63. package/src/diff.test.ts +1 -1
  64. package/src/errors.ts +2 -2
  65. package/src/execution-graph.ts +2 -2
  66. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +3 -3
  67. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +1 -1
  68. package/src/extraction/extraction.ts +3 -3
  69. package/src/extraction/quotes.ts +3 -4
  70. package/src/functions/services.ts +28 -10
  71. package/src/functions.conversations.json +1 -0
  72. package/src/functions.test.ts +74 -0
  73. package/src/session/GenericToolkit.ts +1 -0
  74. package/src/session/format.test.ts +101 -38
  75. package/src/session/format.ts +11 -12
  76. package/src/session/observer.ts +3 -1
  77. package/src/session/session.conversations.json +1 -1
  78. package/src/session/session.test.ts +7 -13
  79. package/src/session/session.ts +33 -12
  80. package/src/session/toolkit.ts +13 -22
  81. package/src/session/version-pin.ts +2 -2
  82. package/src/testing/index.ts +5 -0
  83. package/src/testing/layer.ts +78 -0
  84. package/src/types/artifact.ts +18 -6
@@ -7,46 +7,47 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
7
7
  readonly fallbackToRaw?: boolean | undefined;
8
8
  } | undefined;
9
9
  readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
10
- id: string;
11
- parentMessage?: string | undefined;
12
- created: string;
13
- sender: {
14
- name?: string | undefined;
15
- role?: "user" | "assistant" | "tool" | undefined;
16
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
17
- image?: string | undefined;
18
- fullName?: string | undefined;
19
- preferredName?: string | undefined;
20
- nickname?: string | undefined;
21
- organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
22
- description?: string | undefined;
23
- name?: string | undefined;
24
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
25
- image?: string | undefined;
26
- website?: string | undefined;
27
- location?: readonly [number, number, (number | undefined)?] | undefined;
10
+ readonly id: string;
11
+ readonly parentMessage?: string | undefined;
12
+ readonly created: string;
13
+ readonly sender: {
14
+ readonly name?: string | undefined;
15
+ readonly role?: "user" | "assistant" | "tool" | undefined;
16
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
17
+ readonly image?: string | undefined;
18
+ readonly fullName?: string | undefined;
19
+ readonly preferredName?: string | undefined;
20
+ readonly nickname?: string | undefined;
21
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
22
+ readonly description?: string | undefined;
23
+ readonly name?: string | undefined;
24
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
25
+ readonly image?: string | undefined;
26
+ readonly website?: string | undefined;
27
+ } & {
28
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
28
29
  }> | undefined;
29
- jobTitle?: string | undefined;
30
- department?: string | undefined;
31
- notes?: string | undefined;
32
- emails?: {
30
+ readonly jobTitle?: string | undefined;
31
+ readonly department?: string | undefined;
32
+ readonly notes?: string | undefined;
33
+ readonly emails?: readonly {
33
34
  readonly value: string;
34
35
  readonly label?: string | undefined;
35
36
  }[] | undefined;
36
- identities?: {
37
+ readonly identities?: readonly {
37
38
  readonly value: string;
38
39
  readonly label?: string | undefined;
39
40
  }[] | undefined;
40
- phoneNumbers?: {
41
+ readonly phoneNumbers?: readonly {
41
42
  readonly value: string;
42
43
  readonly label?: string | undefined;
43
44
  }[] | undefined;
44
- fields?: {
45
+ readonly fields?: readonly {
45
46
  readonly value: string;
46
47
  readonly label: string;
47
48
  readonly category?: string | undefined;
48
49
  }[] | undefined;
49
- addresses?: {
50
+ readonly addresses?: readonly {
50
51
  readonly value: {
51
52
  readonly street?: string | undefined;
52
53
  readonly extended?: string | undefined;
@@ -58,165 +59,164 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
58
59
  };
59
60
  readonly label?: string | undefined;
60
61
  }[] | undefined;
61
- urls?: {
62
+ readonly urls?: readonly {
62
63
  readonly value: string;
63
64
  readonly label?: string | undefined;
64
65
  }[] | undefined;
65
- birthday?: string | undefined;
66
- location?: readonly [number, number, (number | undefined)?] | undefined;
66
+ readonly birthday?: string | undefined;
67
+ } & {
68
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
67
69
  }> | undefined;
68
- identityDid?: string | undefined;
69
- identityKey?: string | undefined;
70
- email?: string | undefined;
70
+ readonly identityDid?: string | undefined;
71
+ readonly identityKey?: string | undefined;
72
+ readonly email?: string | undefined;
71
73
  };
72
- blocks: ({
73
- version: unknown;
74
- _tag: "anchor";
75
- pending?: boolean | undefined;
76
- objectId: string;
74
+ readonly blocks: readonly ({
75
+ readonly pending?: boolean | undefined;
76
+ readonly text: string;
77
+ readonly mimeType?: string | undefined;
78
+ readonly disposition?: string | undefined;
79
+ readonly _tag: "text";
77
80
  } | {
78
- _tag: "file";
79
- pending?: boolean | undefined;
80
- url: string;
81
- name?: string | undefined;
82
- mediaType?: string | undefined;
81
+ readonly pending?: boolean | undefined;
82
+ readonly _tag: "reasoning";
83
+ readonly reasoningText?: string | undefined;
84
+ readonly redactedText?: string | undefined;
85
+ readonly signature?: string | undefined;
83
86
  } | {
84
- id?: string | undefined;
85
- _tag: "image";
86
- pending?: boolean | undefined;
87
- source?: {
88
- mediaType: string;
89
- type: "base64";
90
- data: string;
91
- } | {
92
- url: string;
93
- type: "http";
94
- } | undefined;
87
+ readonly name: string;
88
+ readonly pending?: boolean | undefined;
89
+ readonly _tag: "toolCall";
90
+ readonly toolCallId: string;
91
+ readonly input: string;
92
+ readonly providerExecuted: boolean;
95
93
  } | {
96
- _tag: "json";
97
- pending?: boolean | undefined;
98
- data: string;
99
- disposition?: string | undefined;
94
+ readonly name: string;
95
+ readonly pending?: boolean | undefined;
96
+ readonly _tag: "toolResult";
97
+ readonly toolCallId: string;
98
+ readonly providerExecuted: boolean;
99
+ readonly result?: string | undefined;
100
+ readonly error?: string | undefined;
100
101
  } | {
101
- text: string;
102
- _tag: "proposal";
103
- pending?: boolean | undefined;
102
+ readonly pending?: boolean | undefined;
103
+ readonly mimeType?: string | undefined;
104
+ readonly _tag: "summary";
105
+ readonly message?: string | undefined;
106
+ readonly model?: string | undefined;
107
+ readonly usage?: {
108
+ readonly inputTokens?: number | undefined;
109
+ readonly outputTokens?: number | undefined;
110
+ readonly totalTokens?: number | undefined;
111
+ } | undefined;
112
+ readonly toolCalls?: number | undefined;
113
+ readonly errors?: number | undefined;
114
+ readonly duration?: number | undefined;
104
115
  } | {
105
- _tag: "reasoning";
106
- pending?: boolean | undefined;
107
- reasoningText?: string | undefined;
108
- redactedText?: string | undefined;
109
- signature?: string | undefined;
116
+ readonly source?: {
117
+ readonly type: "base64";
118
+ readonly mediaType: string;
119
+ readonly data: string;
120
+ } | {
121
+ readonly type: "http";
122
+ readonly url: string;
123
+ } | undefined;
124
+ readonly id?: string | undefined;
125
+ readonly pending?: boolean | undefined;
126
+ readonly _tag: "image";
110
127
  } | {
111
- reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>>;
112
- _tag: "reference";
113
- pending?: boolean | undefined;
128
+ readonly name?: string | undefined;
129
+ readonly pending?: boolean | undefined;
130
+ readonly _tag: "file";
131
+ readonly mediaType?: string | undefined;
132
+ readonly url: string;
114
133
  } | {
115
- _tag: "select";
116
- pending?: boolean | undefined;
117
- options: readonly string[];
134
+ readonly pending?: boolean | undefined;
135
+ readonly _tag: "reference";
136
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
118
137
  } | {
119
- _tag: "status";
120
- pending?: boolean | undefined;
121
- statusText: string;
138
+ readonly pending?: boolean | undefined;
139
+ readonly text: string;
140
+ readonly _tag: "transcript";
141
+ readonly started: string;
122
142
  } | {
123
- text: string;
124
- _tag: "suggestion";
125
- pending?: boolean | undefined;
143
+ readonly pending?: boolean | undefined;
144
+ readonly _tag: "status";
145
+ readonly statusText: string;
126
146
  } | {
127
- _tag: "summary";
128
- pending?: boolean | undefined;
129
- mimeType?: string | undefined;
130
- message?: string | undefined;
131
- model?: string | undefined;
132
- usage?: {
133
- readonly inputTokens?: number | undefined;
134
- readonly outputTokens?: number | undefined;
135
- readonly totalTokens?: number | undefined;
136
- } | undefined;
137
- toolCalls?: number | undefined;
138
- errors?: number | undefined;
139
- duration?: number | undefined;
147
+ readonly pending?: boolean | undefined;
148
+ readonly text: string;
149
+ readonly _tag: "suggestion";
140
150
  } | {
141
- text: string;
142
- _tag: "text";
143
- pending?: boolean | undefined;
144
- disposition?: string | undefined;
145
- mimeType?: string | undefined;
151
+ readonly pending?: boolean | undefined;
152
+ readonly _tag: "select";
153
+ readonly options: string[];
146
154
  } | {
147
- _tag: "toolkit";
148
- pending?: boolean | undefined;
155
+ readonly version: unknown;
156
+ readonly pending?: boolean | undefined;
157
+ readonly _tag: "anchor";
158
+ readonly objectId: string;
149
159
  } | {
150
- _tag: "toolCall";
151
- pending?: boolean | undefined;
152
- name: string;
153
- toolCallId: string;
154
- input: string;
155
- providerExecuted: boolean;
160
+ readonly pending?: boolean | undefined;
161
+ readonly text: string;
162
+ readonly _tag: "proposal";
156
163
  } | {
157
- _tag: "toolResult";
158
- pending?: boolean | undefined;
159
- name: string;
160
- toolCallId: string;
161
- providerExecuted: boolean;
162
- result?: string | undefined;
163
- error?: string | undefined;
164
+ readonly pending?: boolean | undefined;
165
+ readonly _tag: "toolkit";
164
166
  } | {
165
- text: string;
166
- _tag: "transcript";
167
- pending?: boolean | undefined;
168
- started: string;
167
+ readonly pending?: boolean | undefined;
168
+ readonly disposition?: string | undefined;
169
+ readonly _tag: "json";
170
+ readonly data: string;
169
171
  })[];
170
- properties?: {
171
- [x: string]: any;
172
+ readonly properties?: {
173
+ readonly [x: string]: any;
172
174
  } | undefined;
173
175
  };
174
- readonly objects?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
175
- [x: string]: any;
176
- id: import("@dxos/keys").ObjectId;
177
- })[] | undefined;
176
+ readonly objects?: readonly any[] | undefined;
178
177
  }, {
179
178
  readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
180
- id: string;
181
- parentMessage?: string | undefined;
182
- created: string;
183
- sender: {
184
- name?: string | undefined;
185
- role?: "user" | "assistant" | "tool" | undefined;
186
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
187
- image?: string | undefined;
188
- fullName?: string | undefined;
189
- preferredName?: string | undefined;
190
- nickname?: string | undefined;
191
- organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
192
- description?: string | undefined;
193
- name?: string | undefined;
194
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
195
- image?: string | undefined;
196
- website?: string | undefined;
197
- location?: readonly [number, number, (number | undefined)?] | undefined;
179
+ readonly id: string;
180
+ readonly parentMessage?: string | undefined;
181
+ readonly created: string;
182
+ readonly sender: {
183
+ readonly name?: string | undefined;
184
+ readonly role?: "user" | "assistant" | "tool" | undefined;
185
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
186
+ readonly image?: string | undefined;
187
+ readonly fullName?: string | undefined;
188
+ readonly preferredName?: string | undefined;
189
+ readonly nickname?: string | undefined;
190
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
191
+ readonly description?: string | undefined;
192
+ readonly name?: string | undefined;
193
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
194
+ readonly image?: string | undefined;
195
+ readonly website?: string | undefined;
196
+ } & {
197
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
198
198
  }> | undefined;
199
- jobTitle?: string | undefined;
200
- department?: string | undefined;
201
- notes?: string | undefined;
202
- emails?: {
199
+ readonly jobTitle?: string | undefined;
200
+ readonly department?: string | undefined;
201
+ readonly notes?: string | undefined;
202
+ readonly emails?: readonly {
203
203
  readonly value: string;
204
204
  readonly label?: string | undefined;
205
205
  }[] | undefined;
206
- identities?: {
206
+ readonly identities?: readonly {
207
207
  readonly value: string;
208
208
  readonly label?: string | undefined;
209
209
  }[] | undefined;
210
- phoneNumbers?: {
210
+ readonly phoneNumbers?: readonly {
211
211
  readonly value: string;
212
212
  readonly label?: string | undefined;
213
213
  }[] | undefined;
214
- fields?: {
214
+ readonly fields?: readonly {
215
215
  readonly value: string;
216
216
  readonly label: string;
217
217
  readonly category?: string | undefined;
218
218
  }[] | undefined;
219
- addresses?: {
219
+ readonly addresses?: readonly {
220
220
  readonly value: {
221
221
  readonly street?: string | undefined;
222
222
  readonly extended?: string | undefined;
@@ -228,117 +228,118 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
228
228
  };
229
229
  readonly label?: string | undefined;
230
230
  }[] | undefined;
231
- urls?: {
231
+ readonly urls?: readonly {
232
232
  readonly value: string;
233
233
  readonly label?: string | undefined;
234
234
  }[] | undefined;
235
- birthday?: string | undefined;
236
- location?: readonly [number, number, (number | undefined)?] | undefined;
235
+ readonly birthday?: string | undefined;
236
+ } & {
237
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
237
238
  }> | undefined;
238
- identityDid?: string | undefined;
239
- identityKey?: string | undefined;
240
- email?: string | undefined;
239
+ readonly identityDid?: string | undefined;
240
+ readonly identityKey?: string | undefined;
241
+ readonly email?: string | undefined;
241
242
  };
242
- blocks: ({
243
- version: unknown;
244
- _tag: "anchor";
245
- pending?: boolean | undefined;
246
- objectId: string;
243
+ readonly blocks: readonly ({
244
+ readonly pending?: boolean | undefined;
245
+ readonly text: string;
246
+ readonly mimeType?: string | undefined;
247
+ readonly disposition?: string | undefined;
248
+ readonly _tag: "text";
247
249
  } | {
248
- _tag: "file";
249
- pending?: boolean | undefined;
250
- url: string;
251
- name?: string | undefined;
252
- mediaType?: string | undefined;
250
+ readonly pending?: boolean | undefined;
251
+ readonly _tag: "reasoning";
252
+ readonly reasoningText?: string | undefined;
253
+ readonly redactedText?: string | undefined;
254
+ readonly signature?: string | undefined;
253
255
  } | {
254
- id?: string | undefined;
255
- _tag: "image";
256
- pending?: boolean | undefined;
257
- source?: {
258
- mediaType: string;
259
- type: "base64";
260
- data: string;
261
- } | {
262
- url: string;
263
- type: "http";
264
- } | undefined;
256
+ readonly name: string;
257
+ readonly pending?: boolean | undefined;
258
+ readonly _tag: "toolCall";
259
+ readonly toolCallId: string;
260
+ readonly input: string;
261
+ readonly providerExecuted: boolean;
265
262
  } | {
266
- _tag: "json";
267
- pending?: boolean | undefined;
268
- data: string;
269
- disposition?: string | undefined;
263
+ readonly name: string;
264
+ readonly pending?: boolean | undefined;
265
+ readonly _tag: "toolResult";
266
+ readonly toolCallId: string;
267
+ readonly providerExecuted: boolean;
268
+ readonly result?: string | undefined;
269
+ readonly error?: string | undefined;
270
270
  } | {
271
- text: string;
272
- _tag: "proposal";
273
- pending?: boolean | undefined;
271
+ readonly pending?: boolean | undefined;
272
+ readonly mimeType?: string | undefined;
273
+ readonly _tag: "summary";
274
+ readonly message?: string | undefined;
275
+ readonly model?: string | undefined;
276
+ readonly usage?: {
277
+ readonly inputTokens?: number | undefined;
278
+ readonly outputTokens?: number | undefined;
279
+ readonly totalTokens?: number | undefined;
280
+ } | undefined;
281
+ readonly toolCalls?: number | undefined;
282
+ readonly errors?: number | undefined;
283
+ readonly duration?: number | undefined;
274
284
  } | {
275
- _tag: "reasoning";
276
- pending?: boolean | undefined;
277
- reasoningText?: string | undefined;
278
- redactedText?: string | undefined;
279
- signature?: string | undefined;
285
+ readonly source?: {
286
+ readonly type: "base64";
287
+ readonly mediaType: string;
288
+ readonly data: string;
289
+ } | {
290
+ readonly type: "http";
291
+ readonly url: string;
292
+ } | undefined;
293
+ readonly id?: string | undefined;
294
+ readonly pending?: boolean | undefined;
295
+ readonly _tag: "image";
280
296
  } | {
281
- reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>>;
282
- _tag: "reference";
283
- pending?: boolean | undefined;
297
+ readonly name?: string | undefined;
298
+ readonly pending?: boolean | undefined;
299
+ readonly _tag: "file";
300
+ readonly mediaType?: string | undefined;
301
+ readonly url: string;
284
302
  } | {
285
- _tag: "select";
286
- pending?: boolean | undefined;
287
- options: readonly string[];
303
+ readonly pending?: boolean | undefined;
304
+ readonly _tag: "reference";
305
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
288
306
  } | {
289
- _tag: "status";
290
- pending?: boolean | undefined;
291
- statusText: string;
307
+ readonly pending?: boolean | undefined;
308
+ readonly text: string;
309
+ readonly _tag: "transcript";
310
+ readonly started: string;
292
311
  } | {
293
- text: string;
294
- _tag: "suggestion";
295
- pending?: boolean | undefined;
312
+ readonly pending?: boolean | undefined;
313
+ readonly _tag: "status";
314
+ readonly statusText: string;
296
315
  } | {
297
- _tag: "summary";
298
- pending?: boolean | undefined;
299
- mimeType?: string | undefined;
300
- message?: string | undefined;
301
- model?: string | undefined;
302
- usage?: {
303
- readonly inputTokens?: number | undefined;
304
- readonly outputTokens?: number | undefined;
305
- readonly totalTokens?: number | undefined;
306
- } | undefined;
307
- toolCalls?: number | undefined;
308
- errors?: number | undefined;
309
- duration?: number | undefined;
316
+ readonly pending?: boolean | undefined;
317
+ readonly text: string;
318
+ readonly _tag: "suggestion";
310
319
  } | {
311
- text: string;
312
- _tag: "text";
313
- pending?: boolean | undefined;
314
- disposition?: string | undefined;
315
- mimeType?: string | undefined;
320
+ readonly pending?: boolean | undefined;
321
+ readonly _tag: "select";
322
+ readonly options: string[];
316
323
  } | {
317
- _tag: "toolkit";
318
- pending?: boolean | undefined;
324
+ readonly version: unknown;
325
+ readonly pending?: boolean | undefined;
326
+ readonly _tag: "anchor";
327
+ readonly objectId: string;
319
328
  } | {
320
- _tag: "toolCall";
321
- pending?: boolean | undefined;
322
- name: string;
323
- toolCallId: string;
324
- input: string;
325
- providerExecuted: boolean;
329
+ readonly pending?: boolean | undefined;
330
+ readonly text: string;
331
+ readonly _tag: "proposal";
326
332
  } | {
327
- _tag: "toolResult";
328
- pending?: boolean | undefined;
329
- name: string;
330
- toolCallId: string;
331
- providerExecuted: boolean;
332
- result?: string | undefined;
333
- error?: string | undefined;
333
+ readonly pending?: boolean | undefined;
334
+ readonly _tag: "toolkit";
334
335
  } | {
335
- text: string;
336
- _tag: "transcript";
337
- pending?: boolean | undefined;
338
- started: string;
336
+ readonly pending?: boolean | undefined;
337
+ readonly disposition?: string | undefined;
338
+ readonly _tag: "json";
339
+ readonly data: string;
339
340
  })[];
340
- properties?: {
341
- [x: string]: any;
341
+ readonly properties?: {
342
+ readonly [x: string]: any;
342
343
  } | undefined;
343
344
  };
344
345
  readonly timeElapsed: number;
@@ -1 +1 @@
1
- {"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAQA;;GAEG;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;+BA0ChC,CA1BD;wBAA0C,CAAC;0BAEnB,CAAA;yBACgD,CAAC;2BAA6C,CAAC;4BAuBtH,CApBA;;;;;;;kCAOkD,CAAC;;;;kCAK/B,CAAC;;;;kCAMZ,CAAC;;;;;qCAImH,CAAC;;;;uCAAkJ,CAAC;yCAA2D,CAAC;yCAA2D,CAAC;uCAAyD,CAAC;2CAA6D,CAAC;oDAAsE,CAAC;wCAA0D,CAAC;;kCAAuE,CAAC;;;;kCAA8I,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAF11B,CA1BD;wBAA0C,CAAC;0BAEnB,CAAA;yBACgD,CAAC;2BAA6C,CAAC;4BAuBtH,CApBA;;;;;;;kCAOkD,CAAC;;;;kCAK/B,CAAC;;;;kCAMZ,CAAC;;;;;qCAImH,CAAC;;;;uCAAkJ,CAAC;yCAA2D,CAAC;yCAA2D,CAAC;uCAAyD,CAAC;2CAA6D,CAAC;oDAAsE,CAAC;wCAA0D,CAAC;;kCAAuE,CAAC;;;;kCAA8I,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAD11B,CAAC"}
1
+ {"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"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"}