@dxos/assistant 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

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 (97) hide show
  1. package/dist/lib/neutral/extraction/index.mjs +4 -21
  2. package/dist/lib/neutral/extraction/index.mjs.map +3 -3
  3. package/dist/lib/neutral/index.mjs +1259 -79
  4. package/dist/lib/neutral/index.mjs.map +4 -4
  5. package/dist/lib/neutral/meta.json +1 -1
  6. package/dist/types/src/conversation/context.d.ts +9 -12
  7. package/dist/types/src/conversation/context.d.ts.map +1 -1
  8. package/dist/types/src/conversation/index.d.ts +1 -1
  9. package/dist/types/src/conversation/index.d.ts.map +1 -1
  10. package/dist/types/src/conversation/session.d.ts +78 -0
  11. package/dist/types/src/conversation/session.d.ts.map +1 -0
  12. package/dist/types/src/diff.d.ts.map +1 -1
  13. package/dist/types/src/errors.d.ts +12 -12
  14. package/dist/types/src/errors.d.ts.map +1 -1
  15. package/dist/types/src/execution-graph.d.ts.map +1 -1
  16. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
  17. package/dist/types/src/extraction/extraction.d.ts +461 -455
  18. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  19. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  20. package/dist/types/src/functions/services.d.ts +7 -29
  21. package/dist/types/src/functions/services.d.ts.map +1 -1
  22. package/dist/types/src/index.d.ts +0 -1
  23. package/dist/types/src/index.d.ts.map +1 -1
  24. package/dist/types/src/session/artifact-diff.d.ts.map +1 -1
  25. package/dist/types/src/session/error-handling.d.ts.map +1 -1
  26. package/dist/types/src/session/format.d.ts +6 -3
  27. package/dist/types/src/session/format.d.ts.map +1 -1
  28. package/dist/types/src/session/index.d.ts +1 -1
  29. package/dist/types/src/session/{session.d.ts → request.d.ts} +25 -33
  30. package/dist/types/src/session/request.d.ts.map +1 -0
  31. package/dist/types/src/session/toolkit.d.ts +5 -7
  32. package/dist/types/src/session/toolkit.d.ts.map +1 -1
  33. package/dist/types/src/templates/system.d.ts +1 -1
  34. package/dist/types/src/templates/system.d.ts.map +1 -1
  35. package/dist/types/src/tracing.d.ts +64 -95
  36. package/dist/types/src/tracing.d.ts.map +1 -1
  37. package/dist/types/src/types/artifact.d.ts.map +1 -1
  38. package/dist/types/tsconfig.tsbuildinfo +1 -1
  39. package/package.json +21 -38
  40. package/src/conversation/context.ts +1 -1
  41. package/src/conversation/index.ts +1 -1
  42. package/src/conversation/session.ts +334 -0
  43. package/src/execution-graph.ts +15 -5
  44. package/src/extraction/extraction.ts +1 -1
  45. package/src/functions/services.ts +12 -127
  46. package/src/functions.conversations.json +1 -1
  47. package/src/index.ts +0 -1
  48. package/src/session/format.ts +14 -9
  49. package/src/session/index.ts +1 -1
  50. package/src/session/request.conversations.json +1 -0
  51. package/src/session/{session.ts → request.ts} +44 -51
  52. package/src/session/toolkit.ts +18 -15
  53. package/src/templates/instructions/system.tpl +11 -0
  54. package/src/templates/system.ts +1 -1
  55. package/src/tracing.ts +13 -69
  56. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +0 -10
  57. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +0 -7
  58. package/dist/lib/neutral/chunk-UAWIXKF6.mjs +0 -1875
  59. package/dist/lib/neutral/chunk-UAWIXKF6.mjs.map +0 -7
  60. package/dist/lib/neutral/testing/index.mjs +0 -114
  61. package/dist/lib/neutral/testing/index.mjs.map +0 -7
  62. package/dist/types/src/conversation/conversation.d.ts +0 -68
  63. package/dist/types/src/conversation/conversation.d.ts.map +0 -1
  64. package/dist/types/src/conversation/conversation.test.d.ts +0 -2
  65. package/dist/types/src/conversation/conversation.test.d.ts.map +0 -1
  66. package/dist/types/src/functions.test.d.ts +0 -2
  67. package/dist/types/src/functions.test.d.ts.map +0 -1
  68. package/dist/types/src/service/AgentService.d.ts +0 -61
  69. package/dist/types/src/service/AgentService.d.ts.map +0 -1
  70. package/dist/types/src/service/AgentService.test.d.ts +0 -2
  71. package/dist/types/src/service/AgentService.test.d.ts.map +0 -1
  72. package/dist/types/src/service/agent-process.d.ts +0 -17
  73. package/dist/types/src/service/agent-process.d.ts.map +0 -1
  74. package/dist/types/src/service/index.d.ts +0 -3
  75. package/dist/types/src/service/index.d.ts.map +0 -1
  76. package/dist/types/src/session/format.test.d.ts +0 -2
  77. package/dist/types/src/session/format.test.d.ts.map +0 -1
  78. package/dist/types/src/session/session.d.ts.map +0 -1
  79. package/dist/types/src/session/session.test.d.ts +0 -2
  80. package/dist/types/src/session/session.test.d.ts.map +0 -1
  81. package/dist/types/src/testing/index.d.ts +0 -2
  82. package/dist/types/src/testing/index.d.ts.map +0 -1
  83. package/dist/types/src/testing/layer.d.ts +0 -35
  84. package/dist/types/src/testing/layer.d.ts.map +0 -1
  85. package/src/conversation/conversation.test.ts +0 -58
  86. package/src/conversation/conversation.ts +0 -275
  87. package/src/functions.test.ts +0 -82
  88. package/src/service/AgentService.conversations.json +0 -1
  89. package/src/service/AgentService.test.ts +0 -169
  90. package/src/service/AgentService.ts +0 -165
  91. package/src/service/agent-process.ts +0 -359
  92. package/src/service/index.ts +0 -6
  93. package/src/session/format.test.ts +0 -132
  94. package/src/session/session.conversations.json +0 -1
  95. package/src/session/session.test.ts +0 -190
  96. package/src/testing/index.ts +0 -5
  97. package/src/testing/layer.ts +0 -259
@@ -1,23 +1,23 @@
1
1
  import * as Schema from 'effect/Schema';
2
+ import { Operation } from '@dxos/compute';
2
3
  import { Obj } from '@dxos/echo';
3
- import { Operation } from '@dxos/operation';
4
4
  export declare const ExtractionInput: Schema.Struct<{
5
5
  message: import("@dxos/echo/Type").Obj<{
6
6
  readonly id: string;
7
7
  readonly parentMessage?: string | undefined;
8
+ readonly threadId?: string | undefined;
8
9
  readonly created: string;
9
10
  readonly sender: {
10
- readonly name?: string | undefined;
11
- readonly role?: "user" | "assistant" | "tool" | undefined;
11
+ readonly role?: "assistant" | "tool" | "user" | undefined;
12
12
  readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
13
- readonly image?: string | undefined;
14
13
  readonly fullName?: string | undefined;
15
14
  readonly preferredName?: string | undefined;
16
15
  readonly nickname?: string | undefined;
16
+ readonly image?: string | undefined;
17
17
  readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
18
- readonly description?: string | undefined;
19
18
  readonly name?: string | undefined;
20
- readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
19
+ readonly description?: string | undefined;
20
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
21
21
  readonly image?: string | undefined;
22
22
  readonly website?: string | undefined;
23
23
  } & {
@@ -27,23 +27,19 @@ export declare const ExtractionInput: Schema.Struct<{
27
27
  readonly department?: string | undefined;
28
28
  readonly notes?: string | undefined;
29
29
  readonly emails?: readonly {
30
- readonly value: string;
31
30
  readonly label?: string | undefined;
31
+ readonly value: string;
32
32
  }[] | undefined;
33
33
  readonly identities?: readonly {
34
- readonly value: string;
35
34
  readonly label?: string | undefined;
35
+ readonly value: string;
36
36
  }[] | undefined;
37
37
  readonly phoneNumbers?: readonly {
38
- readonly value: string;
39
38
  readonly label?: string | undefined;
40
- }[] | undefined;
41
- readonly fields?: readonly {
42
39
  readonly value: string;
43
- readonly label: string;
44
- readonly category?: string | undefined;
45
40
  }[] | undefined;
46
41
  readonly addresses?: readonly {
42
+ readonly label?: string | undefined;
47
43
  readonly value: {
48
44
  readonly street?: string | undefined;
49
45
  readonly extended?: string | undefined;
@@ -53,62 +49,40 @@ export declare const ExtractionInput: Schema.Struct<{
53
49
  readonly postOfficeBoxNumber?: string | undefined;
54
50
  readonly country?: string | undefined;
55
51
  };
56
- readonly label?: string | undefined;
57
52
  }[] | undefined;
58
53
  readonly urls?: readonly {
59
- readonly value: string;
60
54
  readonly label?: string | undefined;
55
+ readonly value: string;
61
56
  }[] | undefined;
62
57
  readonly birthday?: string | undefined;
58
+ readonly fields?: readonly {
59
+ readonly category?: string | undefined;
60
+ readonly label: string;
61
+ readonly value: string;
62
+ }[] | undefined;
63
63
  } & {
64
64
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
65
65
  }> | undefined;
66
66
  readonly identityDid?: string | undefined;
67
67
  readonly identityKey?: string | undefined;
68
68
  readonly email?: string | undefined;
69
+ readonly name?: string | undefined;
69
70
  };
70
71
  readonly blocks: readonly ({
72
+ readonly _tag: "anchor";
71
73
  readonly pending?: boolean | undefined;
72
- readonly text: string;
73
- readonly mimeType?: string | undefined;
74
- readonly disposition?: string | undefined;
75
- readonly _tag: "text";
76
- } | {
77
- readonly pending?: boolean | undefined;
78
- readonly _tag: "reasoning";
79
- readonly reasoningText?: string | undefined;
80
- readonly redactedText?: string | undefined;
81
- readonly signature?: string | undefined;
82
- } | {
83
- readonly name: string;
84
- readonly pending?: boolean | undefined;
85
- readonly _tag: "toolCall";
86
- readonly toolCallId: string;
87
- readonly input: string;
88
- readonly providerExecuted: boolean;
74
+ readonly objectId: string;
75
+ readonly version: unknown;
89
76
  } | {
90
- readonly name: string;
77
+ readonly _tag: "file";
91
78
  readonly pending?: boolean | undefined;
92
- readonly _tag: "toolResult";
93
- readonly toolCallId: string;
94
- readonly providerExecuted: boolean;
95
- readonly result?: string | undefined;
96
- readonly error?: string | undefined;
79
+ readonly url: string;
80
+ readonly name?: string | undefined;
81
+ readonly mediaType?: string | undefined;
97
82
  } | {
83
+ readonly _tag: "image";
98
84
  readonly pending?: boolean | undefined;
99
- readonly mimeType?: string | undefined;
100
- readonly _tag: "stats";
101
- readonly message?: string | undefined;
102
- readonly model?: string | undefined;
103
- readonly usage?: {
104
- readonly inputTokens?: number | undefined;
105
- readonly outputTokens?: number | undefined;
106
- readonly totalTokens?: number | undefined;
107
- } | undefined;
108
- readonly toolCalls?: number | undefined;
109
- readonly errors?: number | undefined;
110
- readonly duration?: number | undefined;
111
- } | {
85
+ readonly id?: string | undefined;
112
86
  readonly source?: {
113
87
  readonly type: "base64";
114
88
  readonly mediaType: string;
@@ -117,57 +91,84 @@ export declare const ExtractionInput: Schema.Struct<{
117
91
  readonly type: "http";
118
92
  readonly url: string;
119
93
  } | undefined;
120
- readonly id?: string | undefined;
94
+ } | {
95
+ readonly _tag: "json";
121
96
  readonly pending?: boolean | undefined;
122
- readonly _tag: "image";
97
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
98
+ readonly data: string;
123
99
  } | {
124
- readonly name?: string | undefined;
100
+ readonly _tag: "proposal";
125
101
  readonly pending?: boolean | undefined;
126
- readonly _tag: "file";
127
- readonly mediaType?: string | undefined;
128
- readonly url: string;
102
+ readonly text: string;
129
103
  } | {
104
+ readonly _tag: "reasoning";
130
105
  readonly pending?: boolean | undefined;
106
+ readonly reasoningText?: string | undefined;
107
+ readonly redactedText?: string | undefined;
108
+ readonly signature?: string | undefined;
109
+ } | {
131
110
  readonly _tag: "reference";
111
+ readonly pending?: boolean | undefined;
132
112
  readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
133
113
  } | {
114
+ readonly _tag: "select";
134
115
  readonly pending?: boolean | undefined;
135
- readonly text: string;
136
- readonly _tag: "transcript";
137
- readonly started: string;
116
+ readonly options: string[];
138
117
  } | {
139
- readonly pending?: boolean | undefined;
140
118
  readonly _tag: "status";
119
+ readonly pending?: boolean | undefined;
141
120
  readonly statusText: string;
142
121
  } | {
143
- readonly pending?: boolean | undefined;
144
- readonly text: string;
145
122
  readonly _tag: "suggestion";
146
- } | {
147
123
  readonly pending?: boolean | undefined;
148
- readonly _tag: "select";
149
- readonly options: string[];
124
+ readonly text: string;
150
125
  } | {
151
- readonly version: unknown;
126
+ readonly _tag: "stats";
152
127
  readonly pending?: boolean | undefined;
153
- readonly _tag: "anchor";
154
- readonly objectId: string;
128
+ readonly mimeType?: string | undefined;
129
+ readonly message?: string | undefined;
130
+ readonly model?: string | undefined;
131
+ readonly usage?: {
132
+ readonly inputTokens?: number | undefined;
133
+ readonly outputTokens?: number | undefined;
134
+ readonly totalTokens?: number | undefined;
135
+ } | undefined;
136
+ readonly toolCalls?: number | undefined;
137
+ readonly errors?: number | undefined;
138
+ readonly duration?: number | undefined;
155
139
  } | {
140
+ readonly _tag: "text";
156
141
  readonly pending?: boolean | undefined;
142
+ readonly mimeType?: string | undefined;
157
143
  readonly text: string;
158
- readonly _tag: "proposal";
144
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
159
145
  } | {
160
- readonly pending?: boolean | undefined;
161
146
  readonly _tag: "summary";
147
+ readonly pending?: boolean | undefined;
162
148
  readonly content: string;
163
149
  } | {
164
- readonly pending?: boolean | undefined;
165
150
  readonly _tag: "toolkit";
151
+ readonly pending?: boolean | undefined;
166
152
  } | {
153
+ readonly _tag: "toolCall";
167
154
  readonly pending?: boolean | undefined;
168
- readonly disposition?: string | undefined;
169
- readonly _tag: "json";
170
- readonly data: string;
155
+ readonly toolCallId: string;
156
+ readonly name: string;
157
+ readonly input: string;
158
+ readonly providerExecuted: boolean;
159
+ } | {
160
+ readonly _tag: "toolResult";
161
+ readonly pending?: boolean | undefined;
162
+ readonly toolCallId: string;
163
+ readonly name: string;
164
+ readonly result?: string | undefined;
165
+ readonly error?: string | undefined;
166
+ readonly providerExecuted: boolean;
167
+ } | {
168
+ readonly _tag: "transcript";
169
+ readonly pending?: boolean | undefined;
170
+ readonly started: string;
171
+ readonly text: string;
171
172
  })[];
172
173
  readonly properties?: {
173
174
  readonly [x: string]: any;
@@ -185,19 +186,19 @@ export declare const ExtractionOutput: Schema.Struct<{
185
186
  message: import("@dxos/echo/Type").Obj<{
186
187
  readonly id: string;
187
188
  readonly parentMessage?: string | undefined;
189
+ readonly threadId?: string | undefined;
188
190
  readonly created: string;
189
191
  readonly sender: {
190
- readonly name?: string | undefined;
191
- readonly role?: "user" | "assistant" | "tool" | undefined;
192
+ readonly role?: "assistant" | "tool" | "user" | undefined;
192
193
  readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
193
- readonly image?: string | undefined;
194
194
  readonly fullName?: string | undefined;
195
195
  readonly preferredName?: string | undefined;
196
196
  readonly nickname?: string | undefined;
197
+ readonly image?: string | undefined;
197
198
  readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
198
- readonly description?: string | undefined;
199
199
  readonly name?: string | undefined;
200
- readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
200
+ readonly description?: string | undefined;
201
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
201
202
  readonly image?: string | undefined;
202
203
  readonly website?: string | undefined;
203
204
  } & {
@@ -207,23 +208,19 @@ export declare const ExtractionOutput: Schema.Struct<{
207
208
  readonly department?: string | undefined;
208
209
  readonly notes?: string | undefined;
209
210
  readonly emails?: readonly {
210
- readonly value: string;
211
211
  readonly label?: string | undefined;
212
+ readonly value: string;
212
213
  }[] | undefined;
213
214
  readonly identities?: readonly {
214
- readonly value: string;
215
215
  readonly label?: string | undefined;
216
+ readonly value: string;
216
217
  }[] | undefined;
217
218
  readonly phoneNumbers?: readonly {
218
- readonly value: string;
219
219
  readonly label?: string | undefined;
220
- }[] | undefined;
221
- readonly fields?: readonly {
222
220
  readonly value: string;
223
- readonly label: string;
224
- readonly category?: string | undefined;
225
221
  }[] | undefined;
226
222
  readonly addresses?: readonly {
223
+ readonly label?: string | undefined;
227
224
  readonly value: {
228
225
  readonly street?: string | undefined;
229
226
  readonly extended?: string | undefined;
@@ -233,62 +230,40 @@ export declare const ExtractionOutput: Schema.Struct<{
233
230
  readonly postOfficeBoxNumber?: string | undefined;
234
231
  readonly country?: string | undefined;
235
232
  };
236
- readonly label?: string | undefined;
237
233
  }[] | undefined;
238
234
  readonly urls?: readonly {
239
- readonly value: string;
240
235
  readonly label?: string | undefined;
236
+ readonly value: string;
241
237
  }[] | undefined;
242
238
  readonly birthday?: string | undefined;
239
+ readonly fields?: readonly {
240
+ readonly category?: string | undefined;
241
+ readonly label: string;
242
+ readonly value: string;
243
+ }[] | undefined;
243
244
  } & {
244
245
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
245
246
  }> | undefined;
246
247
  readonly identityDid?: string | undefined;
247
248
  readonly identityKey?: string | undefined;
248
249
  readonly email?: string | undefined;
250
+ readonly name?: string | undefined;
249
251
  };
250
252
  readonly blocks: readonly ({
253
+ readonly _tag: "anchor";
251
254
  readonly pending?: boolean | undefined;
252
- readonly text: string;
253
- readonly mimeType?: string | undefined;
254
- readonly disposition?: string | undefined;
255
- readonly _tag: "text";
256
- } | {
257
- readonly pending?: boolean | undefined;
258
- readonly _tag: "reasoning";
259
- readonly reasoningText?: string | undefined;
260
- readonly redactedText?: string | undefined;
261
- readonly signature?: string | undefined;
262
- } | {
263
- readonly name: string;
264
- readonly pending?: boolean | undefined;
265
- readonly _tag: "toolCall";
266
- readonly toolCallId: string;
267
- readonly input: string;
268
- readonly providerExecuted: boolean;
255
+ readonly objectId: string;
256
+ readonly version: unknown;
269
257
  } | {
270
- readonly name: string;
258
+ readonly _tag: "file";
271
259
  readonly pending?: boolean | undefined;
272
- readonly _tag: "toolResult";
273
- readonly toolCallId: string;
274
- readonly providerExecuted: boolean;
275
- readonly result?: string | undefined;
276
- readonly error?: string | undefined;
260
+ readonly url: string;
261
+ readonly name?: string | undefined;
262
+ readonly mediaType?: string | undefined;
277
263
  } | {
264
+ readonly _tag: "image";
278
265
  readonly pending?: boolean | undefined;
279
- readonly mimeType?: string | undefined;
280
- readonly _tag: "stats";
281
- readonly message?: string | undefined;
282
- readonly model?: string | undefined;
283
- readonly usage?: {
284
- readonly inputTokens?: number | undefined;
285
- readonly outputTokens?: number | undefined;
286
- readonly totalTokens?: number | undefined;
287
- } | undefined;
288
- readonly toolCalls?: number | undefined;
289
- readonly errors?: number | undefined;
290
- readonly duration?: number | undefined;
291
- } | {
266
+ readonly id?: string | undefined;
292
267
  readonly source?: {
293
268
  readonly type: "base64";
294
269
  readonly mediaType: string;
@@ -297,57 +272,84 @@ export declare const ExtractionOutput: Schema.Struct<{
297
272
  readonly type: "http";
298
273
  readonly url: string;
299
274
  } | undefined;
300
- readonly id?: string | undefined;
275
+ } | {
276
+ readonly _tag: "json";
301
277
  readonly pending?: boolean | undefined;
302
- readonly _tag: "image";
278
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
279
+ readonly data: string;
303
280
  } | {
304
- readonly name?: string | undefined;
281
+ readonly _tag: "proposal";
305
282
  readonly pending?: boolean | undefined;
306
- readonly _tag: "file";
307
- readonly mediaType?: string | undefined;
308
- readonly url: string;
283
+ readonly text: string;
309
284
  } | {
285
+ readonly _tag: "reasoning";
310
286
  readonly pending?: boolean | undefined;
287
+ readonly reasoningText?: string | undefined;
288
+ readonly redactedText?: string | undefined;
289
+ readonly signature?: string | undefined;
290
+ } | {
311
291
  readonly _tag: "reference";
292
+ readonly pending?: boolean | undefined;
312
293
  readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
313
294
  } | {
295
+ readonly _tag: "select";
314
296
  readonly pending?: boolean | undefined;
315
- readonly text: string;
316
- readonly _tag: "transcript";
317
- readonly started: string;
297
+ readonly options: string[];
318
298
  } | {
319
- readonly pending?: boolean | undefined;
320
299
  readonly _tag: "status";
300
+ readonly pending?: boolean | undefined;
321
301
  readonly statusText: string;
322
302
  } | {
323
- readonly pending?: boolean | undefined;
324
- readonly text: string;
325
303
  readonly _tag: "suggestion";
326
- } | {
327
304
  readonly pending?: boolean | undefined;
328
- readonly _tag: "select";
329
- readonly options: string[];
305
+ readonly text: string;
330
306
  } | {
331
- readonly version: unknown;
307
+ readonly _tag: "stats";
332
308
  readonly pending?: boolean | undefined;
333
- readonly _tag: "anchor";
334
- readonly objectId: string;
309
+ readonly mimeType?: string | undefined;
310
+ readonly message?: string | undefined;
311
+ readonly model?: string | undefined;
312
+ readonly usage?: {
313
+ readonly inputTokens?: number | undefined;
314
+ readonly outputTokens?: number | undefined;
315
+ readonly totalTokens?: number | undefined;
316
+ } | undefined;
317
+ readonly toolCalls?: number | undefined;
318
+ readonly errors?: number | undefined;
319
+ readonly duration?: number | undefined;
335
320
  } | {
321
+ readonly _tag: "text";
336
322
  readonly pending?: boolean | undefined;
323
+ readonly mimeType?: string | undefined;
337
324
  readonly text: string;
338
- readonly _tag: "proposal";
325
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
339
326
  } | {
340
- readonly pending?: boolean | undefined;
341
327
  readonly _tag: "summary";
328
+ readonly pending?: boolean | undefined;
342
329
  readonly content: string;
343
330
  } | {
344
- readonly pending?: boolean | undefined;
345
331
  readonly _tag: "toolkit";
332
+ readonly pending?: boolean | undefined;
346
333
  } | {
334
+ readonly _tag: "toolCall";
347
335
  readonly pending?: boolean | undefined;
348
- readonly disposition?: string | undefined;
349
- readonly _tag: "json";
350
- readonly data: string;
336
+ readonly toolCallId: string;
337
+ readonly name: string;
338
+ readonly input: string;
339
+ readonly providerExecuted: boolean;
340
+ } | {
341
+ readonly _tag: "toolResult";
342
+ readonly pending?: boolean | undefined;
343
+ readonly toolCallId: string;
344
+ readonly name: string;
345
+ readonly result?: string | undefined;
346
+ readonly error?: string | undefined;
347
+ readonly providerExecuted: boolean;
348
+ } | {
349
+ readonly _tag: "transcript";
350
+ readonly pending?: boolean | undefined;
351
+ readonly started: string;
352
+ readonly text: string;
351
353
  })[];
352
354
  readonly properties?: {
353
355
  readonly [x: string]: any;
@@ -379,26 +381,22 @@ export type ExtractionFunction = Operation.Definition<ExtractionInput, Extractio
379
381
  * Implementation is currently disabled pending restoration of extraction logic.
380
382
  */
381
383
  export declare const extractionAnthropicFunction: Operation.Definition<{
382
- readonly options?: {
383
- readonly timeout?: number | undefined;
384
- readonly fallbackToRaw?: boolean | undefined;
385
- } | undefined;
386
384
  readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
387
385
  readonly id: string;
388
386
  readonly parentMessage?: string | undefined;
387
+ readonly threadId?: string | undefined;
389
388
  readonly created: string;
390
389
  readonly sender: {
391
- readonly name?: string | undefined;
392
- readonly role?: "user" | "assistant" | "tool" | undefined;
390
+ readonly role?: "assistant" | "tool" | "user" | undefined;
393
391
  readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
394
- readonly image?: string | undefined;
395
392
  readonly fullName?: string | undefined;
396
393
  readonly preferredName?: string | undefined;
397
394
  readonly nickname?: string | undefined;
395
+ readonly image?: string | undefined;
398
396
  readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
399
- readonly description?: string | undefined;
400
397
  readonly name?: string | undefined;
401
- readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
398
+ readonly description?: string | undefined;
399
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
402
400
  readonly image?: string | undefined;
403
401
  readonly website?: string | undefined;
404
402
  } & {
@@ -408,23 +406,19 @@ export declare const extractionAnthropicFunction: Operation.Definition<{
408
406
  readonly department?: string | undefined;
409
407
  readonly notes?: string | undefined;
410
408
  readonly emails?: readonly {
411
- readonly value: string;
412
409
  readonly label?: string | undefined;
410
+ readonly value: string;
413
411
  }[] | undefined;
414
412
  readonly identities?: readonly {
415
- readonly value: string;
416
413
  readonly label?: string | undefined;
414
+ readonly value: string;
417
415
  }[] | undefined;
418
416
  readonly phoneNumbers?: readonly {
419
- readonly value: string;
420
417
  readonly label?: string | undefined;
421
- }[] | undefined;
422
- readonly fields?: readonly {
423
418
  readonly value: string;
424
- readonly label: string;
425
- readonly category?: string | undefined;
426
419
  }[] | undefined;
427
420
  readonly addresses?: readonly {
421
+ readonly label?: string | undefined;
428
422
  readonly value: {
429
423
  readonly street?: string | undefined;
430
424
  readonly extended?: string | undefined;
@@ -434,62 +428,40 @@ export declare const extractionAnthropicFunction: Operation.Definition<{
434
428
  readonly postOfficeBoxNumber?: string | undefined;
435
429
  readonly country?: string | undefined;
436
430
  };
437
- readonly label?: string | undefined;
438
431
  }[] | undefined;
439
432
  readonly urls?: readonly {
440
- readonly value: string;
441
433
  readonly label?: string | undefined;
434
+ readonly value: string;
442
435
  }[] | undefined;
443
436
  readonly birthday?: string | undefined;
437
+ readonly fields?: readonly {
438
+ readonly category?: string | undefined;
439
+ readonly label: string;
440
+ readonly value: string;
441
+ }[] | undefined;
444
442
  } & {
445
443
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
446
444
  }> | undefined;
447
445
  readonly identityDid?: string | undefined;
448
446
  readonly identityKey?: string | undefined;
449
447
  readonly email?: string | undefined;
448
+ readonly name?: string | undefined;
450
449
  };
451
450
  readonly blocks: readonly ({
451
+ readonly _tag: "anchor";
452
452
  readonly pending?: boolean | undefined;
453
- readonly text: string;
454
- readonly mimeType?: string | undefined;
455
- readonly disposition?: string | undefined;
456
- readonly _tag: "text";
457
- } | {
458
- readonly pending?: boolean | undefined;
459
- readonly _tag: "reasoning";
460
- readonly reasoningText?: string | undefined;
461
- readonly redactedText?: string | undefined;
462
- readonly signature?: string | undefined;
463
- } | {
464
- readonly name: string;
465
- readonly pending?: boolean | undefined;
466
- readonly _tag: "toolCall";
467
- readonly toolCallId: string;
468
- readonly input: string;
469
- readonly providerExecuted: boolean;
453
+ readonly objectId: string;
454
+ readonly version: unknown;
470
455
  } | {
471
- readonly name: string;
456
+ readonly _tag: "file";
472
457
  readonly pending?: boolean | undefined;
473
- readonly _tag: "toolResult";
474
- readonly toolCallId: string;
475
- readonly providerExecuted: boolean;
476
- readonly result?: string | undefined;
477
- readonly error?: string | undefined;
458
+ readonly url: string;
459
+ readonly name?: string | undefined;
460
+ readonly mediaType?: string | undefined;
478
461
  } | {
462
+ readonly _tag: "image";
479
463
  readonly pending?: boolean | undefined;
480
- readonly mimeType?: string | undefined;
481
- readonly _tag: "stats";
482
- readonly message?: string | undefined;
483
- readonly model?: string | undefined;
484
- readonly usage?: {
485
- readonly inputTokens?: number | undefined;
486
- readonly outputTokens?: number | undefined;
487
- readonly totalTokens?: number | undefined;
488
- } | undefined;
489
- readonly toolCalls?: number | undefined;
490
- readonly errors?: number | undefined;
491
- readonly duration?: number | undefined;
492
- } | {
464
+ readonly id?: string | undefined;
493
465
  readonly source?: {
494
466
  readonly type: "base64";
495
467
  readonly mediaType: string;
@@ -498,80 +470,111 @@ export declare const extractionAnthropicFunction: Operation.Definition<{
498
470
  readonly type: "http";
499
471
  readonly url: string;
500
472
  } | undefined;
501
- readonly id?: string | undefined;
473
+ } | {
474
+ readonly _tag: "json";
502
475
  readonly pending?: boolean | undefined;
503
- readonly _tag: "image";
476
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
477
+ readonly data: string;
504
478
  } | {
505
- readonly name?: string | undefined;
479
+ readonly _tag: "proposal";
506
480
  readonly pending?: boolean | undefined;
507
- readonly _tag: "file";
508
- readonly mediaType?: string | undefined;
509
- readonly url: string;
481
+ readonly text: string;
510
482
  } | {
483
+ readonly _tag: "reasoning";
511
484
  readonly pending?: boolean | undefined;
485
+ readonly reasoningText?: string | undefined;
486
+ readonly redactedText?: string | undefined;
487
+ readonly signature?: string | undefined;
488
+ } | {
512
489
  readonly _tag: "reference";
490
+ readonly pending?: boolean | undefined;
513
491
  readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
514
492
  } | {
493
+ readonly _tag: "select";
515
494
  readonly pending?: boolean | undefined;
516
- readonly text: string;
517
- readonly _tag: "transcript";
518
- readonly started: string;
495
+ readonly options: string[];
519
496
  } | {
520
- readonly pending?: boolean | undefined;
521
497
  readonly _tag: "status";
498
+ readonly pending?: boolean | undefined;
522
499
  readonly statusText: string;
523
500
  } | {
524
- readonly pending?: boolean | undefined;
525
- readonly text: string;
526
501
  readonly _tag: "suggestion";
527
- } | {
528
502
  readonly pending?: boolean | undefined;
529
- readonly _tag: "select";
530
- readonly options: string[];
503
+ readonly text: string;
531
504
  } | {
532
- readonly version: unknown;
505
+ readonly _tag: "stats";
533
506
  readonly pending?: boolean | undefined;
534
- readonly _tag: "anchor";
535
- readonly objectId: string;
507
+ readonly mimeType?: string | undefined;
508
+ readonly message?: string | undefined;
509
+ readonly model?: string | undefined;
510
+ readonly usage?: {
511
+ readonly inputTokens?: number | undefined;
512
+ readonly outputTokens?: number | undefined;
513
+ readonly totalTokens?: number | undefined;
514
+ } | undefined;
515
+ readonly toolCalls?: number | undefined;
516
+ readonly errors?: number | undefined;
517
+ readonly duration?: number | undefined;
536
518
  } | {
519
+ readonly _tag: "text";
537
520
  readonly pending?: boolean | undefined;
521
+ readonly mimeType?: string | undefined;
538
522
  readonly text: string;
539
- readonly _tag: "proposal";
523
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
540
524
  } | {
541
- readonly pending?: boolean | undefined;
542
525
  readonly _tag: "summary";
526
+ readonly pending?: boolean | undefined;
543
527
  readonly content: string;
544
528
  } | {
545
- readonly pending?: boolean | undefined;
546
529
  readonly _tag: "toolkit";
530
+ readonly pending?: boolean | undefined;
547
531
  } | {
532
+ readonly _tag: "toolCall";
548
533
  readonly pending?: boolean | undefined;
549
- readonly disposition?: string | undefined;
550
- readonly _tag: "json";
551
- readonly data: string;
534
+ readonly toolCallId: string;
535
+ readonly name: string;
536
+ readonly input: string;
537
+ readonly providerExecuted: boolean;
538
+ } | {
539
+ readonly _tag: "toolResult";
540
+ readonly pending?: boolean | undefined;
541
+ readonly toolCallId: string;
542
+ readonly name: string;
543
+ readonly result?: string | undefined;
544
+ readonly error?: string | undefined;
545
+ readonly providerExecuted: boolean;
546
+ } | {
547
+ readonly _tag: "transcript";
548
+ readonly pending?: boolean | undefined;
549
+ readonly started: string;
550
+ readonly text: string;
552
551
  })[];
553
552
  readonly properties?: {
554
553
  readonly [x: string]: any;
555
554
  } | undefined;
556
555
  };
557
556
  readonly objects?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown)[] | undefined;
557
+ readonly options?: {
558
+ readonly timeout?: number | undefined;
559
+ readonly fallbackToRaw?: boolean | undefined;
560
+ } | undefined;
558
561
  }, {
559
562
  readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
560
563
  readonly id: string;
561
564
  readonly parentMessage?: string | undefined;
565
+ readonly threadId?: string | undefined;
562
566
  readonly created: string;
563
567
  readonly sender: {
564
- readonly name?: string | undefined;
565
- readonly role?: "user" | "assistant" | "tool" | undefined;
568
+ readonly role?: "assistant" | "tool" | "user" | undefined;
566
569
  readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
567
- readonly image?: string | undefined;
568
570
  readonly fullName?: string | undefined;
569
571
  readonly preferredName?: string | undefined;
570
572
  readonly nickname?: string | undefined;
573
+ readonly image?: string | undefined;
571
574
  readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
572
- readonly description?: string | undefined;
573
575
  readonly name?: string | undefined;
574
- readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
576
+ readonly description?: string | undefined;
577
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
575
578
  readonly image?: string | undefined;
576
579
  readonly website?: string | undefined;
577
580
  } & {
@@ -581,23 +584,19 @@ export declare const extractionAnthropicFunction: Operation.Definition<{
581
584
  readonly department?: string | undefined;
582
585
  readonly notes?: string | undefined;
583
586
  readonly emails?: readonly {
584
- readonly value: string;
585
587
  readonly label?: string | undefined;
588
+ readonly value: string;
586
589
  }[] | undefined;
587
590
  readonly identities?: readonly {
588
- readonly value: string;
589
591
  readonly label?: string | undefined;
592
+ readonly value: string;
590
593
  }[] | undefined;
591
594
  readonly phoneNumbers?: readonly {
592
- readonly value: string;
593
595
  readonly label?: string | undefined;
594
- }[] | undefined;
595
- readonly fields?: readonly {
596
596
  readonly value: string;
597
- readonly label: string;
598
- readonly category?: string | undefined;
599
597
  }[] | undefined;
600
598
  readonly addresses?: readonly {
599
+ readonly label?: string | undefined;
601
600
  readonly value: {
602
601
  readonly street?: string | undefined;
603
602
  readonly extended?: string | undefined;
@@ -607,51 +606,83 @@ export declare const extractionAnthropicFunction: Operation.Definition<{
607
606
  readonly postOfficeBoxNumber?: string | undefined;
608
607
  readonly country?: string | undefined;
609
608
  };
610
- readonly label?: string | undefined;
611
609
  }[] | undefined;
612
610
  readonly urls?: readonly {
613
- readonly value: string;
614
611
  readonly label?: string | undefined;
612
+ readonly value: string;
615
613
  }[] | undefined;
616
614
  readonly birthday?: string | undefined;
615
+ readonly fields?: readonly {
616
+ readonly category?: string | undefined;
617
+ readonly label: string;
618
+ readonly value: string;
619
+ }[] | undefined;
617
620
  } & {
618
621
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
619
622
  }> | undefined;
620
623
  readonly identityDid?: string | undefined;
621
624
  readonly identityKey?: string | undefined;
622
625
  readonly email?: string | undefined;
626
+ readonly name?: string | undefined;
623
627
  };
624
628
  readonly blocks: readonly ({
629
+ readonly _tag: "anchor";
625
630
  readonly pending?: boolean | undefined;
626
- readonly text: string;
627
- readonly mimeType?: string | undefined;
628
- readonly disposition?: string | undefined;
629
- readonly _tag: "text";
631
+ readonly objectId: string;
632
+ readonly version: unknown;
633
+ } | {
634
+ readonly _tag: "file";
635
+ readonly pending?: boolean | undefined;
636
+ readonly url: string;
637
+ readonly name?: string | undefined;
638
+ readonly mediaType?: string | undefined;
639
+ } | {
640
+ readonly _tag: "image";
641
+ readonly pending?: boolean | undefined;
642
+ readonly id?: string | undefined;
643
+ readonly source?: {
644
+ readonly type: "base64";
645
+ readonly mediaType: string;
646
+ readonly data: string;
647
+ } | {
648
+ readonly type: "http";
649
+ readonly url: string;
650
+ } | undefined;
651
+ } | {
652
+ readonly _tag: "json";
653
+ readonly pending?: boolean | undefined;
654
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
655
+ readonly data: string;
630
656
  } | {
657
+ readonly _tag: "proposal";
631
658
  readonly pending?: boolean | undefined;
659
+ readonly text: string;
660
+ } | {
632
661
  readonly _tag: "reasoning";
662
+ readonly pending?: boolean | undefined;
633
663
  readonly reasoningText?: string | undefined;
634
664
  readonly redactedText?: string | undefined;
635
665
  readonly signature?: string | undefined;
636
666
  } | {
637
- readonly name: string;
667
+ readonly _tag: "reference";
638
668
  readonly pending?: boolean | undefined;
639
- readonly _tag: "toolCall";
640
- readonly toolCallId: string;
641
- readonly input: string;
642
- readonly providerExecuted: boolean;
669
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
643
670
  } | {
644
- readonly name: string;
671
+ readonly _tag: "select";
645
672
  readonly pending?: boolean | undefined;
646
- readonly _tag: "toolResult";
647
- readonly toolCallId: string;
648
- readonly providerExecuted: boolean;
649
- readonly result?: string | undefined;
650
- readonly error?: string | undefined;
673
+ readonly options: string[];
651
674
  } | {
675
+ readonly _tag: "status";
652
676
  readonly pending?: boolean | undefined;
653
- readonly mimeType?: string | undefined;
677
+ readonly statusText: string;
678
+ } | {
679
+ readonly _tag: "suggestion";
680
+ readonly pending?: boolean | undefined;
681
+ readonly text: string;
682
+ } | {
654
683
  readonly _tag: "stats";
684
+ readonly pending?: boolean | undefined;
685
+ readonly mimeType?: string | undefined;
655
686
  readonly message?: string | undefined;
656
687
  readonly model?: string | undefined;
657
688
  readonly usage?: {
@@ -663,65 +694,38 @@ export declare const extractionAnthropicFunction: Operation.Definition<{
663
694
  readonly errors?: number | undefined;
664
695
  readonly duration?: number | undefined;
665
696
  } | {
666
- readonly source?: {
667
- readonly type: "base64";
668
- readonly mediaType: string;
669
- readonly data: string;
670
- } | {
671
- readonly type: "http";
672
- readonly url: string;
673
- } | undefined;
674
- readonly id?: string | undefined;
675
- readonly pending?: boolean | undefined;
676
- readonly _tag: "image";
677
- } | {
678
- readonly name?: string | undefined;
679
- readonly pending?: boolean | undefined;
680
- readonly _tag: "file";
681
- readonly mediaType?: string | undefined;
682
- readonly url: string;
683
- } | {
684
- readonly pending?: boolean | undefined;
685
- readonly _tag: "reference";
686
- readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
687
- } | {
697
+ readonly _tag: "text";
688
698
  readonly pending?: boolean | undefined;
699
+ readonly mimeType?: string | undefined;
689
700
  readonly text: string;
690
- readonly _tag: "transcript";
691
- readonly started: string;
701
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
692
702
  } | {
703
+ readonly _tag: "summary";
693
704
  readonly pending?: boolean | undefined;
694
- readonly _tag: "status";
695
- readonly statusText: string;
705
+ readonly content: string;
696
706
  } | {
707
+ readonly _tag: "toolkit";
697
708
  readonly pending?: boolean | undefined;
698
- readonly text: string;
699
- readonly _tag: "suggestion";
700
709
  } | {
710
+ readonly _tag: "toolCall";
701
711
  readonly pending?: boolean | undefined;
702
- readonly _tag: "select";
703
- readonly options: string[];
712
+ readonly toolCallId: string;
713
+ readonly name: string;
714
+ readonly input: string;
715
+ readonly providerExecuted: boolean;
704
716
  } | {
705
- readonly version: unknown;
717
+ readonly _tag: "toolResult";
706
718
  readonly pending?: boolean | undefined;
707
- readonly _tag: "anchor";
708
- readonly objectId: string;
719
+ readonly toolCallId: string;
720
+ readonly name: string;
721
+ readonly result?: string | undefined;
722
+ readonly error?: string | undefined;
723
+ readonly providerExecuted: boolean;
709
724
  } | {
725
+ readonly _tag: "transcript";
710
726
  readonly pending?: boolean | undefined;
727
+ readonly started: string;
711
728
  readonly text: string;
712
- readonly _tag: "proposal";
713
- } | {
714
- readonly pending?: boolean | undefined;
715
- readonly _tag: "summary";
716
- readonly content: string;
717
- } | {
718
- readonly pending?: boolean | undefined;
719
- readonly _tag: "toolkit";
720
- } | {
721
- readonly pending?: boolean | undefined;
722
- readonly disposition?: string | undefined;
723
- readonly _tag: "json";
724
- readonly data: string;
725
729
  })[];
726
730
  readonly properties?: {
727
731
  readonly [x: string]: any;
@@ -734,26 +738,22 @@ export declare const extractionAnthropicFunction: Operation.Definition<{
734
738
  * Implementation is currently disabled pending restoration of extraction logic.
735
739
  */
736
740
  export declare const extractionNerFunction: Operation.Definition<{
737
- readonly options?: {
738
- readonly timeout?: number | undefined;
739
- readonly fallbackToRaw?: boolean | undefined;
740
- } | undefined;
741
741
  readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
742
742
  readonly id: string;
743
743
  readonly parentMessage?: string | undefined;
744
+ readonly threadId?: string | undefined;
744
745
  readonly created: string;
745
746
  readonly sender: {
746
- readonly name?: string | undefined;
747
- readonly role?: "user" | "assistant" | "tool" | undefined;
747
+ readonly role?: "assistant" | "tool" | "user" | undefined;
748
748
  readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
749
- readonly image?: string | undefined;
750
749
  readonly fullName?: string | undefined;
751
750
  readonly preferredName?: string | undefined;
752
751
  readonly nickname?: string | undefined;
752
+ readonly image?: string | undefined;
753
753
  readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
754
- readonly description?: string | undefined;
755
754
  readonly name?: string | undefined;
756
- readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
755
+ readonly description?: string | undefined;
756
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
757
757
  readonly image?: string | undefined;
758
758
  readonly website?: string | undefined;
759
759
  } & {
@@ -763,23 +763,19 @@ export declare const extractionNerFunction: Operation.Definition<{
763
763
  readonly department?: string | undefined;
764
764
  readonly notes?: string | undefined;
765
765
  readonly emails?: readonly {
766
- readonly value: string;
767
766
  readonly label?: string | undefined;
767
+ readonly value: string;
768
768
  }[] | undefined;
769
769
  readonly identities?: readonly {
770
- readonly value: string;
771
770
  readonly label?: string | undefined;
771
+ readonly value: string;
772
772
  }[] | undefined;
773
773
  readonly phoneNumbers?: readonly {
774
- readonly value: string;
775
774
  readonly label?: string | undefined;
776
- }[] | undefined;
777
- readonly fields?: readonly {
778
775
  readonly value: string;
779
- readonly label: string;
780
- readonly category?: string | undefined;
781
776
  }[] | undefined;
782
777
  readonly addresses?: readonly {
778
+ readonly label?: string | undefined;
783
779
  readonly value: {
784
780
  readonly street?: string | undefined;
785
781
  readonly extended?: string | undefined;
@@ -789,62 +785,40 @@ export declare const extractionNerFunction: Operation.Definition<{
789
785
  readonly postOfficeBoxNumber?: string | undefined;
790
786
  readonly country?: string | undefined;
791
787
  };
792
- readonly label?: string | undefined;
793
788
  }[] | undefined;
794
789
  readonly urls?: readonly {
795
- readonly value: string;
796
790
  readonly label?: string | undefined;
791
+ readonly value: string;
797
792
  }[] | undefined;
798
793
  readonly birthday?: string | undefined;
794
+ readonly fields?: readonly {
795
+ readonly category?: string | undefined;
796
+ readonly label: string;
797
+ readonly value: string;
798
+ }[] | undefined;
799
799
  } & {
800
800
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
801
801
  }> | undefined;
802
802
  readonly identityDid?: string | undefined;
803
803
  readonly identityKey?: string | undefined;
804
804
  readonly email?: string | undefined;
805
+ readonly name?: string | undefined;
805
806
  };
806
807
  readonly blocks: readonly ({
808
+ readonly _tag: "anchor";
807
809
  readonly pending?: boolean | undefined;
808
- readonly text: string;
809
- readonly mimeType?: string | undefined;
810
- readonly disposition?: string | undefined;
811
- readonly _tag: "text";
812
- } | {
813
- readonly pending?: boolean | undefined;
814
- readonly _tag: "reasoning";
815
- readonly reasoningText?: string | undefined;
816
- readonly redactedText?: string | undefined;
817
- readonly signature?: string | undefined;
818
- } | {
819
- readonly name: string;
820
- readonly pending?: boolean | undefined;
821
- readonly _tag: "toolCall";
822
- readonly toolCallId: string;
823
- readonly input: string;
824
- readonly providerExecuted: boolean;
810
+ readonly objectId: string;
811
+ readonly version: unknown;
825
812
  } | {
826
- readonly name: string;
813
+ readonly _tag: "file";
827
814
  readonly pending?: boolean | undefined;
828
- readonly _tag: "toolResult";
829
- readonly toolCallId: string;
830
- readonly providerExecuted: boolean;
831
- readonly result?: string | undefined;
832
- readonly error?: string | undefined;
815
+ readonly url: string;
816
+ readonly name?: string | undefined;
817
+ readonly mediaType?: string | undefined;
833
818
  } | {
819
+ readonly _tag: "image";
834
820
  readonly pending?: boolean | undefined;
835
- readonly mimeType?: string | undefined;
836
- readonly _tag: "stats";
837
- readonly message?: string | undefined;
838
- readonly model?: string | undefined;
839
- readonly usage?: {
840
- readonly inputTokens?: number | undefined;
841
- readonly outputTokens?: number | undefined;
842
- readonly totalTokens?: number | undefined;
843
- } | undefined;
844
- readonly toolCalls?: number | undefined;
845
- readonly errors?: number | undefined;
846
- readonly duration?: number | undefined;
847
- } | {
821
+ readonly id?: string | undefined;
848
822
  readonly source?: {
849
823
  readonly type: "base64";
850
824
  readonly mediaType: string;
@@ -853,80 +827,111 @@ export declare const extractionNerFunction: Operation.Definition<{
853
827
  readonly type: "http";
854
828
  readonly url: string;
855
829
  } | undefined;
856
- readonly id?: string | undefined;
830
+ } | {
831
+ readonly _tag: "json";
857
832
  readonly pending?: boolean | undefined;
858
- readonly _tag: "image";
833
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
834
+ readonly data: string;
859
835
  } | {
860
- readonly name?: string | undefined;
836
+ readonly _tag: "proposal";
861
837
  readonly pending?: boolean | undefined;
862
- readonly _tag: "file";
863
- readonly mediaType?: string | undefined;
864
- readonly url: string;
838
+ readonly text: string;
865
839
  } | {
840
+ readonly _tag: "reasoning";
866
841
  readonly pending?: boolean | undefined;
842
+ readonly reasoningText?: string | undefined;
843
+ readonly redactedText?: string | undefined;
844
+ readonly signature?: string | undefined;
845
+ } | {
867
846
  readonly _tag: "reference";
847
+ readonly pending?: boolean | undefined;
868
848
  readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
869
849
  } | {
850
+ readonly _tag: "select";
870
851
  readonly pending?: boolean | undefined;
871
- readonly text: string;
872
- readonly _tag: "transcript";
873
- readonly started: string;
852
+ readonly options: string[];
874
853
  } | {
875
- readonly pending?: boolean | undefined;
876
854
  readonly _tag: "status";
855
+ readonly pending?: boolean | undefined;
877
856
  readonly statusText: string;
878
857
  } | {
879
- readonly pending?: boolean | undefined;
880
- readonly text: string;
881
858
  readonly _tag: "suggestion";
882
- } | {
883
859
  readonly pending?: boolean | undefined;
884
- readonly _tag: "select";
885
- readonly options: string[];
860
+ readonly text: string;
886
861
  } | {
887
- readonly version: unknown;
862
+ readonly _tag: "stats";
888
863
  readonly pending?: boolean | undefined;
889
- readonly _tag: "anchor";
890
- readonly objectId: string;
864
+ readonly mimeType?: string | undefined;
865
+ readonly message?: string | undefined;
866
+ readonly model?: string | undefined;
867
+ readonly usage?: {
868
+ readonly inputTokens?: number | undefined;
869
+ readonly outputTokens?: number | undefined;
870
+ readonly totalTokens?: number | undefined;
871
+ } | undefined;
872
+ readonly toolCalls?: number | undefined;
873
+ readonly errors?: number | undefined;
874
+ readonly duration?: number | undefined;
891
875
  } | {
876
+ readonly _tag: "text";
892
877
  readonly pending?: boolean | undefined;
878
+ readonly mimeType?: string | undefined;
893
879
  readonly text: string;
894
- readonly _tag: "proposal";
880
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
895
881
  } | {
896
- readonly pending?: boolean | undefined;
897
882
  readonly _tag: "summary";
883
+ readonly pending?: boolean | undefined;
898
884
  readonly content: string;
899
885
  } | {
900
- readonly pending?: boolean | undefined;
901
886
  readonly _tag: "toolkit";
887
+ readonly pending?: boolean | undefined;
888
+ } | {
889
+ readonly _tag: "toolCall";
890
+ readonly pending?: boolean | undefined;
891
+ readonly toolCallId: string;
892
+ readonly name: string;
893
+ readonly input: string;
894
+ readonly providerExecuted: boolean;
902
895
  } | {
896
+ readonly _tag: "toolResult";
903
897
  readonly pending?: boolean | undefined;
904
- readonly disposition?: string | undefined;
905
- readonly _tag: "json";
906
- readonly data: string;
898
+ readonly toolCallId: string;
899
+ readonly name: string;
900
+ readonly result?: string | undefined;
901
+ readonly error?: string | undefined;
902
+ readonly providerExecuted: boolean;
903
+ } | {
904
+ readonly _tag: "transcript";
905
+ readonly pending?: boolean | undefined;
906
+ readonly started: string;
907
+ readonly text: string;
907
908
  })[];
908
909
  readonly properties?: {
909
910
  readonly [x: string]: any;
910
911
  } | undefined;
911
912
  };
912
913
  readonly objects?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown)[] | undefined;
914
+ readonly options?: {
915
+ readonly timeout?: number | undefined;
916
+ readonly fallbackToRaw?: boolean | undefined;
917
+ } | undefined;
913
918
  }, {
914
919
  readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
915
920
  readonly id: string;
916
921
  readonly parentMessage?: string | undefined;
922
+ readonly threadId?: string | undefined;
917
923
  readonly created: string;
918
924
  readonly sender: {
919
- readonly name?: string | undefined;
920
- readonly role?: "user" | "assistant" | "tool" | undefined;
925
+ readonly role?: "assistant" | "tool" | "user" | undefined;
921
926
  readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
922
- readonly image?: string | undefined;
923
927
  readonly fullName?: string | undefined;
924
928
  readonly preferredName?: string | undefined;
925
929
  readonly nickname?: string | undefined;
930
+ readonly image?: string | undefined;
926
931
  readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
927
- readonly description?: string | undefined;
928
932
  readonly name?: string | undefined;
929
- readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
933
+ readonly description?: string | undefined;
934
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
930
935
  readonly image?: string | undefined;
931
936
  readonly website?: string | undefined;
932
937
  } & {
@@ -936,23 +941,19 @@ export declare const extractionNerFunction: Operation.Definition<{
936
941
  readonly department?: string | undefined;
937
942
  readonly notes?: string | undefined;
938
943
  readonly emails?: readonly {
939
- readonly value: string;
940
944
  readonly label?: string | undefined;
945
+ readonly value: string;
941
946
  }[] | undefined;
942
947
  readonly identities?: readonly {
943
- readonly value: string;
944
948
  readonly label?: string | undefined;
949
+ readonly value: string;
945
950
  }[] | undefined;
946
951
  readonly phoneNumbers?: readonly {
947
- readonly value: string;
948
952
  readonly label?: string | undefined;
949
- }[] | undefined;
950
- readonly fields?: readonly {
951
953
  readonly value: string;
952
- readonly label: string;
953
- readonly category?: string | undefined;
954
954
  }[] | undefined;
955
955
  readonly addresses?: readonly {
956
+ readonly label?: string | undefined;
956
957
  readonly value: {
957
958
  readonly street?: string | undefined;
958
959
  readonly extended?: string | undefined;
@@ -962,62 +963,40 @@ export declare const extractionNerFunction: Operation.Definition<{
962
963
  readonly postOfficeBoxNumber?: string | undefined;
963
964
  readonly country?: string | undefined;
964
965
  };
965
- readonly label?: string | undefined;
966
966
  }[] | undefined;
967
967
  readonly urls?: readonly {
968
- readonly value: string;
969
968
  readonly label?: string | undefined;
969
+ readonly value: string;
970
970
  }[] | undefined;
971
971
  readonly birthday?: string | undefined;
972
+ readonly fields?: readonly {
973
+ readonly category?: string | undefined;
974
+ readonly label: string;
975
+ readonly value: string;
976
+ }[] | undefined;
972
977
  } & {
973
978
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
974
979
  }> | undefined;
975
980
  readonly identityDid?: string | undefined;
976
981
  readonly identityKey?: string | undefined;
977
982
  readonly email?: string | undefined;
983
+ readonly name?: string | undefined;
978
984
  };
979
985
  readonly blocks: readonly ({
986
+ readonly _tag: "anchor";
980
987
  readonly pending?: boolean | undefined;
981
- readonly text: string;
982
- readonly mimeType?: string | undefined;
983
- readonly disposition?: string | undefined;
984
- readonly _tag: "text";
985
- } | {
986
- readonly pending?: boolean | undefined;
987
- readonly _tag: "reasoning";
988
- readonly reasoningText?: string | undefined;
989
- readonly redactedText?: string | undefined;
990
- readonly signature?: string | undefined;
991
- } | {
992
- readonly name: string;
993
- readonly pending?: boolean | undefined;
994
- readonly _tag: "toolCall";
995
- readonly toolCallId: string;
996
- readonly input: string;
997
- readonly providerExecuted: boolean;
988
+ readonly objectId: string;
989
+ readonly version: unknown;
998
990
  } | {
999
- readonly name: string;
991
+ readonly _tag: "file";
1000
992
  readonly pending?: boolean | undefined;
1001
- readonly _tag: "toolResult";
1002
- readonly toolCallId: string;
1003
- readonly providerExecuted: boolean;
1004
- readonly result?: string | undefined;
1005
- readonly error?: string | undefined;
993
+ readonly url: string;
994
+ readonly name?: string | undefined;
995
+ readonly mediaType?: string | undefined;
1006
996
  } | {
997
+ readonly _tag: "image";
1007
998
  readonly pending?: boolean | undefined;
1008
- readonly mimeType?: string | undefined;
1009
- readonly _tag: "stats";
1010
- readonly message?: string | undefined;
1011
- readonly model?: string | undefined;
1012
- readonly usage?: {
1013
- readonly inputTokens?: number | undefined;
1014
- readonly outputTokens?: number | undefined;
1015
- readonly totalTokens?: number | undefined;
1016
- } | undefined;
1017
- readonly toolCalls?: number | undefined;
1018
- readonly errors?: number | undefined;
1019
- readonly duration?: number | undefined;
1020
- } | {
999
+ readonly id?: string | undefined;
1021
1000
  readonly source?: {
1022
1001
  readonly type: "base64";
1023
1002
  readonly mediaType: string;
@@ -1026,57 +1005,84 @@ export declare const extractionNerFunction: Operation.Definition<{
1026
1005
  readonly type: "http";
1027
1006
  readonly url: string;
1028
1007
  } | undefined;
1029
- readonly id?: string | undefined;
1008
+ } | {
1009
+ readonly _tag: "json";
1030
1010
  readonly pending?: boolean | undefined;
1031
- readonly _tag: "image";
1011
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1012
+ readonly data: string;
1032
1013
  } | {
1033
- readonly name?: string | undefined;
1014
+ readonly _tag: "proposal";
1034
1015
  readonly pending?: boolean | undefined;
1035
- readonly _tag: "file";
1036
- readonly mediaType?: string | undefined;
1037
- readonly url: string;
1016
+ readonly text: string;
1038
1017
  } | {
1018
+ readonly _tag: "reasoning";
1039
1019
  readonly pending?: boolean | undefined;
1020
+ readonly reasoningText?: string | undefined;
1021
+ readonly redactedText?: string | undefined;
1022
+ readonly signature?: string | undefined;
1023
+ } | {
1040
1024
  readonly _tag: "reference";
1025
+ readonly pending?: boolean | undefined;
1041
1026
  readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
1042
1027
  } | {
1028
+ readonly _tag: "select";
1043
1029
  readonly pending?: boolean | undefined;
1044
- readonly text: string;
1045
- readonly _tag: "transcript";
1046
- readonly started: string;
1030
+ readonly options: string[];
1047
1031
  } | {
1048
- readonly pending?: boolean | undefined;
1049
1032
  readonly _tag: "status";
1033
+ readonly pending?: boolean | undefined;
1050
1034
  readonly statusText: string;
1051
1035
  } | {
1052
- readonly pending?: boolean | undefined;
1053
- readonly text: string;
1054
1036
  readonly _tag: "suggestion";
1055
- } | {
1056
1037
  readonly pending?: boolean | undefined;
1057
- readonly _tag: "select";
1058
- readonly options: string[];
1038
+ readonly text: string;
1059
1039
  } | {
1060
- readonly version: unknown;
1040
+ readonly _tag: "stats";
1061
1041
  readonly pending?: boolean | undefined;
1062
- readonly _tag: "anchor";
1063
- readonly objectId: string;
1042
+ readonly mimeType?: string | undefined;
1043
+ readonly message?: string | undefined;
1044
+ readonly model?: string | undefined;
1045
+ readonly usage?: {
1046
+ readonly inputTokens?: number | undefined;
1047
+ readonly outputTokens?: number | undefined;
1048
+ readonly totalTokens?: number | undefined;
1049
+ } | undefined;
1050
+ readonly toolCalls?: number | undefined;
1051
+ readonly errors?: number | undefined;
1052
+ readonly duration?: number | undefined;
1064
1053
  } | {
1054
+ readonly _tag: "text";
1065
1055
  readonly pending?: boolean | undefined;
1056
+ readonly mimeType?: string | undefined;
1066
1057
  readonly text: string;
1067
- readonly _tag: "proposal";
1058
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1068
1059
  } | {
1069
- readonly pending?: boolean | undefined;
1070
1060
  readonly _tag: "summary";
1061
+ readonly pending?: boolean | undefined;
1071
1062
  readonly content: string;
1072
1063
  } | {
1073
- readonly pending?: boolean | undefined;
1074
1064
  readonly _tag: "toolkit";
1065
+ readonly pending?: boolean | undefined;
1075
1066
  } | {
1067
+ readonly _tag: "toolCall";
1076
1068
  readonly pending?: boolean | undefined;
1077
- readonly disposition?: string | undefined;
1078
- readonly _tag: "json";
1079
- readonly data: string;
1069
+ readonly toolCallId: string;
1070
+ readonly name: string;
1071
+ readonly input: string;
1072
+ readonly providerExecuted: boolean;
1073
+ } | {
1074
+ readonly _tag: "toolResult";
1075
+ readonly pending?: boolean | undefined;
1076
+ readonly toolCallId: string;
1077
+ readonly name: string;
1078
+ readonly result?: string | undefined;
1079
+ readonly error?: string | undefined;
1080
+ readonly providerExecuted: boolean;
1081
+ } | {
1082
+ readonly _tag: "transcript";
1083
+ readonly pending?: boolean | undefined;
1084
+ readonly started: string;
1085
+ readonly text: string;
1080
1086
  })[];
1081
1087
  readonly properties?: {
1082
1088
  readonly [x: string]: any;