@dxos/assistant 0.8.4-main.3a94e84 → 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 +103 -64
  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 +8 -7
  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 +16 -22
  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,24 +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> & {
9
- fields?: {
10
- readonly value: string;
11
- readonly category?: string | undefined;
12
- readonly label: string;
13
- }[] | undefined;
14
- image?: string | undefined;
14
+ contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
15
15
  fullName?: string | undefined;
16
16
  preferredName?: string | undefined;
17
17
  nickname?: string | undefined;
18
- organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
18
+ image?: string | undefined;
19
+ organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
19
20
  id: string;
20
- name?: string | undefined;
21
21
  description?: string | undefined;
22
+ name?: string | undefined;
22
23
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
23
24
  image?: string | undefined;
24
25
  website?: string | undefined;
@@ -27,18 +28,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
27
28
  department?: string | undefined;
28
29
  notes?: string | undefined;
29
30
  emails?: {
30
- readonly value: string;
31
31
  readonly label?: string | undefined;
32
+ readonly value: string;
32
33
  }[] | undefined;
33
34
  identities?: {
34
- readonly value: string;
35
35
  readonly label?: string | undefined;
36
+ readonly value: string;
36
37
  }[] | undefined;
37
38
  phoneNumbers?: {
38
- readonly value: string;
39
39
  readonly label?: string | undefined;
40
+ readonly value: string;
40
41
  }[] | undefined;
41
42
  addresses?: {
43
+ readonly label?: string | undefined;
42
44
  readonly value: {
43
45
  readonly street?: string | undefined;
44
46
  readonly extended?: string | undefined;
@@ -48,17 +50,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
48
50
  readonly postOfficeBoxNumber?: string | undefined;
49
51
  readonly country?: string | undefined;
50
52
  };
51
- readonly label?: string | undefined;
52
53
  }[] | undefined;
53
54
  urls?: {
54
- readonly value: string;
55
55
  readonly label?: string | undefined;
56
+ readonly value: string;
56
57
  }[] | undefined;
57
58
  birthday?: string | undefined;
59
+ fields?: {
60
+ readonly label: string;
61
+ readonly value: string;
62
+ readonly category?: string | undefined;
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,7 +107,7 @@ 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
  } | {
@@ -112,29 +120,46 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
112
120
  statusText: string;
113
121
  } | {
114
122
  text: string;
115
- _tag: "suggest";
123
+ _tag: "suggestion";
124
+ pending?: boolean | undefined;
125
+ } | {
126
+ _tag: "summary";
116
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,32 +170,22 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
145
170
  [x: string]: any;
146
171
  } | undefined;
147
172
  };
148
- readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
149
- readonly options?: {
150
- readonly timeout?: number | undefined;
151
- readonly fallbackToRaw?: boolean | undefined;
152
- } | 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> & {
161
- fields?: {
162
- readonly value: string;
163
- readonly category?: string | undefined;
164
- readonly label: string;
165
- }[] | undefined;
166
- image?: string | undefined;
180
+ contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
167
181
  fullName?: string | undefined;
168
182
  preferredName?: string | undefined;
169
183
  nickname?: string | undefined;
170
- organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
184
+ image?: string | undefined;
185
+ organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
171
186
  id: string;
172
- name?: string | undefined;
173
187
  description?: string | undefined;
188
+ name?: string | undefined;
174
189
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
175
190
  image?: string | undefined;
176
191
  website?: string | undefined;
@@ -179,18 +194,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
179
194
  department?: string | undefined;
180
195
  notes?: string | undefined;
181
196
  emails?: {
182
- readonly value: string;
183
197
  readonly label?: string | undefined;
198
+ readonly value: string;
184
199
  }[] | undefined;
185
200
  identities?: {
186
- readonly value: string;
187
201
  readonly label?: string | undefined;
202
+ readonly value: string;
188
203
  }[] | undefined;
189
204
  phoneNumbers?: {
190
- readonly value: string;
191
205
  readonly label?: string | undefined;
206
+ readonly value: string;
192
207
  }[] | undefined;
193
208
  addresses?: {
209
+ readonly label?: string | undefined;
194
210
  readonly value: {
195
211
  readonly street?: string | undefined;
196
212
  readonly extended?: string | undefined;
@@ -200,17 +216,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
200
216
  readonly postOfficeBoxNumber?: string | undefined;
201
217
  readonly country?: string | undefined;
202
218
  };
203
- readonly label?: string | undefined;
204
219
  }[] | undefined;
205
220
  urls?: {
206
- readonly value: string;
207
221
  readonly label?: string | undefined;
222
+ readonly value: string;
208
223
  }[] | undefined;
209
224
  birthday?: string | undefined;
225
+ fields?: {
226
+ readonly label: string;
227
+ readonly value: string;
228
+ readonly category?: string | undefined;
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,7 +273,7 @@ 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
  } | {
@@ -264,29 +286,46 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
264
286
  statusText: string;
265
287
  } | {
266
288
  text: string;
267
- _tag: "suggest";
289
+ _tag: "suggestion";
290
+ pending?: boolean | undefined;
291
+ } | {
292
+ _tag: "summary";
268
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"}