@dxos/assistant 0.8.4-main.f9ba587 → 0.8.4-main.fffef41

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 (177) hide show
  1. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  2. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  3. package/dist/lib/browser/extraction/index.mjs +225 -0
  4. package/dist/lib/browser/extraction/index.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +1114 -1843
  6. package/dist/lib/browser/index.mjs.map +4 -4
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  9. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  10. package/dist/lib/node-esm/extraction/index.mjs +226 -0
  11. package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
  12. package/dist/lib/node-esm/index.mjs +1114 -1844
  13. package/dist/lib/node-esm/index.mjs.map +4 -4
  14. package/dist/lib/node-esm/meta.json +1 -1
  15. package/dist/types/src/conversation/context.d.ts +103 -0
  16. package/dist/types/src/conversation/context.d.ts.map +1 -0
  17. package/dist/types/src/conversation/conversation.d.ts +29 -32
  18. package/dist/types/src/conversation/conversation.d.ts.map +1 -1
  19. package/dist/types/src/conversation/index.d.ts +1 -0
  20. package/dist/types/src/conversation/index.d.ts.map +1 -1
  21. package/dist/types/src/diff.d.ts +15 -0
  22. package/dist/types/src/diff.d.ts.map +1 -0
  23. package/dist/types/src/diff.test.d.ts +2 -0
  24. package/dist/types/src/diff.test.d.ts.map +1 -0
  25. package/dist/types/src/errors.d.ts +71 -0
  26. package/dist/types/src/errors.d.ts.map +1 -0
  27. package/dist/types/src/execution-graph.d.ts +85 -0
  28. package/dist/types/src/execution-graph.d.ts.map +1 -0
  29. package/dist/types/src/execution-graph.test.d.ts +2 -0
  30. package/dist/types/src/execution-graph.test.d.ts.map +1 -0
  31. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +1 -1
  32. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
  33. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +195 -58
  34. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
  35. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +1 -1
  36. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
  37. package/dist/types/src/extraction/extraction.d.ts +264 -165
  38. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  39. package/dist/types/src/extraction/quotes.d.ts +1 -1
  40. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  41. package/dist/types/src/functions/index.d.ts +2 -0
  42. package/dist/types/src/functions/index.d.ts.map +1 -0
  43. package/dist/types/src/functions/services.d.ts +20 -0
  44. package/dist/types/src/functions/services.d.ts.map +1 -0
  45. package/dist/types/src/index.d.ts +5 -5
  46. package/dist/types/src/index.d.ts.map +1 -1
  47. package/dist/types/src/session/GenericToolkit.d.ts +84 -0
  48. package/dist/types/src/session/GenericToolkit.d.ts.map +1 -0
  49. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  50. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  51. package/dist/types/src/session/error-handling.d.ts +4 -0
  52. package/dist/types/src/session/error-handling.d.ts.map +1 -0
  53. package/dist/types/src/session/format.d.ts +12 -0
  54. package/dist/types/src/session/format.d.ts.map +1 -0
  55. package/dist/types/src/session/format.test.d.ts +2 -0
  56. package/dist/types/src/session/format.test.d.ts.map +1 -0
  57. package/dist/types/src/session/index.d.ts +4 -0
  58. package/dist/types/src/session/index.d.ts.map +1 -1
  59. package/dist/types/src/session/observer.d.ts +22 -0
  60. package/dist/types/src/session/observer.d.ts.map +1 -0
  61. package/dist/types/src/session/session.d.ts +36 -268
  62. package/dist/types/src/session/session.d.ts.map +1 -1
  63. package/dist/types/src/session/toolkit.d.ts +15 -0
  64. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  65. package/dist/types/src/session/version-pin.d.ts +5 -5
  66. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  67. package/dist/types/src/templates/index.d.ts +2 -0
  68. package/dist/types/src/templates/index.d.ts.map +1 -0
  69. package/dist/types/src/templates/system.d.ts +18 -0
  70. package/dist/types/src/templates/system.d.ts.map +1 -0
  71. package/dist/types/src/types/artifact.d.ts +20 -0
  72. package/dist/types/src/types/artifact.d.ts.map +1 -0
  73. package/dist/types/src/types/index.d.ts +2 -0
  74. package/dist/types/src/types/index.d.ts.map +1 -0
  75. package/dist/types/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +48 -26
  77. package/src/conversation/context.ts +186 -0
  78. package/src/conversation/conversation.ts +101 -76
  79. package/src/conversation/index.ts +1 -0
  80. package/src/diff.test.ts +43 -0
  81. package/src/diff.ts +84 -0
  82. package/src/errors.ts +15 -0
  83. package/src/execution-graph.test.ts +740 -0
  84. package/src/execution-graph.ts +509 -0
  85. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +14 -25
  86. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +48 -52
  87. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +18 -17
  88. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +43 -41
  89. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
  90. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +3 -1
  91. package/src/extraction/extraction.ts +7 -6
  92. package/src/extraction/quotes.test.ts +3 -3
  93. package/src/extraction/quotes.ts +4 -4
  94. package/src/functions/index.ts +5 -0
  95. package/src/functions/services.ts +162 -0
  96. package/src/index.ts +5 -5
  97. package/src/session/GenericToolkit.ts +130 -0
  98. package/src/session/artifact-diff.ts +41 -0
  99. package/src/session/error-handling.ts +41 -0
  100. package/src/session/format.test.ts +61 -0
  101. package/src/session/format.ts +144 -0
  102. package/src/session/index.ts +5 -0
  103. package/src/session/observer.ts +59 -0
  104. package/src/session/session.conversations.json +1 -0
  105. package/src/session/session.test.ts +88 -214
  106. package/src/session/session.ts +170 -539
  107. package/src/session/toolkit.ts +48 -0
  108. package/src/session/version-pin.ts +11 -12
  109. package/src/templates/index.ts +5 -0
  110. package/src/templates/instructions/format.tpl +61 -0
  111. package/src/templates/instructions/system.tpl +48 -0
  112. package/src/templates/system.ts +41 -0
  113. package/src/types/artifact.ts +71 -0
  114. package/src/types/index.ts +5 -0
  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/summarization/summarization.test.d.ts +0 -2
  145. package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
  146. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  147. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  148. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  149. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  150. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  151. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  152. package/dist/types/src/testing/index.d.ts +0 -3
  153. package/dist/types/src/testing/index.d.ts.map +0 -1
  154. package/dist/types/src/types.d.ts +0 -3
  155. package/dist/types/src/types.d.ts.map +0 -1
  156. package/src/blueprint/blueprint.ts +0 -75
  157. package/src/blueprint/index.ts +0 -6
  158. package/src/blueprint/registry.ts +0 -15
  159. package/src/context/binder.ts +0 -101
  160. package/src/context/binding.ts +0 -31
  161. package/src/context/index.ts +0 -6
  162. package/src/research/exa.ts +0 -100
  163. package/src/research/graph.test.ts +0 -15
  164. package/src/research/graph.ts +0 -337
  165. package/src/research/index.ts +0 -7
  166. package/src/research/instructions-research.tpl +0 -97
  167. package/src/research/research.test.ts +0 -190
  168. package/src/research/research.ts +0 -90
  169. package/src/session/version-pin.test.ts +0 -26
  170. package/src/summarization/summarization.test.ts +0 -221
  171. package/src/testing/exa-search-1748337321991.ts +0 -131
  172. package/src/testing/exa-search-1748337331526.ts +0 -144
  173. package/src/testing/exa-search-1748337344119.ts +0 -133
  174. package/src/testing/index.ts +0 -11
  175. package/src/typedefs.d.ts +0 -8
  176. package/src/types.ts +0 -8
  177. /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
@@ -1,28 +1,30 @@
1
- export declare const extractionNerFn: import("@dxos/functions").FunctionDefinition<{
2
- readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
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;
9
+ readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
3
10
  id: string;
11
+ parentMessage?: string | undefined;
4
12
  created: string;
5
13
  sender: {
6
14
  name?: string | undefined;
7
- email?: string | undefined;
8
- role?: "user" | "assistant" | undefined;
9
- contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
15
+ contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
10
16
  image?: string | undefined;
11
- fields?: {
12
- readonly value: string;
13
- readonly category?: string | undefined;
14
- readonly label: string;
15
- }[] | undefined;
16
17
  fullName?: string | undefined;
17
18
  preferredName?: string | undefined;
18
19
  nickname?: string | undefined;
19
- organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
20
+ organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
20
21
  description?: string | undefined;
21
22
  id: string;
22
23
  name?: string | undefined;
23
24
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
24
25
  image?: string | undefined;
25
26
  website?: string | undefined;
27
+ location?: readonly [number, number, (number | undefined)?] | undefined;
26
28
  }> | undefined;
27
29
  jobTitle?: string | undefined;
28
30
  department?: string | undefined;
@@ -56,76 +58,141 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
56
58
  readonly label?: string | undefined;
57
59
  }[] | undefined;
58
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;
59
67
  }> | undefined;
60
68
  identityDid?: string | undefined;
61
69
  identityKey?: string | undefined;
70
+ email?: string | undefined;
71
+ role?: "user" | "assistant" | "tool" | undefined;
62
72
  };
63
73
  blocks: ({
74
+ version: unknown;
75
+ _tag: "anchor";
64
76
  pending?: boolean | undefined;
65
- type: "text";
66
- disposition?: string | undefined;
67
- text: string;
77
+ objectId: string;
68
78
  } | {
79
+ _tag: "file";
69
80
  pending?: boolean | undefined;
70
- type: "json";
71
- disposition?: string | undefined;
72
- data: string;
81
+ url: string;
82
+ name?: string | undefined;
83
+ mediaType?: string | undefined;
73
84
  } | {
74
- pending?: boolean | undefined;
75
85
  id?: string | undefined;
76
- type: "image";
86
+ _tag: "image";
87
+ pending?: boolean | undefined;
77
88
  source?: {
78
- type: "base64";
79
89
  mediaType: string;
90
+ type: "base64";
80
91
  data: string;
81
92
  } | {
82
- type: "http";
83
93
  url: string;
94
+ type: "http";
84
95
  } | undefined;
85
96
  } | {
97
+ _tag: "json";
86
98
  pending?: boolean | undefined;
87
- type: "reference";
88
- reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
99
+ data: string;
100
+ disposition?: string | undefined;
89
101
  } | {
102
+ text: string;
103
+ _tag: "proposal";
104
+ pending?: boolean | undefined;
105
+ } | {
106
+ _tag: "reasoning";
107
+ pending?: boolean | undefined;
108
+ reasoningText?: string | undefined;
109
+ redactedText?: string | undefined;
110
+ signature?: string | undefined;
111
+ } | {
112
+ reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>;
113
+ _tag: "reference";
114
+ pending?: boolean | undefined;
115
+ } | {
116
+ _tag: "select";
117
+ pending?: boolean | undefined;
118
+ options: readonly string[];
119
+ } | {
120
+ _tag: "status";
121
+ pending?: boolean | undefined;
122
+ statusText: string;
123
+ } | {
124
+ text: string;
125
+ _tag: "suggestion";
126
+ pending?: boolean | undefined;
127
+ } | {
128
+ _tag: "summary";
90
129
  pending?: boolean | undefined;
91
- type: "transcription";
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;
141
+ } | {
142
+ text: string;
143
+ _tag: "text";
144
+ pending?: boolean | undefined;
145
+ disposition?: string | undefined;
146
+ mimeType?: string | undefined;
147
+ } | {
148
+ _tag: "toolkit";
149
+ pending?: boolean | undefined;
150
+ } | {
151
+ _tag: "toolCall";
152
+ pending?: boolean | undefined;
153
+ name: string;
154
+ toolCallId: string;
155
+ input: string;
156
+ providerExecuted: boolean;
157
+ } | {
158
+ _tag: "toolResult";
159
+ pending?: boolean | undefined;
160
+ name: string;
161
+ toolCallId: string;
162
+ providerExecuted: boolean;
163
+ result?: string | undefined;
164
+ error?: string | undefined;
165
+ } | {
92
166
  text: string;
167
+ _tag: "transcript";
168
+ pending?: boolean | undefined;
93
169
  started: string;
94
170
  })[];
95
171
  properties?: {
96
172
  [x: string]: any;
97
173
  } | undefined;
98
174
  };
99
- readonly options?: {
100
- readonly timeout?: number | undefined;
101
- readonly fallbackToRaw?: boolean | undefined;
102
- } | undefined;
103
- readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
175
+ readonly objects?: readonly import("@dxos/echo/internal").Expando[] | undefined;
104
176
  }, {
105
- message: Omit<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
177
+ readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
106
178
  id: string;
179
+ parentMessage?: string | undefined;
107
180
  created: string;
108
181
  sender: {
109
182
  name?: string | undefined;
110
- email?: string | undefined;
111
- role?: "user" | "assistant" | undefined;
112
- contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
183
+ contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
113
184
  image?: string | undefined;
114
- fields?: {
115
- readonly value: string;
116
- readonly category?: string | undefined;
117
- readonly label: string;
118
- }[] | undefined;
119
185
  fullName?: string | undefined;
120
186
  preferredName?: string | undefined;
121
187
  nickname?: string | undefined;
122
- organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
188
+ organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
123
189
  description?: string | undefined;
124
190
  id: string;
125
191
  name?: string | undefined;
126
192
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
127
193
  image?: string | undefined;
128
194
  website?: string | undefined;
195
+ location?: readonly [number, number, (number | undefined)?] | undefined;
129
196
  }> | undefined;
130
197
  jobTitle?: string | undefined;
131
198
  department?: string | undefined;
@@ -159,50 +226,120 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
159
226
  readonly label?: string | undefined;
160
227
  }[] | undefined;
161
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;
162
235
  }> | undefined;
163
236
  identityDid?: string | undefined;
164
237
  identityKey?: string | undefined;
238
+ email?: string | undefined;
239
+ role?: "user" | "assistant" | "tool" | undefined;
165
240
  };
166
241
  blocks: ({
242
+ version: unknown;
243
+ _tag: "anchor";
167
244
  pending?: boolean | undefined;
168
- type: "text";
169
- disposition?: string | undefined;
170
- text: string;
245
+ objectId: string;
171
246
  } | {
247
+ _tag: "file";
172
248
  pending?: boolean | undefined;
173
- type: "json";
174
- disposition?: string | undefined;
175
- data: string;
249
+ url: string;
250
+ name?: string | undefined;
251
+ mediaType?: string | undefined;
176
252
  } | {
177
- pending?: boolean | undefined;
178
253
  id?: string | undefined;
179
- type: "image";
254
+ _tag: "image";
255
+ pending?: boolean | undefined;
180
256
  source?: {
181
- type: "base64";
182
257
  mediaType: string;
258
+ type: "base64";
183
259
  data: string;
184
260
  } | {
185
- type: "http";
186
261
  url: string;
262
+ type: "http";
263
+ } | undefined;
264
+ } | {
265
+ _tag: "json";
266
+ pending?: boolean | undefined;
267
+ data: string;
268
+ disposition?: string | undefined;
269
+ } | {
270
+ text: string;
271
+ _tag: "proposal";
272
+ pending?: boolean | undefined;
273
+ } | {
274
+ _tag: "reasoning";
275
+ pending?: boolean | undefined;
276
+ reasoningText?: string | undefined;
277
+ redactedText?: string | undefined;
278
+ signature?: string | undefined;
279
+ } | {
280
+ reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>;
281
+ _tag: "reference";
282
+ pending?: boolean | undefined;
283
+ } | {
284
+ _tag: "select";
285
+ pending?: boolean | undefined;
286
+ options: readonly string[];
287
+ } | {
288
+ _tag: "status";
289
+ pending?: boolean | undefined;
290
+ statusText: string;
291
+ } | {
292
+ text: string;
293
+ _tag: "suggestion";
294
+ pending?: boolean | undefined;
295
+ } | {
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;
187
305
  } | undefined;
306
+ toolCalls?: number | undefined;
307
+ errors?: number | undefined;
308
+ duration?: number | undefined;
309
+ } | {
310
+ text: string;
311
+ _tag: "text";
312
+ pending?: boolean | undefined;
313
+ disposition?: string | undefined;
314
+ mimeType?: string | undefined;
315
+ } | {
316
+ _tag: "toolkit";
317
+ pending?: boolean | undefined;
188
318
  } | {
319
+ _tag: "toolCall";
189
320
  pending?: boolean | undefined;
190
- type: "reference";
191
- reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
321
+ name: string;
322
+ toolCallId: string;
323
+ input: string;
324
+ providerExecuted: boolean;
192
325
  } | {
326
+ _tag: "toolResult";
193
327
  pending?: boolean | undefined;
194
- type: "transcription";
328
+ name: string;
329
+ toolCallId: string;
330
+ providerExecuted: boolean;
331
+ result?: string | undefined;
332
+ error?: string | undefined;
333
+ } | {
195
334
  text: string;
335
+ _tag: "transcript";
336
+ pending?: boolean | undefined;
196
337
  started: string;
197
338
  })[];
198
339
  properties?: {
199
340
  [x: string]: any;
200
341
  } | undefined;
201
- }, "id" | typeof import("@dxos/echo-schema").EntityKindId> & {
202
- id?: string;
203
- } & {
204
- id: string;
205
342
  };
206
- timeElapsed: number;
207
- }>;
343
+ readonly timeElapsed: number;
344
+ }, import("@dxos/functions").FunctionServices>;
208
345
  //# 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":"AAQA;;GAEG;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CA2ChC,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"}