@dxos/assistant 0.8.4-main.84f28bd → 0.8.4-main.a4bbb77

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 (170) hide show
  1. package/dist/lib/browser/chunk-ILL2CN3G.mjs +374 -0
  2. package/dist/lib/browser/chunk-ILL2CN3G.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-UB26N5UF.mjs +89 -0
  4. package/dist/lib/browser/chunk-UB26N5UF.mjs.map +7 -0
  5. package/dist/lib/browser/extraction/index.mjs +272 -0
  6. package/dist/lib/browser/extraction/index.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +712 -1870
  8. package/dist/lib/browser/index.mjs.map +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/named-entity-recognition-QPYHML66.mjs +13 -0
  11. package/dist/lib/browser/named-entity-recognition-QPYHML66.mjs.map +7 -0
  12. package/dist/lib/node-esm/chunk-BCFXTNSK.mjs +91 -0
  13. package/dist/lib/node-esm/chunk-BCFXTNSK.mjs.map +7 -0
  14. package/dist/lib/node-esm/chunk-GVKA7VL3.mjs +376 -0
  15. package/dist/lib/node-esm/chunk-GVKA7VL3.mjs.map +7 -0
  16. package/dist/lib/node-esm/extraction/index.mjs +273 -0
  17. package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
  18. package/dist/lib/node-esm/index.mjs +712 -1871
  19. package/dist/lib/node-esm/index.mjs.map +4 -4
  20. package/dist/lib/node-esm/meta.json +1 -1
  21. package/dist/lib/node-esm/named-entity-recognition-2HDF46YX.mjs +14 -0
  22. package/dist/lib/node-esm/named-entity-recognition-2HDF46YX.mjs.map +7 -0
  23. package/dist/types/src/conversation/context.d.ts +96 -0
  24. package/dist/types/src/conversation/context.d.ts.map +1 -0
  25. package/dist/types/src/conversation/conversation.d.ts +28 -31
  26. package/dist/types/src/conversation/conversation.d.ts.map +1 -1
  27. package/dist/types/src/conversation/index.d.ts +1 -0
  28. package/dist/types/src/conversation/index.d.ts.map +1 -1
  29. package/dist/types/src/diff.d.ts +15 -0
  30. package/dist/types/src/diff.d.ts.map +1 -0
  31. package/dist/types/src/diff.test.d.ts +2 -0
  32. package/dist/types/src/diff.test.d.ts.map +1 -0
  33. package/dist/types/src/errors.d.ts +75 -0
  34. package/dist/types/src/errors.d.ts.map +1 -0
  35. package/dist/types/src/execution-graph.d.ts +82 -0
  36. package/dist/types/src/execution-graph.d.ts.map +1 -0
  37. package/dist/types/src/execution-graph.test.d.ts +2 -0
  38. package/dist/types/src/execution-graph.test.d.ts.map +1 -0
  39. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +1 -1
  40. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
  41. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +198 -65
  42. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
  43. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +1 -1
  44. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
  45. package/dist/types/src/extraction/extraction.d.ts +254 -162
  46. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  47. package/dist/types/src/functions/index.d.ts +2 -0
  48. package/dist/types/src/functions/index.d.ts.map +1 -0
  49. package/dist/types/src/functions/services.d.ts +18 -0
  50. package/dist/types/src/functions/services.d.ts.map +1 -0
  51. package/dist/types/src/index.d.ts +5 -5
  52. package/dist/types/src/index.d.ts.map +1 -1
  53. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  54. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  55. package/dist/types/src/session/error-handling.d.ts +4 -0
  56. package/dist/types/src/session/error-handling.d.ts.map +1 -0
  57. package/dist/types/src/session/format.d.ts +184 -0
  58. package/dist/types/src/session/format.d.ts.map +1 -0
  59. package/dist/types/src/session/format.test.d.ts +2 -0
  60. package/dist/types/src/session/format.test.d.ts.map +1 -0
  61. package/dist/types/src/session/index.d.ts +3 -0
  62. package/dist/types/src/session/index.d.ts.map +1 -1
  63. package/dist/types/src/session/observer.d.ts +22 -0
  64. package/dist/types/src/session/observer.d.ts.map +1 -0
  65. package/dist/types/src/session/session.d.ts +32 -268
  66. package/dist/types/src/session/session.d.ts.map +1 -1
  67. package/dist/types/src/session/toolkit.d.ts +14 -0
  68. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  69. package/dist/types/src/session/version-pin.d.ts +4 -4
  70. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  71. package/dist/types/src/templates/index.d.ts +2 -0
  72. package/dist/types/src/templates/index.d.ts.map +1 -0
  73. package/dist/types/src/templates/system.d.ts +18 -0
  74. package/dist/types/src/templates/system.d.ts.map +1 -0
  75. package/dist/types/src/types.d.ts +13 -0
  76. package/dist/types/src/types.d.ts.map +1 -1
  77. package/dist/types/tsconfig.tsbuildinfo +1 -1
  78. package/package.json +50 -24
  79. package/src/conversation/context.ts +154 -0
  80. package/src/conversation/conversation.ts +89 -73
  81. package/src/conversation/index.ts +1 -0
  82. package/src/diff.test.ts +43 -0
  83. package/src/diff.ts +79 -0
  84. package/src/errors.ts +15 -0
  85. package/src/execution-graph.test.ts +738 -0
  86. package/src/execution-graph.ts +500 -0
  87. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +13 -24
  88. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +27 -21
  89. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +9 -9
  90. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +17 -7
  91. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +4 -3
  92. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +3 -1
  93. package/src/extraction/quotes.test.ts +3 -3
  94. package/src/extraction/quotes.ts +2 -2
  95. package/src/functions/index.ts +5 -0
  96. package/src/functions/services.ts +153 -0
  97. package/src/index.ts +5 -5
  98. package/src/session/artifact-diff.ts +41 -0
  99. package/src/session/error-handling.ts +40 -0
  100. package/src/session/format.test.ts +60 -0
  101. package/src/session/format.ts +139 -0
  102. package/src/session/index.ts +3 -0
  103. package/src/session/observer.ts +58 -0
  104. package/src/session/session.conversations.json +1 -0
  105. package/src/session/session.test.ts +86 -215
  106. package/src/session/session.ts +163 -539
  107. package/src/session/toolkit.ts +46 -0
  108. package/src/session/version-pin.ts +9 -9
  109. package/src/summarization/summarization.test.ts +86 -106
  110. package/src/templates/format.tpl +60 -0
  111. package/src/templates/index.ts +5 -0
  112. package/src/templates/system.tpl +48 -0
  113. package/src/templates/system.ts +41 -0
  114. package/src/types.ts +45 -1
  115. package/src/typings.d.ts +5 -0
  116. package/dist/types/bin/chat.d.ts +0 -2
  117. package/dist/types/bin/chat.d.ts.map +0 -1
  118. package/dist/types/src/blueprint/blueprint.d.ts +0 -41
  119. package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
  120. package/dist/types/src/blueprint/index.d.ts +0 -3
  121. package/dist/types/src/blueprint/index.d.ts.map +0 -1
  122. package/dist/types/src/blueprint/registry.d.ts +0 -7
  123. package/dist/types/src/blueprint/registry.d.ts.map +0 -1
  124. package/dist/types/src/context/binder.d.ts +0 -34
  125. package/dist/types/src/context/binder.d.ts.map +0 -1
  126. package/dist/types/src/context/binding.d.ts +0 -38
  127. package/dist/types/src/context/binding.d.ts.map +0 -1
  128. package/dist/types/src/context/index.d.ts +0 -3
  129. package/dist/types/src/context/index.d.ts.map +0 -1
  130. package/dist/types/src/research/exa.d.ts +0 -7
  131. package/dist/types/src/research/exa.d.ts.map +0 -1
  132. package/dist/types/src/research/graph.d.ts +0 -41
  133. package/dist/types/src/research/graph.d.ts.map +0 -1
  134. package/dist/types/src/research/graph.test.d.ts +0 -2
  135. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  136. package/dist/types/src/research/index.d.ts +0 -4
  137. package/dist/types/src/research/index.d.ts.map +0 -1
  138. package/dist/types/src/research/research.d.ts +0 -10
  139. package/dist/types/src/research/research.d.ts.map +0 -1
  140. package/dist/types/src/research/research.test.d.ts +0 -2
  141. package/dist/types/src/research/research.test.d.ts.map +0 -1
  142. package/dist/types/src/session/version-pin.test.d.ts +0 -2
  143. package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
  144. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  145. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  146. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  147. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  148. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  149. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  150. package/dist/types/src/testing/index.d.ts +0 -3
  151. package/dist/types/src/testing/index.d.ts.map +0 -1
  152. package/src/blueprint/blueprint.ts +0 -75
  153. package/src/blueprint/index.ts +0 -6
  154. package/src/blueprint/registry.ts +0 -15
  155. package/src/context/binder.ts +0 -101
  156. package/src/context/binding.ts +0 -31
  157. package/src/context/index.ts +0 -6
  158. package/src/research/exa.ts +0 -100
  159. package/src/research/graph.test.ts +0 -15
  160. package/src/research/graph.ts +0 -337
  161. package/src/research/index.ts +0 -7
  162. package/src/research/instructions-research.tpl +0 -97
  163. package/src/research/research.test.ts +0 -190
  164. package/src/research/research.ts +0 -90
  165. package/src/session/version-pin.test.ts +0 -26
  166. package/src/testing/exa-search-1748337321991.ts +0 -131
  167. package/src/testing/exa-search-1748337331526.ts +0 -144
  168. package/src/testing/exa-search-1748337344119.ts +0 -133
  169. package/src/testing/index.ts +0 -11
  170. package/src/typedefs.d.ts +0 -8
@@ -1,24 +1,24 @@
1
- export declare const extractionNerFn: import("@dxos/functions").FunctionDefinition<{
1
+ /**
2
+ * Named Entity Recognition model
3
+ */
4
+ export declare const extractionNerFunction: import("@dxos/functions").FunctionDefinition<{
5
+ readonly options?: {
6
+ readonly timeout?: number | undefined;
7
+ readonly fallbackToRaw?: boolean | undefined;
8
+ } | undefined;
2
9
  readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
3
10
  id: string;
11
+ parentMessage?: string | undefined;
4
12
  created: string;
5
13
  sender: {
6
- name?: string | undefined;
7
- email?: string | undefined;
8
- role?: "user" | "assistant" | undefined;
9
14
  contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
10
- image?: string | undefined;
11
- fields?: {
12
- readonly value: string;
13
- readonly category?: string | undefined;
14
- readonly label: string;
15
- }[] | undefined;
16
15
  fullName?: string | undefined;
17
16
  preferredName?: string | undefined;
18
17
  nickname?: string | undefined;
18
+ image?: string | undefined;
19
19
  organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
20
- description?: string | undefined;
21
20
  id: string;
21
+ description?: string | undefined;
22
22
  name?: string | undefined;
23
23
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
24
24
  image?: string | undefined;
@@ -28,18 +28,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
28
28
  department?: string | undefined;
29
29
  notes?: string | undefined;
30
30
  emails?: {
31
- readonly value: string;
32
31
  readonly label?: string | undefined;
32
+ readonly value: string;
33
33
  }[] | undefined;
34
34
  identities?: {
35
- readonly value: string;
36
35
  readonly label?: string | undefined;
36
+ readonly value: string;
37
37
  }[] | undefined;
38
38
  phoneNumbers?: {
39
- readonly value: string;
40
39
  readonly label?: string | undefined;
40
+ readonly value: string;
41
41
  }[] | undefined;
42
42
  addresses?: {
43
+ readonly label?: string | undefined;
43
44
  readonly value: {
44
45
  readonly street?: string | undefined;
45
46
  readonly extended?: string | undefined;
@@ -49,79 +50,141 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
49
50
  readonly postOfficeBoxNumber?: string | undefined;
50
51
  readonly country?: string | undefined;
51
52
  };
52
- readonly label?: string | undefined;
53
53
  }[] | undefined;
54
54
  urls?: {
55
- readonly value: string;
56
55
  readonly label?: string | undefined;
56
+ readonly value: string;
57
57
  }[] | undefined;
58
58
  birthday?: string | undefined;
59
+ fields?: {
60
+ readonly label: string;
61
+ readonly value: string;
62
+ readonly category?: string | undefined;
63
+ }[] | undefined;
59
64
  }> | undefined;
60
65
  identityDid?: string | undefined;
61
66
  identityKey?: string | undefined;
67
+ email?: string | undefined;
68
+ name?: string | undefined;
69
+ role?: "user" | "assistant" | "tool" | undefined;
62
70
  };
63
71
  blocks: ({
72
+ version: unknown;
73
+ _tag: "anchor";
64
74
  pending?: boolean | undefined;
65
- type: "text";
66
- disposition?: string | undefined;
67
- text: string;
75
+ objectId: string;
68
76
  } | {
77
+ name?: string | undefined;
78
+ _tag: "file";
69
79
  pending?: boolean | undefined;
70
- type: "json";
71
- disposition?: string | undefined;
72
- data: string;
80
+ url: string;
81
+ mediaType?: string | undefined;
73
82
  } | {
74
- pending?: boolean | undefined;
75
83
  id?: string | undefined;
76
- type: "image";
84
+ _tag: "image";
85
+ pending?: boolean | undefined;
77
86
  source?: {
78
- type: "base64";
79
87
  mediaType: string;
88
+ type: "base64";
80
89
  data: string;
81
90
  } | {
82
- type: "http";
83
91
  url: string;
92
+ type: "http";
84
93
  } | undefined;
85
94
  } | {
95
+ _tag: "json";
96
+ pending?: boolean | undefined;
97
+ data: string;
98
+ disposition?: string | undefined;
99
+ } | {
100
+ text: string;
101
+ _tag: "proposal";
86
102
  pending?: boolean | undefined;
87
- type: "reference";
103
+ } | {
104
+ _tag: "reasoning";
105
+ pending?: boolean | undefined;
106
+ reasoningText?: string | undefined;
107
+ redactedText?: string | undefined;
108
+ signature?: string | undefined;
109
+ } | {
88
110
  reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
111
+ _tag: "reference";
112
+ pending?: boolean | undefined;
113
+ } | {
114
+ _tag: "select";
115
+ pending?: boolean | undefined;
116
+ options: readonly string[];
117
+ } | {
118
+ _tag: "status";
119
+ pending?: boolean | undefined;
120
+ statusText: string;
121
+ } | {
122
+ text: string;
123
+ _tag: "suggestion";
124
+ pending?: boolean | undefined;
125
+ } | {
126
+ _tag: "summary";
127
+ pending?: boolean | undefined;
128
+ mimeType?: string | undefined;
129
+ message?: string | undefined;
130
+ model?: string | undefined;
131
+ usage?: {
132
+ readonly inputTokens?: number | undefined;
133
+ readonly outputTokens?: number | undefined;
134
+ readonly totalTokens?: number | undefined;
135
+ } | undefined;
136
+ toolCalls?: number | undefined;
137
+ errors?: number | undefined;
138
+ duration?: number | undefined;
139
+ } | {
140
+ text: string;
141
+ _tag: "text";
142
+ pending?: boolean | undefined;
143
+ disposition?: string | undefined;
144
+ mimeType?: string | undefined;
89
145
  } | {
146
+ _tag: "toolkit";
90
147
  pending?: boolean | undefined;
91
- type: "transcription";
148
+ } | {
149
+ name: string;
150
+ _tag: "toolCall";
151
+ pending?: boolean | undefined;
152
+ toolCallId: string;
153
+ input: string;
154
+ providerExecuted: boolean;
155
+ } | {
156
+ name: string;
157
+ _tag: "toolResult";
158
+ pending?: boolean | undefined;
159
+ toolCallId: string;
160
+ providerExecuted: boolean;
161
+ result?: string | undefined;
162
+ error?: string | undefined;
163
+ } | {
92
164
  text: string;
165
+ _tag: "transcript";
166
+ pending?: boolean | undefined;
93
167
  started: string;
94
168
  })[];
95
169
  properties?: {
96
170
  [x: string]: any;
97
171
  } | undefined;
98
172
  };
99
- readonly options?: {
100
- readonly timeout?: number | undefined;
101
- readonly fallbackToRaw?: boolean | undefined;
102
- } | undefined;
103
173
  readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
104
174
  }, {
105
- message: Omit<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
175
+ readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
106
176
  id: string;
177
+ parentMessage?: string | undefined;
107
178
  created: string;
108
179
  sender: {
109
- name?: string | undefined;
110
- email?: string | undefined;
111
- role?: "user" | "assistant" | undefined;
112
180
  contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
113
- image?: string | undefined;
114
- fields?: {
115
- readonly value: string;
116
- readonly category?: string | undefined;
117
- readonly label: string;
118
- }[] | undefined;
119
181
  fullName?: string | undefined;
120
182
  preferredName?: string | undefined;
121
183
  nickname?: string | undefined;
184
+ image?: string | undefined;
122
185
  organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
123
- description?: string | undefined;
124
186
  id: string;
187
+ description?: string | undefined;
125
188
  name?: string | undefined;
126
189
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
127
190
  image?: string | undefined;
@@ -131,18 +194,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
131
194
  department?: string | undefined;
132
195
  notes?: string | undefined;
133
196
  emails?: {
134
- readonly value: string;
135
197
  readonly label?: string | undefined;
198
+ readonly value: string;
136
199
  }[] | undefined;
137
200
  identities?: {
138
- readonly value: string;
139
201
  readonly label?: string | undefined;
202
+ readonly value: string;
140
203
  }[] | undefined;
141
204
  phoneNumbers?: {
142
- readonly value: string;
143
205
  readonly label?: string | undefined;
206
+ readonly value: string;
144
207
  }[] | undefined;
145
208
  addresses?: {
209
+ readonly label?: string | undefined;
146
210
  readonly value: {
147
211
  readonly street?: string | undefined;
148
212
  readonly extended?: string | undefined;
@@ -152,57 +216,126 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
152
216
  readonly postOfficeBoxNumber?: string | undefined;
153
217
  readonly country?: string | undefined;
154
218
  };
155
- readonly label?: string | undefined;
156
219
  }[] | undefined;
157
220
  urls?: {
158
- readonly value: string;
159
221
  readonly label?: string | undefined;
222
+ readonly value: string;
160
223
  }[] | undefined;
161
224
  birthday?: string | undefined;
225
+ fields?: {
226
+ readonly label: string;
227
+ readonly value: string;
228
+ readonly category?: string | undefined;
229
+ }[] | undefined;
162
230
  }> | undefined;
163
231
  identityDid?: string | undefined;
164
232
  identityKey?: string | undefined;
233
+ email?: string | undefined;
234
+ name?: string | undefined;
235
+ role?: "user" | "assistant" | "tool" | undefined;
165
236
  };
166
237
  blocks: ({
238
+ version: unknown;
239
+ _tag: "anchor";
167
240
  pending?: boolean | undefined;
168
- type: "text";
169
- disposition?: string | undefined;
170
- text: string;
241
+ objectId: string;
171
242
  } | {
243
+ name?: string | undefined;
244
+ _tag: "file";
172
245
  pending?: boolean | undefined;
173
- type: "json";
174
- disposition?: string | undefined;
175
- data: string;
246
+ url: string;
247
+ mediaType?: string | undefined;
176
248
  } | {
177
- pending?: boolean | undefined;
178
249
  id?: string | undefined;
179
- type: "image";
250
+ _tag: "image";
251
+ pending?: boolean | undefined;
180
252
  source?: {
181
- type: "base64";
182
253
  mediaType: string;
254
+ type: "base64";
183
255
  data: string;
184
256
  } | {
185
- type: "http";
186
257
  url: string;
258
+ type: "http";
187
259
  } | undefined;
188
260
  } | {
261
+ _tag: "json";
262
+ pending?: boolean | undefined;
263
+ data: string;
264
+ disposition?: string | undefined;
265
+ } | {
266
+ text: string;
267
+ _tag: "proposal";
189
268
  pending?: boolean | undefined;
190
- type: "reference";
269
+ } | {
270
+ _tag: "reasoning";
271
+ pending?: boolean | undefined;
272
+ reasoningText?: string | undefined;
273
+ redactedText?: string | undefined;
274
+ signature?: string | undefined;
275
+ } | {
191
276
  reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
277
+ _tag: "reference";
278
+ pending?: boolean | undefined;
279
+ } | {
280
+ _tag: "select";
281
+ pending?: boolean | undefined;
282
+ options: readonly string[];
283
+ } | {
284
+ _tag: "status";
285
+ pending?: boolean | undefined;
286
+ statusText: string;
287
+ } | {
288
+ text: string;
289
+ _tag: "suggestion";
290
+ pending?: boolean | undefined;
291
+ } | {
292
+ _tag: "summary";
293
+ pending?: boolean | undefined;
294
+ mimeType?: string | undefined;
295
+ message?: string | undefined;
296
+ model?: string | undefined;
297
+ usage?: {
298
+ readonly inputTokens?: number | undefined;
299
+ readonly outputTokens?: number | undefined;
300
+ readonly totalTokens?: number | undefined;
301
+ } | undefined;
302
+ toolCalls?: number | undefined;
303
+ errors?: number | undefined;
304
+ duration?: number | undefined;
305
+ } | {
306
+ text: string;
307
+ _tag: "text";
308
+ pending?: boolean | undefined;
309
+ disposition?: string | undefined;
310
+ mimeType?: string | undefined;
192
311
  } | {
312
+ _tag: "toolkit";
193
313
  pending?: boolean | undefined;
194
- type: "transcription";
314
+ } | {
315
+ name: string;
316
+ _tag: "toolCall";
317
+ pending?: boolean | undefined;
318
+ toolCallId: string;
319
+ input: string;
320
+ providerExecuted: boolean;
321
+ } | {
322
+ name: string;
323
+ _tag: "toolResult";
324
+ pending?: boolean | undefined;
325
+ toolCallId: string;
326
+ providerExecuted: boolean;
327
+ result?: string | undefined;
328
+ error?: string | undefined;
329
+ } | {
195
330
  text: string;
331
+ _tag: "transcript";
332
+ pending?: boolean | undefined;
196
333
  started: string;
197
334
  })[];
198
335
  properties?: {
199
336
  [x: string]: any;
200
337
  } | undefined;
201
- }, "id" | typeof import("@dxos/echo-schema").EntityKindId> & {
202
- id?: string;
203
- } & {
204
- id: string;
205
338
  };
206
- timeElapsed: number;
339
+ readonly timeElapsed: number;
207
340
  }>;
208
341
  //# sourceMappingURL=extraction-ner-function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC1B,CAAC"}
1
+ {"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAiBA;;GAEG;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ChC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type TokenClassificationSingle, type TokenClassificationPipelineType } from '@xenova/transformers';
1
+ import { type TokenClassificationPipelineType, type TokenClassificationSingle } from '@xenova/transformers';
2
2
  /**
3
3
  * Named Entity Recognition pipeline.
4
4
  * Initializes the pipeline on first call.
@@ -1 +1 @@
1
- {"version":3,"file":"named-entity-recognition.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/named-entity-recognition.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,yBAAyB,EAE9B,KAAK,+BAA+B,EACrC,MAAM,sBAAsB,CAAC;AAK9B;;;;GAIG;AACH,eAAO,MAAM,MAAM,gDAQlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,yBAAyB,EAAE,CAM3F,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,yBAAyB,EAAE,KAAG,yBAAyB,EAAE,EAmClG,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,yBAAyB,EAAE,KAAG,yBAmBrE,CAAC"}
1
+ {"version":3,"file":"named-entity-recognition.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/named-entity-recognition.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAE/B,MAAM,sBAAsB,CAAC;AAM9B;;;;GAIG;AACH,eAAO,MAAM,MAAM,gDASlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,yBAAyB,EAAE,CAM3F,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,yBAAyB,EAAE,KAAG,yBAAyB,EAAE,EAmClG,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,yBAAyB,EAAE,KAAG,yBAmBrE,CAAC"}