@dxos/assistant 0.8.4-main.3f58842 → 0.8.4-main.406dc2a

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 (168) hide show
  1. package/dist/lib/browser/chunk-CWGVG235.mjs +380 -0
  2. package/dist/lib/browser/chunk-CWGVG235.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 +747 -1645
  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-OV5PMQPB.mjs +382 -0
  15. package/dist/lib/node-esm/chunk-OV5PMQPB.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 +746 -1645
  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 +103 -0
  24. package/dist/types/src/conversation/context.d.ts.map +1 -0
  25. package/dist/types/src/conversation/conversation.d.ts +28 -22
  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 +46 -9
  34. package/dist/types/src/errors.d.ts.map +1 -1
  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 +95 -56
  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.map +1 -1
  44. package/dist/types/src/extraction/extraction.d.ts +252 -218
  45. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  46. package/dist/types/src/extraction/quotes.d.ts +1 -1
  47. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  48. package/dist/types/src/functions/services.d.ts +17 -4
  49. package/dist/types/src/functions/services.d.ts.map +1 -1
  50. package/dist/types/src/index.d.ts +3 -3
  51. package/dist/types/src/index.d.ts.map +1 -1
  52. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  53. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  54. package/dist/types/src/session/error-handling.d.ts +4 -0
  55. package/dist/types/src/session/error-handling.d.ts.map +1 -0
  56. package/dist/types/src/session/format.d.ts +184 -0
  57. package/dist/types/src/session/format.d.ts.map +1 -0
  58. package/dist/types/src/session/format.test.d.ts +2 -0
  59. package/dist/types/src/session/format.test.d.ts.map +1 -0
  60. package/dist/types/src/session/index.d.ts +3 -0
  61. package/dist/types/src/session/index.d.ts.map +1 -1
  62. package/dist/types/src/session/observer.d.ts +22 -0
  63. package/dist/types/src/session/observer.d.ts.map +1 -0
  64. package/dist/types/src/session/session.d.ts +27 -236
  65. package/dist/types/src/session/session.d.ts.map +1 -1
  66. package/dist/types/src/session/toolkit.d.ts +15 -0
  67. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  68. package/dist/types/src/session/version-pin.d.ts +3 -3
  69. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  70. package/dist/types/src/templates/index.d.ts +1 -1
  71. package/dist/types/src/templates/system.d.ts +18 -0
  72. package/dist/types/src/templates/system.d.ts.map +1 -0
  73. package/dist/types/src/{types.d.ts → types/artifact.d.ts} +6 -3
  74. package/dist/types/src/types/artifact.d.ts.map +1 -0
  75. package/dist/types/src/types/index.d.ts +2 -0
  76. package/dist/types/src/types/index.d.ts.map +1 -0
  77. package/dist/types/tsconfig.tsbuildinfo +1 -1
  78. package/package.json +44 -32
  79. package/src/conversation/context.ts +186 -0
  80. package/src/conversation/conversation.ts +89 -53
  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 +6 -1
  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 +13 -11
  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 +15 -8
  91. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +2 -1
  92. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +2 -0
  93. package/src/extraction/extraction.ts +2 -2
  94. package/src/extraction/quotes.test.ts +3 -3
  95. package/src/extraction/quotes.ts +4 -4
  96. package/src/functions/services.ts +114 -95
  97. package/src/index.ts +3 -3
  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 +60 -0
  101. package/src/session/format.ts +142 -0
  102. package/src/session/index.ts +3 -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 +37 -198
  106. package/src/session/session.ts +125 -249
  107. package/src/session/toolkit.ts +48 -0
  108. package/src/session/version-pin.ts +5 -5
  109. package/src/summarization/summarization.test.ts +19 -39
  110. package/src/templates/format.tpl +60 -0
  111. package/src/templates/index.ts +1 -1
  112. package/src/templates/system.tpl +48 -0
  113. package/src/templates/system.ts +41 -0
  114. package/src/{types.ts → types/artifact.ts} +12 -7
  115. package/src/types/index.ts +5 -0
  116. package/src/typings.d.ts +5 -0
  117. package/dist/types/bin/chat.d.ts +0 -2
  118. package/dist/types/bin/chat.d.ts.map +0 -1
  119. package/dist/types/src/context/binder.d.ts +0 -34
  120. package/dist/types/src/context/binder.d.ts.map +0 -1
  121. package/dist/types/src/context/binding.d.ts +0 -56
  122. package/dist/types/src/context/binding.d.ts.map +0 -1
  123. package/dist/types/src/context/index.d.ts +0 -3
  124. package/dist/types/src/context/index.d.ts.map +0 -1
  125. package/dist/types/src/research/exa.d.ts +0 -12
  126. package/dist/types/src/research/exa.d.ts.map +0 -1
  127. package/dist/types/src/research/graph.d.ts +0 -51
  128. package/dist/types/src/research/graph.d.ts.map +0 -1
  129. package/dist/types/src/research/graph.test.d.ts +0 -2
  130. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  131. package/dist/types/src/research/index.d.ts +0 -4
  132. package/dist/types/src/research/index.d.ts.map +0 -1
  133. package/dist/types/src/research/research.d.ts +0 -10
  134. package/dist/types/src/research/research.d.ts.map +0 -1
  135. package/dist/types/src/research/research.test.d.ts +0 -2
  136. package/dist/types/src/research/research.test.d.ts.map +0 -1
  137. package/dist/types/src/session/version-pin.test.d.ts +0 -2
  138. package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
  139. package/dist/types/src/templates/prompt.d.ts +0 -30
  140. package/dist/types/src/templates/prompt.d.ts.map +0 -1
  141. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  142. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  143. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  144. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  145. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  146. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  147. package/dist/types/src/testing/index.d.ts +0 -3
  148. package/dist/types/src/testing/index.d.ts.map +0 -1
  149. package/dist/types/src/types.d.ts.map +0 -1
  150. package/src/context/binder.ts +0 -103
  151. package/src/context/binding.ts +0 -32
  152. package/src/context/index.ts +0 -6
  153. package/src/research/exa.ts +0 -97
  154. package/src/research/graph.test.ts +0 -64
  155. package/src/research/graph.ts +0 -369
  156. package/src/research/index.ts +0 -7
  157. package/src/research/instructions-research.tpl +0 -98
  158. package/src/research/research.test.ts +0 -190
  159. package/src/research/research.ts +0 -87
  160. package/src/session/__snapshots__/session.test.ts.snap +0 -32
  161. package/src/session/version-pin.test.ts +0 -7
  162. package/src/templates/assistant.tpl +0 -111
  163. package/src/templates/prompt.ts +0 -45
  164. package/src/testing/exa-search-1748337321991.ts +0 -131
  165. package/src/testing/exa-search-1748337331526.ts +0 -144
  166. package/src/testing/exa-search-1748337344119.ts +0 -133
  167. package/src/testing/index.ts +0 -11
  168. package/src/typedefs.d.ts +0 -8
@@ -1,19 +1,25 @@
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
- name?: string | undefined;
7
- email?: string | undefined;
8
- contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
14
+ contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
9
15
  fullName?: string | undefined;
10
16
  preferredName?: string | undefined;
11
17
  nickname?: string | undefined;
12
18
  image?: string | undefined;
13
- organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
19
+ organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
14
20
  id: string;
15
- name?: string | undefined;
16
21
  description?: string | undefined;
22
+ name?: string | undefined;
17
23
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
18
24
  image?: string | undefined;
19
25
  website?: string | undefined;
@@ -22,18 +28,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
22
28
  department?: string | undefined;
23
29
  notes?: string | undefined;
24
30
  emails?: {
25
- readonly value: string;
26
31
  readonly label?: string | undefined;
32
+ readonly value: string;
27
33
  }[] | undefined;
28
34
  identities?: {
29
- readonly value: string;
30
35
  readonly label?: string | undefined;
36
+ readonly value: string;
31
37
  }[] | undefined;
32
38
  phoneNumbers?: {
33
- readonly value: string;
34
39
  readonly label?: string | undefined;
40
+ readonly value: string;
35
41
  }[] | undefined;
36
42
  addresses?: {
43
+ readonly label?: string | undefined;
37
44
  readonly value: {
38
45
  readonly street?: string | undefined;
39
46
  readonly extended?: string | undefined;
@@ -43,22 +50,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
43
50
  readonly postOfficeBoxNumber?: string | undefined;
44
51
  readonly country?: string | undefined;
45
52
  };
46
- readonly label?: string | undefined;
47
53
  }[] | undefined;
48
54
  urls?: {
49
- readonly value: string;
50
55
  readonly label?: string | undefined;
56
+ readonly value: string;
51
57
  }[] | undefined;
52
58
  birthday?: string | undefined;
53
59
  fields?: {
54
- readonly value: string;
55
60
  readonly label: string;
61
+ readonly value: string;
56
62
  readonly category?: string | undefined;
57
63
  }[] | undefined;
58
64
  }> | undefined;
59
65
  identityDid?: string | undefined;
60
66
  identityKey?: string | undefined;
61
- role?: "user" | "assistant" | undefined;
67
+ email?: string | undefined;
68
+ name?: string | undefined;
69
+ role?: "user" | "assistant" | "tool" | undefined;
62
70
  };
63
71
  blocks: ({
64
72
  version: unknown;
@@ -73,16 +81,16 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
73
81
  mediaType?: string | undefined;
74
82
  } | {
75
83
  id?: string | undefined;
84
+ _tag: "image";
85
+ pending?: boolean | undefined;
76
86
  source?: {
77
- type: "base64";
78
87
  mediaType: string;
88
+ type: "base64";
79
89
  data: string;
80
90
  } | {
81
- type: "http";
82
91
  url: string;
92
+ type: "http";
83
93
  } | undefined;
84
- _tag: "image";
85
- pending?: boolean | undefined;
86
94
  } | {
87
95
  _tag: "json";
88
96
  pending?: boolean | undefined;
@@ -99,42 +107,59 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
99
107
  redactedText?: string | undefined;
100
108
  signature?: string | undefined;
101
109
  } | {
102
- reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
110
+ reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>;
103
111
  _tag: "reference";
104
112
  pending?: boolean | undefined;
105
113
  } | {
106
- options: readonly string[];
107
114
  _tag: "select";
108
115
  pending?: boolean | undefined;
116
+ options: readonly string[];
109
117
  } | {
110
118
  _tag: "status";
111
119
  pending?: boolean | undefined;
112
120
  statusText: string;
113
121
  } | {
114
122
  text: string;
115
- _tag: "suggest";
123
+ _tag: "suggestion";
116
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;
117
139
  } | {
118
140
  text: string;
119
141
  _tag: "text";
120
142
  pending?: boolean | undefined;
121
143
  disposition?: string | undefined;
122
144
  mimeType?: string | undefined;
145
+ } | {
146
+ _tag: "toolkit";
147
+ pending?: boolean | undefined;
123
148
  } | {
124
149
  name: string;
125
- input: unknown;
126
150
  _tag: "toolCall";
127
151
  pending?: boolean | undefined;
128
152
  toolCallId: string;
129
- } | {
130
- _tag: "toolList";
131
- pending?: boolean | undefined;
153
+ input: string;
154
+ providerExecuted: boolean;
132
155
  } | {
133
156
  name: string;
134
157
  _tag: "toolResult";
135
158
  pending?: boolean | undefined;
136
159
  toolCallId: string;
137
- result: unknown;
160
+ providerExecuted: boolean;
161
+ result?: string | undefined;
162
+ error?: string | undefined;
138
163
  } | {
139
164
  text: string;
140
165
  _tag: "transcript";
@@ -145,27 +170,22 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
145
170
  [x: string]: any;
146
171
  } | undefined;
147
172
  };
148
- readonly options?: {
149
- readonly timeout?: number | undefined;
150
- readonly fallbackToRaw?: boolean | undefined;
151
- } | undefined;
152
- readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
173
+ readonly objects?: readonly import("@dxos/echo/internal").Expando[] | undefined;
153
174
  }, {
154
- readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
175
+ readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
155
176
  id: string;
177
+ parentMessage?: string | undefined;
156
178
  created: string;
157
179
  sender: {
158
- name?: string | undefined;
159
- email?: string | undefined;
160
- contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
180
+ contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
161
181
  fullName?: string | undefined;
162
182
  preferredName?: string | undefined;
163
183
  nickname?: string | undefined;
164
184
  image?: string | undefined;
165
- organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
185
+ organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
166
186
  id: string;
167
- name?: string | undefined;
168
187
  description?: string | undefined;
188
+ name?: string | undefined;
169
189
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
170
190
  image?: string | undefined;
171
191
  website?: string | undefined;
@@ -174,18 +194,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
174
194
  department?: string | undefined;
175
195
  notes?: string | undefined;
176
196
  emails?: {
177
- readonly value: string;
178
197
  readonly label?: string | undefined;
198
+ readonly value: string;
179
199
  }[] | undefined;
180
200
  identities?: {
181
- readonly value: string;
182
201
  readonly label?: string | undefined;
202
+ readonly value: string;
183
203
  }[] | undefined;
184
204
  phoneNumbers?: {
185
- readonly value: string;
186
205
  readonly label?: string | undefined;
206
+ readonly value: string;
187
207
  }[] | undefined;
188
208
  addresses?: {
209
+ readonly label?: string | undefined;
189
210
  readonly value: {
190
211
  readonly street?: string | undefined;
191
212
  readonly extended?: string | undefined;
@@ -195,22 +216,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
195
216
  readonly postOfficeBoxNumber?: string | undefined;
196
217
  readonly country?: string | undefined;
197
218
  };
198
- readonly label?: string | undefined;
199
219
  }[] | undefined;
200
220
  urls?: {
201
- readonly value: string;
202
221
  readonly label?: string | undefined;
222
+ readonly value: string;
203
223
  }[] | undefined;
204
224
  birthday?: string | undefined;
205
225
  fields?: {
206
- readonly value: string;
207
226
  readonly label: string;
227
+ readonly value: string;
208
228
  readonly category?: string | undefined;
209
229
  }[] | undefined;
210
230
  }> | undefined;
211
231
  identityDid?: string | undefined;
212
232
  identityKey?: string | undefined;
213
- role?: "user" | "assistant" | undefined;
233
+ email?: string | undefined;
234
+ name?: string | undefined;
235
+ role?: "user" | "assistant" | "tool" | undefined;
214
236
  };
215
237
  blocks: ({
216
238
  version: unknown;
@@ -225,16 +247,16 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
225
247
  mediaType?: string | undefined;
226
248
  } | {
227
249
  id?: string | undefined;
250
+ _tag: "image";
251
+ pending?: boolean | undefined;
228
252
  source?: {
229
- type: "base64";
230
253
  mediaType: string;
254
+ type: "base64";
231
255
  data: string;
232
256
  } | {
233
- type: "http";
234
257
  url: string;
258
+ type: "http";
235
259
  } | undefined;
236
- _tag: "image";
237
- pending?: boolean | undefined;
238
260
  } | {
239
261
  _tag: "json";
240
262
  pending?: boolean | undefined;
@@ -251,42 +273,59 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
251
273
  redactedText?: string | undefined;
252
274
  signature?: string | undefined;
253
275
  } | {
254
- reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
276
+ reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>;
255
277
  _tag: "reference";
256
278
  pending?: boolean | undefined;
257
279
  } | {
258
- options: readonly string[];
259
280
  _tag: "select";
260
281
  pending?: boolean | undefined;
282
+ options: readonly string[];
261
283
  } | {
262
284
  _tag: "status";
263
285
  pending?: boolean | undefined;
264
286
  statusText: string;
265
287
  } | {
266
288
  text: string;
267
- _tag: "suggest";
289
+ _tag: "suggestion";
268
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;
269
305
  } | {
270
306
  text: string;
271
307
  _tag: "text";
272
308
  pending?: boolean | undefined;
273
309
  disposition?: string | undefined;
274
310
  mimeType?: string | undefined;
311
+ } | {
312
+ _tag: "toolkit";
313
+ pending?: boolean | undefined;
275
314
  } | {
276
315
  name: string;
277
- input: unknown;
278
316
  _tag: "toolCall";
279
317
  pending?: boolean | undefined;
280
318
  toolCallId: string;
281
- } | {
282
- _tag: "toolList";
283
- pending?: boolean | undefined;
319
+ input: string;
320
+ providerExecuted: boolean;
284
321
  } | {
285
322
  name: string;
286
323
  _tag: "toolResult";
287
324
  pending?: boolean | undefined;
288
325
  toolCallId: string;
289
- result: unknown;
326
+ providerExecuted: boolean;
327
+ result?: string | undefined;
328
+ error?: string | undefined;
290
329
  } | {
291
330
  text: string;
292
331
  _tag: "transcript";
@@ -1 +1 @@
1
- {"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAmBA,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 +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,+BAA+B,EACpC,KAAK,yBAAyB,EAE/B,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"}