@dxos/assistant 0.8.4-main.e8ec1fe → 0.8.4-main.ef1bc66f44

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