@dxos/assistant 0.9.0 → 0.9.1-main.c7dcc2e112
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.
- package/dist/lib/neutral/extraction/index.mjs +108 -119
- package/dist/lib/neutral/extraction/index.mjs.map +4 -4
- package/dist/lib/neutral/index.mjs +17 -13
- package/dist/lib/neutral/index.mjs.map +4 -4
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts +2 -0
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-llm-function/proper-noun-extraction.d.ts +227 -0
- package/dist/types/src/extraction/extraction-llm-function/proper-noun-extraction.d.ts.map +1 -0
- package/dist/types/src/extraction/index.d.ts +1 -1
- package/dist/types/src/extraction/index.d.ts.map +1 -1
- package/dist/types/src/extraction/quotes.d.ts +8 -1
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/request/AiRequest.d.ts +6 -0
- package/dist/types/src/request/AiRequest.d.ts.map +1 -1
- package/dist/types/src/session/AiSession.d.ts +6 -0
- package/dist/types/src/session/AiSession.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +21 -21
- package/src/extraction/extraction-llm-function/index.ts +5 -0
- package/src/extraction/extraction-llm-function/proper-noun-extraction.ts +78 -0
- package/src/extraction/index.ts +1 -1
- package/src/extraction/quotes.test.ts +67 -2
- package/src/extraction/quotes.ts +47 -13
- package/src/request/AiRequest.ts +10 -0
- package/src/session/AiSession.ts +8 -0
- package/dist/types/src/extraction/extraction.d.ts +0 -1677
- package/dist/types/src/extraction/extraction.d.ts.map +0 -1
- package/src/extraction/extraction-llm-function/transcription-instructions.tpl +0 -28
- package/src/extraction/extraction.ts +0 -105
|
@@ -1,1677 +0,0 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
|
-
import { Operation } from '@dxos/compute';
|
|
3
|
-
import { Obj } from '@dxos/echo';
|
|
4
|
-
export declare const ExtractionInput: Schema.Struct<{
|
|
5
|
-
message: Schema.Schema<{
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly parentMessage?: string | undefined;
|
|
8
|
-
readonly threadId?: string | undefined;
|
|
9
|
-
readonly created: string;
|
|
10
|
-
readonly sender: {
|
|
11
|
-
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
12
|
-
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
13
|
-
readonly fullName?: string | undefined;
|
|
14
|
-
readonly preferredName?: string | undefined;
|
|
15
|
-
readonly nickname?: string | undefined;
|
|
16
|
-
readonly image?: string | undefined;
|
|
17
|
-
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
18
|
-
readonly name?: string | undefined;
|
|
19
|
-
readonly description?: string | undefined;
|
|
20
|
-
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
21
|
-
readonly image?: string | undefined;
|
|
22
|
-
readonly website?: string | undefined;
|
|
23
|
-
} & {
|
|
24
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
25
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
26
|
-
readonly jobTitle?: string | undefined;
|
|
27
|
-
readonly department?: string | undefined;
|
|
28
|
-
readonly notes?: string | undefined;
|
|
29
|
-
readonly emails?: readonly {
|
|
30
|
-
readonly label?: string | undefined;
|
|
31
|
-
readonly value: string;
|
|
32
|
-
}[] | undefined;
|
|
33
|
-
readonly identities?: readonly {
|
|
34
|
-
readonly label?: string | undefined;
|
|
35
|
-
readonly value: string;
|
|
36
|
-
}[] | undefined;
|
|
37
|
-
readonly phoneNumbers?: readonly {
|
|
38
|
-
readonly label?: string | undefined;
|
|
39
|
-
readonly value: string;
|
|
40
|
-
}[] | undefined;
|
|
41
|
-
readonly addresses?: readonly {
|
|
42
|
-
readonly label?: string | undefined;
|
|
43
|
-
readonly value: {
|
|
44
|
-
readonly street?: string | undefined;
|
|
45
|
-
readonly extended?: string | undefined;
|
|
46
|
-
readonly locality?: string | undefined;
|
|
47
|
-
readonly region?: string | undefined;
|
|
48
|
-
readonly postalCode?: string | undefined;
|
|
49
|
-
readonly postOfficeBoxNumber?: string | undefined;
|
|
50
|
-
readonly country?: string | undefined;
|
|
51
|
-
};
|
|
52
|
-
}[] | undefined;
|
|
53
|
-
readonly urls?: readonly {
|
|
54
|
-
readonly label?: string | undefined;
|
|
55
|
-
readonly value: string;
|
|
56
|
-
}[] | undefined;
|
|
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
|
-
} & {
|
|
64
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
65
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
66
|
-
readonly identityDid?: string | undefined;
|
|
67
|
-
readonly identityKey?: string | undefined;
|
|
68
|
-
readonly email?: string | undefined;
|
|
69
|
-
readonly name?: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
readonly blocks: readonly ({
|
|
72
|
-
readonly _tag: "anchor";
|
|
73
|
-
readonly pending?: boolean | undefined;
|
|
74
|
-
readonly objectId: string;
|
|
75
|
-
readonly version: unknown;
|
|
76
|
-
} | {
|
|
77
|
-
readonly _tag: "file";
|
|
78
|
-
readonly pending?: boolean | undefined;
|
|
79
|
-
readonly url: string;
|
|
80
|
-
readonly name?: string | undefined;
|
|
81
|
-
readonly mediaType?: string | undefined;
|
|
82
|
-
} | {
|
|
83
|
-
readonly _tag: "image";
|
|
84
|
-
readonly pending?: boolean | undefined;
|
|
85
|
-
readonly id?: string | undefined;
|
|
86
|
-
readonly source?: {
|
|
87
|
-
readonly type: "base64";
|
|
88
|
-
readonly mediaType: string;
|
|
89
|
-
readonly data: string;
|
|
90
|
-
} | {
|
|
91
|
-
readonly type: "http";
|
|
92
|
-
readonly url: string;
|
|
93
|
-
} | undefined;
|
|
94
|
-
} | {
|
|
95
|
-
readonly _tag: "json";
|
|
96
|
-
readonly pending?: boolean | undefined;
|
|
97
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
98
|
-
readonly data: string;
|
|
99
|
-
} | {
|
|
100
|
-
readonly _tag: "proposal";
|
|
101
|
-
readonly pending?: boolean | undefined;
|
|
102
|
-
readonly text: string;
|
|
103
|
-
} | {
|
|
104
|
-
readonly _tag: "reasoning";
|
|
105
|
-
readonly pending?: boolean | undefined;
|
|
106
|
-
readonly reasoningText?: string | undefined;
|
|
107
|
-
readonly redactedText?: string | undefined;
|
|
108
|
-
readonly signature?: string | undefined;
|
|
109
|
-
} | {
|
|
110
|
-
readonly _tag: "reference";
|
|
111
|
-
readonly pending?: boolean | undefined;
|
|
112
|
-
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
113
|
-
} | {
|
|
114
|
-
readonly _tag: "select";
|
|
115
|
-
readonly pending?: boolean | undefined;
|
|
116
|
-
readonly options: string[];
|
|
117
|
-
} | {
|
|
118
|
-
readonly _tag: "status";
|
|
119
|
-
readonly pending?: boolean | undefined;
|
|
120
|
-
readonly statusText: string;
|
|
121
|
-
} | {
|
|
122
|
-
readonly _tag: "suggestion";
|
|
123
|
-
readonly pending?: boolean | undefined;
|
|
124
|
-
readonly text: string;
|
|
125
|
-
} | {
|
|
126
|
-
readonly _tag: "stats";
|
|
127
|
-
readonly pending?: boolean | undefined;
|
|
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;
|
|
139
|
-
} | {
|
|
140
|
-
readonly _tag: "text";
|
|
141
|
-
readonly pending?: boolean | undefined;
|
|
142
|
-
readonly mimeType?: string | undefined;
|
|
143
|
-
readonly text: string;
|
|
144
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
145
|
-
} | {
|
|
146
|
-
readonly _tag: "summary";
|
|
147
|
-
readonly pending?: boolean | undefined;
|
|
148
|
-
readonly content: string;
|
|
149
|
-
} | {
|
|
150
|
-
readonly _tag: "toolkit";
|
|
151
|
-
readonly pending?: boolean | undefined;
|
|
152
|
-
} | {
|
|
153
|
-
readonly _tag: "toolCall";
|
|
154
|
-
readonly pending?: boolean | undefined;
|
|
155
|
-
readonly toolCallId: string;
|
|
156
|
-
readonly name: string;
|
|
157
|
-
readonly input: string;
|
|
158
|
-
readonly providerExecuted: boolean;
|
|
159
|
-
readonly operationKey?: string | undefined;
|
|
160
|
-
readonly operationName?: string | undefined;
|
|
161
|
-
readonly operationIcon?: string | undefined;
|
|
162
|
-
} | {
|
|
163
|
-
readonly _tag: "toolResult";
|
|
164
|
-
readonly pending?: boolean | undefined;
|
|
165
|
-
readonly toolCallId: string;
|
|
166
|
-
readonly name: string;
|
|
167
|
-
readonly result?: string | {
|
|
168
|
-
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
169
|
-
readonly content: readonly ({
|
|
170
|
-
readonly _tag: "file";
|
|
171
|
-
readonly pending?: boolean | undefined;
|
|
172
|
-
readonly url: string;
|
|
173
|
-
readonly name?: string | undefined;
|
|
174
|
-
readonly mediaType?: string | undefined;
|
|
175
|
-
} | {
|
|
176
|
-
readonly _tag: "image";
|
|
177
|
-
readonly pending?: boolean | undefined;
|
|
178
|
-
readonly id?: string | undefined;
|
|
179
|
-
readonly source?: {
|
|
180
|
-
readonly type: "base64";
|
|
181
|
-
readonly mediaType: string;
|
|
182
|
-
readonly data: string;
|
|
183
|
-
} | {
|
|
184
|
-
readonly type: "http";
|
|
185
|
-
readonly url: string;
|
|
186
|
-
} | undefined;
|
|
187
|
-
} | {
|
|
188
|
-
readonly _tag: "text";
|
|
189
|
-
readonly pending?: boolean | undefined;
|
|
190
|
-
readonly mimeType?: string | undefined;
|
|
191
|
-
readonly text: string;
|
|
192
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
193
|
-
})[];
|
|
194
|
-
} | undefined;
|
|
195
|
-
readonly error?: string | undefined;
|
|
196
|
-
readonly providerExecuted: boolean;
|
|
197
|
-
} | {
|
|
198
|
-
readonly _tag: "transcript";
|
|
199
|
-
readonly pending?: boolean | undefined;
|
|
200
|
-
readonly started: string;
|
|
201
|
-
readonly text: string;
|
|
202
|
-
})[];
|
|
203
|
-
readonly properties?: {
|
|
204
|
-
readonly [x: string]: any;
|
|
205
|
-
} | undefined;
|
|
206
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, {
|
|
207
|
-
readonly id: string;
|
|
208
|
-
readonly parentMessage?: string | undefined;
|
|
209
|
-
readonly threadId?: string | undefined;
|
|
210
|
-
readonly created: string;
|
|
211
|
-
readonly sender: {
|
|
212
|
-
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
213
|
-
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
214
|
-
readonly fullName?: string | undefined;
|
|
215
|
-
readonly preferredName?: string | undefined;
|
|
216
|
-
readonly nickname?: string | undefined;
|
|
217
|
-
readonly image?: string | undefined;
|
|
218
|
-
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
219
|
-
readonly name?: string | undefined;
|
|
220
|
-
readonly description?: string | undefined;
|
|
221
|
-
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
222
|
-
readonly image?: string | undefined;
|
|
223
|
-
readonly website?: string | undefined;
|
|
224
|
-
} & {
|
|
225
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
226
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
227
|
-
readonly jobTitle?: string | undefined;
|
|
228
|
-
readonly department?: string | undefined;
|
|
229
|
-
readonly notes?: string | undefined;
|
|
230
|
-
readonly emails?: readonly {
|
|
231
|
-
readonly label?: string | undefined;
|
|
232
|
-
readonly value: string;
|
|
233
|
-
}[] | undefined;
|
|
234
|
-
readonly identities?: readonly {
|
|
235
|
-
readonly label?: string | undefined;
|
|
236
|
-
readonly value: string;
|
|
237
|
-
}[] | undefined;
|
|
238
|
-
readonly phoneNumbers?: readonly {
|
|
239
|
-
readonly label?: string | undefined;
|
|
240
|
-
readonly value: string;
|
|
241
|
-
}[] | undefined;
|
|
242
|
-
readonly addresses?: readonly {
|
|
243
|
-
readonly label?: string | undefined;
|
|
244
|
-
readonly value: {
|
|
245
|
-
readonly street?: string | undefined;
|
|
246
|
-
readonly extended?: string | undefined;
|
|
247
|
-
readonly locality?: string | undefined;
|
|
248
|
-
readonly region?: string | undefined;
|
|
249
|
-
readonly postalCode?: string | undefined;
|
|
250
|
-
readonly postOfficeBoxNumber?: string | undefined;
|
|
251
|
-
readonly country?: string | undefined;
|
|
252
|
-
};
|
|
253
|
-
}[] | undefined;
|
|
254
|
-
readonly urls?: readonly {
|
|
255
|
-
readonly label?: string | undefined;
|
|
256
|
-
readonly value: string;
|
|
257
|
-
}[] | undefined;
|
|
258
|
-
readonly birthday?: string | undefined;
|
|
259
|
-
readonly fields?: readonly {
|
|
260
|
-
readonly category?: string | undefined;
|
|
261
|
-
readonly label: string;
|
|
262
|
-
readonly value: string;
|
|
263
|
-
}[] | undefined;
|
|
264
|
-
} & {
|
|
265
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
266
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
267
|
-
readonly identityDid?: string | undefined;
|
|
268
|
-
readonly identityKey?: string | undefined;
|
|
269
|
-
readonly email?: string | undefined;
|
|
270
|
-
readonly name?: string | undefined;
|
|
271
|
-
};
|
|
272
|
-
readonly blocks: readonly ({
|
|
273
|
-
readonly _tag: "anchor";
|
|
274
|
-
readonly pending?: boolean | undefined;
|
|
275
|
-
readonly objectId: string;
|
|
276
|
-
readonly version: unknown;
|
|
277
|
-
} | {
|
|
278
|
-
readonly _tag: "file";
|
|
279
|
-
readonly pending?: boolean | undefined;
|
|
280
|
-
readonly url: string;
|
|
281
|
-
readonly name?: string | undefined;
|
|
282
|
-
readonly mediaType?: string | undefined;
|
|
283
|
-
} | {
|
|
284
|
-
readonly _tag: "image";
|
|
285
|
-
readonly pending?: boolean | undefined;
|
|
286
|
-
readonly id?: string | undefined;
|
|
287
|
-
readonly source?: {
|
|
288
|
-
readonly type: "base64";
|
|
289
|
-
readonly mediaType: string;
|
|
290
|
-
readonly data: string;
|
|
291
|
-
} | {
|
|
292
|
-
readonly type: "http";
|
|
293
|
-
readonly url: string;
|
|
294
|
-
} | undefined;
|
|
295
|
-
} | {
|
|
296
|
-
readonly _tag: "json";
|
|
297
|
-
readonly pending?: boolean | undefined;
|
|
298
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
299
|
-
readonly data: string;
|
|
300
|
-
} | {
|
|
301
|
-
readonly _tag: "proposal";
|
|
302
|
-
readonly pending?: boolean | undefined;
|
|
303
|
-
readonly text: string;
|
|
304
|
-
} | {
|
|
305
|
-
readonly _tag: "reasoning";
|
|
306
|
-
readonly pending?: boolean | undefined;
|
|
307
|
-
readonly reasoningText?: string | undefined;
|
|
308
|
-
readonly redactedText?: string | undefined;
|
|
309
|
-
readonly signature?: string | undefined;
|
|
310
|
-
} | {
|
|
311
|
-
readonly _tag: "reference";
|
|
312
|
-
readonly pending?: boolean | undefined;
|
|
313
|
-
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
314
|
-
} | {
|
|
315
|
-
readonly _tag: "select";
|
|
316
|
-
readonly pending?: boolean | undefined;
|
|
317
|
-
readonly options: string[];
|
|
318
|
-
} | {
|
|
319
|
-
readonly _tag: "status";
|
|
320
|
-
readonly pending?: boolean | undefined;
|
|
321
|
-
readonly statusText: string;
|
|
322
|
-
} | {
|
|
323
|
-
readonly _tag: "suggestion";
|
|
324
|
-
readonly pending?: boolean | undefined;
|
|
325
|
-
readonly text: string;
|
|
326
|
-
} | {
|
|
327
|
-
readonly _tag: "stats";
|
|
328
|
-
readonly pending?: boolean | undefined;
|
|
329
|
-
readonly mimeType?: string | undefined;
|
|
330
|
-
readonly message?: string | undefined;
|
|
331
|
-
readonly model?: string | undefined;
|
|
332
|
-
readonly usage?: {
|
|
333
|
-
readonly inputTokens?: number | undefined;
|
|
334
|
-
readonly outputTokens?: number | undefined;
|
|
335
|
-
readonly totalTokens?: number | undefined;
|
|
336
|
-
} | undefined;
|
|
337
|
-
readonly toolCalls?: number | undefined;
|
|
338
|
-
readonly errors?: number | undefined;
|
|
339
|
-
readonly duration?: number | undefined;
|
|
340
|
-
} | {
|
|
341
|
-
readonly _tag: "text";
|
|
342
|
-
readonly pending?: boolean | undefined;
|
|
343
|
-
readonly mimeType?: string | undefined;
|
|
344
|
-
readonly text: string;
|
|
345
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
346
|
-
} | {
|
|
347
|
-
readonly _tag: "summary";
|
|
348
|
-
readonly pending?: boolean | undefined;
|
|
349
|
-
readonly content: string;
|
|
350
|
-
} | {
|
|
351
|
-
readonly _tag: "toolkit";
|
|
352
|
-
readonly pending?: boolean | undefined;
|
|
353
|
-
} | {
|
|
354
|
-
readonly _tag: "toolCall";
|
|
355
|
-
readonly pending?: boolean | undefined;
|
|
356
|
-
readonly toolCallId: string;
|
|
357
|
-
readonly name: string;
|
|
358
|
-
readonly input: string;
|
|
359
|
-
readonly providerExecuted: boolean;
|
|
360
|
-
readonly operationKey?: string | undefined;
|
|
361
|
-
readonly operationName?: string | undefined;
|
|
362
|
-
readonly operationIcon?: string | undefined;
|
|
363
|
-
} | {
|
|
364
|
-
readonly _tag: "toolResult";
|
|
365
|
-
readonly pending?: boolean | undefined;
|
|
366
|
-
readonly toolCallId: string;
|
|
367
|
-
readonly name: string;
|
|
368
|
-
readonly result?: string | {
|
|
369
|
-
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
370
|
-
readonly content: readonly ({
|
|
371
|
-
readonly _tag: "file";
|
|
372
|
-
readonly pending?: boolean | undefined;
|
|
373
|
-
readonly url: string;
|
|
374
|
-
readonly name?: string | undefined;
|
|
375
|
-
readonly mediaType?: string | undefined;
|
|
376
|
-
} | {
|
|
377
|
-
readonly _tag: "image";
|
|
378
|
-
readonly pending?: boolean | undefined;
|
|
379
|
-
readonly id?: string | undefined;
|
|
380
|
-
readonly source?: {
|
|
381
|
-
readonly type: "base64";
|
|
382
|
-
readonly mediaType: string;
|
|
383
|
-
readonly data: string;
|
|
384
|
-
} | {
|
|
385
|
-
readonly type: "http";
|
|
386
|
-
readonly url: string;
|
|
387
|
-
} | undefined;
|
|
388
|
-
} | {
|
|
389
|
-
readonly _tag: "text";
|
|
390
|
-
readonly pending?: boolean | undefined;
|
|
391
|
-
readonly mimeType?: string | undefined;
|
|
392
|
-
readonly text: string;
|
|
393
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
394
|
-
})[];
|
|
395
|
-
} | undefined;
|
|
396
|
-
readonly error?: string | undefined;
|
|
397
|
-
readonly providerExecuted: boolean;
|
|
398
|
-
} | {
|
|
399
|
-
readonly _tag: "transcript";
|
|
400
|
-
readonly pending?: boolean | undefined;
|
|
401
|
-
readonly started: string;
|
|
402
|
-
readonly text: string;
|
|
403
|
-
})[];
|
|
404
|
-
readonly properties?: {
|
|
405
|
-
readonly [x: string]: any;
|
|
406
|
-
} | undefined;
|
|
407
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, never>;
|
|
408
|
-
objects: Schema.optional<Schema.Array$<import("@dxos/echo/internal").UnknownTypeSchema<Obj.Unknown, import("@dxos/echo/internal").EntityKind.Object>>>;
|
|
409
|
-
options: Schema.optional<Schema.Struct<{
|
|
410
|
-
timeout: Schema.optional<typeof Schema.Number>;
|
|
411
|
-
fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
|
|
412
|
-
}>>;
|
|
413
|
-
}>;
|
|
414
|
-
export type ExtractionInput = Schema.Schema.Type<typeof ExtractionInput>;
|
|
415
|
-
export declare const ExtractionOutput: Schema.Struct<{
|
|
416
|
-
message: Schema.Schema<{
|
|
417
|
-
readonly id: string;
|
|
418
|
-
readonly parentMessage?: string | undefined;
|
|
419
|
-
readonly threadId?: string | undefined;
|
|
420
|
-
readonly created: string;
|
|
421
|
-
readonly sender: {
|
|
422
|
-
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
423
|
-
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
424
|
-
readonly fullName?: string | undefined;
|
|
425
|
-
readonly preferredName?: string | undefined;
|
|
426
|
-
readonly nickname?: string | undefined;
|
|
427
|
-
readonly image?: string | undefined;
|
|
428
|
-
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
429
|
-
readonly name?: string | undefined;
|
|
430
|
-
readonly description?: string | undefined;
|
|
431
|
-
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
432
|
-
readonly image?: string | undefined;
|
|
433
|
-
readonly website?: string | undefined;
|
|
434
|
-
} & {
|
|
435
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
436
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
437
|
-
readonly jobTitle?: string | undefined;
|
|
438
|
-
readonly department?: string | undefined;
|
|
439
|
-
readonly notes?: string | undefined;
|
|
440
|
-
readonly emails?: readonly {
|
|
441
|
-
readonly label?: string | undefined;
|
|
442
|
-
readonly value: string;
|
|
443
|
-
}[] | undefined;
|
|
444
|
-
readonly identities?: readonly {
|
|
445
|
-
readonly label?: string | undefined;
|
|
446
|
-
readonly value: string;
|
|
447
|
-
}[] | undefined;
|
|
448
|
-
readonly phoneNumbers?: readonly {
|
|
449
|
-
readonly label?: string | undefined;
|
|
450
|
-
readonly value: string;
|
|
451
|
-
}[] | undefined;
|
|
452
|
-
readonly addresses?: readonly {
|
|
453
|
-
readonly label?: string | undefined;
|
|
454
|
-
readonly value: {
|
|
455
|
-
readonly street?: string | undefined;
|
|
456
|
-
readonly extended?: string | undefined;
|
|
457
|
-
readonly locality?: string | undefined;
|
|
458
|
-
readonly region?: string | undefined;
|
|
459
|
-
readonly postalCode?: string | undefined;
|
|
460
|
-
readonly postOfficeBoxNumber?: string | undefined;
|
|
461
|
-
readonly country?: string | undefined;
|
|
462
|
-
};
|
|
463
|
-
}[] | undefined;
|
|
464
|
-
readonly urls?: readonly {
|
|
465
|
-
readonly label?: string | undefined;
|
|
466
|
-
readonly value: string;
|
|
467
|
-
}[] | undefined;
|
|
468
|
-
readonly birthday?: string | undefined;
|
|
469
|
-
readonly fields?: readonly {
|
|
470
|
-
readonly category?: string | undefined;
|
|
471
|
-
readonly label: string;
|
|
472
|
-
readonly value: string;
|
|
473
|
-
}[] | undefined;
|
|
474
|
-
} & {
|
|
475
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
476
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
477
|
-
readonly identityDid?: string | undefined;
|
|
478
|
-
readonly identityKey?: string | undefined;
|
|
479
|
-
readonly email?: string | undefined;
|
|
480
|
-
readonly name?: string | undefined;
|
|
481
|
-
};
|
|
482
|
-
readonly blocks: readonly ({
|
|
483
|
-
readonly _tag: "anchor";
|
|
484
|
-
readonly pending?: boolean | undefined;
|
|
485
|
-
readonly objectId: string;
|
|
486
|
-
readonly version: unknown;
|
|
487
|
-
} | {
|
|
488
|
-
readonly _tag: "file";
|
|
489
|
-
readonly pending?: boolean | undefined;
|
|
490
|
-
readonly url: string;
|
|
491
|
-
readonly name?: string | undefined;
|
|
492
|
-
readonly mediaType?: string | undefined;
|
|
493
|
-
} | {
|
|
494
|
-
readonly _tag: "image";
|
|
495
|
-
readonly pending?: boolean | undefined;
|
|
496
|
-
readonly id?: string | undefined;
|
|
497
|
-
readonly source?: {
|
|
498
|
-
readonly type: "base64";
|
|
499
|
-
readonly mediaType: string;
|
|
500
|
-
readonly data: string;
|
|
501
|
-
} | {
|
|
502
|
-
readonly type: "http";
|
|
503
|
-
readonly url: string;
|
|
504
|
-
} | undefined;
|
|
505
|
-
} | {
|
|
506
|
-
readonly _tag: "json";
|
|
507
|
-
readonly pending?: boolean | undefined;
|
|
508
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
509
|
-
readonly data: string;
|
|
510
|
-
} | {
|
|
511
|
-
readonly _tag: "proposal";
|
|
512
|
-
readonly pending?: boolean | undefined;
|
|
513
|
-
readonly text: string;
|
|
514
|
-
} | {
|
|
515
|
-
readonly _tag: "reasoning";
|
|
516
|
-
readonly pending?: boolean | undefined;
|
|
517
|
-
readonly reasoningText?: string | undefined;
|
|
518
|
-
readonly redactedText?: string | undefined;
|
|
519
|
-
readonly signature?: string | undefined;
|
|
520
|
-
} | {
|
|
521
|
-
readonly _tag: "reference";
|
|
522
|
-
readonly pending?: boolean | undefined;
|
|
523
|
-
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
524
|
-
} | {
|
|
525
|
-
readonly _tag: "select";
|
|
526
|
-
readonly pending?: boolean | undefined;
|
|
527
|
-
readonly options: string[];
|
|
528
|
-
} | {
|
|
529
|
-
readonly _tag: "status";
|
|
530
|
-
readonly pending?: boolean | undefined;
|
|
531
|
-
readonly statusText: string;
|
|
532
|
-
} | {
|
|
533
|
-
readonly _tag: "suggestion";
|
|
534
|
-
readonly pending?: boolean | undefined;
|
|
535
|
-
readonly text: string;
|
|
536
|
-
} | {
|
|
537
|
-
readonly _tag: "stats";
|
|
538
|
-
readonly pending?: boolean | undefined;
|
|
539
|
-
readonly mimeType?: string | undefined;
|
|
540
|
-
readonly message?: string | undefined;
|
|
541
|
-
readonly model?: string | undefined;
|
|
542
|
-
readonly usage?: {
|
|
543
|
-
readonly inputTokens?: number | undefined;
|
|
544
|
-
readonly outputTokens?: number | undefined;
|
|
545
|
-
readonly totalTokens?: number | undefined;
|
|
546
|
-
} | undefined;
|
|
547
|
-
readonly toolCalls?: number | undefined;
|
|
548
|
-
readonly errors?: number | undefined;
|
|
549
|
-
readonly duration?: number | undefined;
|
|
550
|
-
} | {
|
|
551
|
-
readonly _tag: "text";
|
|
552
|
-
readonly pending?: boolean | undefined;
|
|
553
|
-
readonly mimeType?: string | undefined;
|
|
554
|
-
readonly text: string;
|
|
555
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
556
|
-
} | {
|
|
557
|
-
readonly _tag: "summary";
|
|
558
|
-
readonly pending?: boolean | undefined;
|
|
559
|
-
readonly content: string;
|
|
560
|
-
} | {
|
|
561
|
-
readonly _tag: "toolkit";
|
|
562
|
-
readonly pending?: boolean | undefined;
|
|
563
|
-
} | {
|
|
564
|
-
readonly _tag: "toolCall";
|
|
565
|
-
readonly pending?: boolean | undefined;
|
|
566
|
-
readonly toolCallId: string;
|
|
567
|
-
readonly name: string;
|
|
568
|
-
readonly input: string;
|
|
569
|
-
readonly providerExecuted: boolean;
|
|
570
|
-
readonly operationKey?: string | undefined;
|
|
571
|
-
readonly operationName?: string | undefined;
|
|
572
|
-
readonly operationIcon?: string | undefined;
|
|
573
|
-
} | {
|
|
574
|
-
readonly _tag: "toolResult";
|
|
575
|
-
readonly pending?: boolean | undefined;
|
|
576
|
-
readonly toolCallId: string;
|
|
577
|
-
readonly name: string;
|
|
578
|
-
readonly result?: string | {
|
|
579
|
-
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
580
|
-
readonly content: readonly ({
|
|
581
|
-
readonly _tag: "file";
|
|
582
|
-
readonly pending?: boolean | undefined;
|
|
583
|
-
readonly url: string;
|
|
584
|
-
readonly name?: string | undefined;
|
|
585
|
-
readonly mediaType?: string | undefined;
|
|
586
|
-
} | {
|
|
587
|
-
readonly _tag: "image";
|
|
588
|
-
readonly pending?: boolean | undefined;
|
|
589
|
-
readonly id?: string | undefined;
|
|
590
|
-
readonly source?: {
|
|
591
|
-
readonly type: "base64";
|
|
592
|
-
readonly mediaType: string;
|
|
593
|
-
readonly data: string;
|
|
594
|
-
} | {
|
|
595
|
-
readonly type: "http";
|
|
596
|
-
readonly url: string;
|
|
597
|
-
} | undefined;
|
|
598
|
-
} | {
|
|
599
|
-
readonly _tag: "text";
|
|
600
|
-
readonly pending?: boolean | undefined;
|
|
601
|
-
readonly mimeType?: string | undefined;
|
|
602
|
-
readonly text: string;
|
|
603
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
604
|
-
})[];
|
|
605
|
-
} | undefined;
|
|
606
|
-
readonly error?: string | undefined;
|
|
607
|
-
readonly providerExecuted: boolean;
|
|
608
|
-
} | {
|
|
609
|
-
readonly _tag: "transcript";
|
|
610
|
-
readonly pending?: boolean | undefined;
|
|
611
|
-
readonly started: string;
|
|
612
|
-
readonly text: string;
|
|
613
|
-
})[];
|
|
614
|
-
readonly properties?: {
|
|
615
|
-
readonly [x: string]: any;
|
|
616
|
-
} | undefined;
|
|
617
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, {
|
|
618
|
-
readonly id: string;
|
|
619
|
-
readonly parentMessage?: string | undefined;
|
|
620
|
-
readonly threadId?: string | undefined;
|
|
621
|
-
readonly created: string;
|
|
622
|
-
readonly sender: {
|
|
623
|
-
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
624
|
-
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
625
|
-
readonly fullName?: string | undefined;
|
|
626
|
-
readonly preferredName?: string | undefined;
|
|
627
|
-
readonly nickname?: string | undefined;
|
|
628
|
-
readonly image?: string | undefined;
|
|
629
|
-
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
630
|
-
readonly name?: string | undefined;
|
|
631
|
-
readonly description?: string | undefined;
|
|
632
|
-
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
633
|
-
readonly image?: string | undefined;
|
|
634
|
-
readonly website?: string | undefined;
|
|
635
|
-
} & {
|
|
636
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
637
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
638
|
-
readonly jobTitle?: string | undefined;
|
|
639
|
-
readonly department?: string | undefined;
|
|
640
|
-
readonly notes?: string | undefined;
|
|
641
|
-
readonly emails?: readonly {
|
|
642
|
-
readonly label?: string | undefined;
|
|
643
|
-
readonly value: string;
|
|
644
|
-
}[] | undefined;
|
|
645
|
-
readonly identities?: readonly {
|
|
646
|
-
readonly label?: string | undefined;
|
|
647
|
-
readonly value: string;
|
|
648
|
-
}[] | undefined;
|
|
649
|
-
readonly phoneNumbers?: readonly {
|
|
650
|
-
readonly label?: string | undefined;
|
|
651
|
-
readonly value: string;
|
|
652
|
-
}[] | undefined;
|
|
653
|
-
readonly addresses?: readonly {
|
|
654
|
-
readonly label?: string | undefined;
|
|
655
|
-
readonly value: {
|
|
656
|
-
readonly street?: string | undefined;
|
|
657
|
-
readonly extended?: string | undefined;
|
|
658
|
-
readonly locality?: string | undefined;
|
|
659
|
-
readonly region?: string | undefined;
|
|
660
|
-
readonly postalCode?: string | undefined;
|
|
661
|
-
readonly postOfficeBoxNumber?: string | undefined;
|
|
662
|
-
readonly country?: string | undefined;
|
|
663
|
-
};
|
|
664
|
-
}[] | undefined;
|
|
665
|
-
readonly urls?: readonly {
|
|
666
|
-
readonly label?: string | undefined;
|
|
667
|
-
readonly value: string;
|
|
668
|
-
}[] | undefined;
|
|
669
|
-
readonly birthday?: string | undefined;
|
|
670
|
-
readonly fields?: readonly {
|
|
671
|
-
readonly category?: string | undefined;
|
|
672
|
-
readonly label: string;
|
|
673
|
-
readonly value: string;
|
|
674
|
-
}[] | undefined;
|
|
675
|
-
} & {
|
|
676
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
677
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
678
|
-
readonly identityDid?: string | undefined;
|
|
679
|
-
readonly identityKey?: string | undefined;
|
|
680
|
-
readonly email?: string | undefined;
|
|
681
|
-
readonly name?: string | undefined;
|
|
682
|
-
};
|
|
683
|
-
readonly blocks: readonly ({
|
|
684
|
-
readonly _tag: "anchor";
|
|
685
|
-
readonly pending?: boolean | undefined;
|
|
686
|
-
readonly objectId: string;
|
|
687
|
-
readonly version: unknown;
|
|
688
|
-
} | {
|
|
689
|
-
readonly _tag: "file";
|
|
690
|
-
readonly pending?: boolean | undefined;
|
|
691
|
-
readonly url: string;
|
|
692
|
-
readonly name?: string | undefined;
|
|
693
|
-
readonly mediaType?: string | undefined;
|
|
694
|
-
} | {
|
|
695
|
-
readonly _tag: "image";
|
|
696
|
-
readonly pending?: boolean | undefined;
|
|
697
|
-
readonly id?: string | undefined;
|
|
698
|
-
readonly source?: {
|
|
699
|
-
readonly type: "base64";
|
|
700
|
-
readonly mediaType: string;
|
|
701
|
-
readonly data: string;
|
|
702
|
-
} | {
|
|
703
|
-
readonly type: "http";
|
|
704
|
-
readonly url: string;
|
|
705
|
-
} | undefined;
|
|
706
|
-
} | {
|
|
707
|
-
readonly _tag: "json";
|
|
708
|
-
readonly pending?: boolean | undefined;
|
|
709
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
710
|
-
readonly data: string;
|
|
711
|
-
} | {
|
|
712
|
-
readonly _tag: "proposal";
|
|
713
|
-
readonly pending?: boolean | undefined;
|
|
714
|
-
readonly text: string;
|
|
715
|
-
} | {
|
|
716
|
-
readonly _tag: "reasoning";
|
|
717
|
-
readonly pending?: boolean | undefined;
|
|
718
|
-
readonly reasoningText?: string | undefined;
|
|
719
|
-
readonly redactedText?: string | undefined;
|
|
720
|
-
readonly signature?: string | undefined;
|
|
721
|
-
} | {
|
|
722
|
-
readonly _tag: "reference";
|
|
723
|
-
readonly pending?: boolean | undefined;
|
|
724
|
-
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
725
|
-
} | {
|
|
726
|
-
readonly _tag: "select";
|
|
727
|
-
readonly pending?: boolean | undefined;
|
|
728
|
-
readonly options: string[];
|
|
729
|
-
} | {
|
|
730
|
-
readonly _tag: "status";
|
|
731
|
-
readonly pending?: boolean | undefined;
|
|
732
|
-
readonly statusText: string;
|
|
733
|
-
} | {
|
|
734
|
-
readonly _tag: "suggestion";
|
|
735
|
-
readonly pending?: boolean | undefined;
|
|
736
|
-
readonly text: string;
|
|
737
|
-
} | {
|
|
738
|
-
readonly _tag: "stats";
|
|
739
|
-
readonly pending?: boolean | undefined;
|
|
740
|
-
readonly mimeType?: string | undefined;
|
|
741
|
-
readonly message?: string | undefined;
|
|
742
|
-
readonly model?: string | undefined;
|
|
743
|
-
readonly usage?: {
|
|
744
|
-
readonly inputTokens?: number | undefined;
|
|
745
|
-
readonly outputTokens?: number | undefined;
|
|
746
|
-
readonly totalTokens?: number | undefined;
|
|
747
|
-
} | undefined;
|
|
748
|
-
readonly toolCalls?: number | undefined;
|
|
749
|
-
readonly errors?: number | undefined;
|
|
750
|
-
readonly duration?: number | undefined;
|
|
751
|
-
} | {
|
|
752
|
-
readonly _tag: "text";
|
|
753
|
-
readonly pending?: boolean | undefined;
|
|
754
|
-
readonly mimeType?: string | undefined;
|
|
755
|
-
readonly text: string;
|
|
756
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
757
|
-
} | {
|
|
758
|
-
readonly _tag: "summary";
|
|
759
|
-
readonly pending?: boolean | undefined;
|
|
760
|
-
readonly content: string;
|
|
761
|
-
} | {
|
|
762
|
-
readonly _tag: "toolkit";
|
|
763
|
-
readonly pending?: boolean | undefined;
|
|
764
|
-
} | {
|
|
765
|
-
readonly _tag: "toolCall";
|
|
766
|
-
readonly pending?: boolean | undefined;
|
|
767
|
-
readonly toolCallId: string;
|
|
768
|
-
readonly name: string;
|
|
769
|
-
readonly input: string;
|
|
770
|
-
readonly providerExecuted: boolean;
|
|
771
|
-
readonly operationKey?: string | undefined;
|
|
772
|
-
readonly operationName?: string | undefined;
|
|
773
|
-
readonly operationIcon?: string | undefined;
|
|
774
|
-
} | {
|
|
775
|
-
readonly _tag: "toolResult";
|
|
776
|
-
readonly pending?: boolean | undefined;
|
|
777
|
-
readonly toolCallId: string;
|
|
778
|
-
readonly name: string;
|
|
779
|
-
readonly result?: string | {
|
|
780
|
-
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
781
|
-
readonly content: readonly ({
|
|
782
|
-
readonly _tag: "file";
|
|
783
|
-
readonly pending?: boolean | undefined;
|
|
784
|
-
readonly url: string;
|
|
785
|
-
readonly name?: string | undefined;
|
|
786
|
-
readonly mediaType?: string | undefined;
|
|
787
|
-
} | {
|
|
788
|
-
readonly _tag: "image";
|
|
789
|
-
readonly pending?: boolean | undefined;
|
|
790
|
-
readonly id?: string | undefined;
|
|
791
|
-
readonly source?: {
|
|
792
|
-
readonly type: "base64";
|
|
793
|
-
readonly mediaType: string;
|
|
794
|
-
readonly data: string;
|
|
795
|
-
} | {
|
|
796
|
-
readonly type: "http";
|
|
797
|
-
readonly url: string;
|
|
798
|
-
} | undefined;
|
|
799
|
-
} | {
|
|
800
|
-
readonly _tag: "text";
|
|
801
|
-
readonly pending?: boolean | undefined;
|
|
802
|
-
readonly mimeType?: string | undefined;
|
|
803
|
-
readonly text: string;
|
|
804
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
805
|
-
})[];
|
|
806
|
-
} | undefined;
|
|
807
|
-
readonly error?: string | undefined;
|
|
808
|
-
readonly providerExecuted: boolean;
|
|
809
|
-
} | {
|
|
810
|
-
readonly _tag: "transcript";
|
|
811
|
-
readonly pending?: boolean | undefined;
|
|
812
|
-
readonly started: string;
|
|
813
|
-
readonly text: string;
|
|
814
|
-
})[];
|
|
815
|
-
readonly properties?: {
|
|
816
|
-
readonly [x: string]: any;
|
|
817
|
-
} | undefined;
|
|
818
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, never>;
|
|
819
|
-
timeElapsed: typeof Schema.Number;
|
|
820
|
-
}>;
|
|
821
|
-
export type ExtractionOutput = Schema.Schema.Type<typeof ExtractionOutput>;
|
|
822
|
-
export type ProcessTranscriptMessageProps = {
|
|
823
|
-
input: ExtractionInput;
|
|
824
|
-
function: Operation.Definition<ExtractionInput, ExtractionOutput>;
|
|
825
|
-
options?: {
|
|
826
|
-
/**
|
|
827
|
-
* Timeout for the entity extraction.
|
|
828
|
-
*/
|
|
829
|
-
timeout?: number;
|
|
830
|
-
/**
|
|
831
|
-
* Fallback to raw text if the entity extraction fails.
|
|
832
|
-
* Otherwise the function will throw an error.
|
|
833
|
-
* @default false
|
|
834
|
-
*/
|
|
835
|
-
fallbackToRaw?: boolean;
|
|
836
|
-
};
|
|
837
|
-
};
|
|
838
|
-
export type ExtractionFunction = Operation.Definition<ExtractionInput, ExtractionOutput>;
|
|
839
|
-
/**
|
|
840
|
-
* Placeholder for Anthropic-based entity extraction.
|
|
841
|
-
* Implementation is currently disabled pending restoration of extraction logic.
|
|
842
|
-
*/
|
|
843
|
-
export declare const extractionAnthropicFunction: Operation.Definition<{
|
|
844
|
-
readonly message: {
|
|
845
|
-
readonly id: string;
|
|
846
|
-
readonly parentMessage?: string | undefined;
|
|
847
|
-
readonly threadId?: string | undefined;
|
|
848
|
-
readonly created: string;
|
|
849
|
-
readonly sender: {
|
|
850
|
-
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
851
|
-
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
852
|
-
readonly fullName?: string | undefined;
|
|
853
|
-
readonly preferredName?: string | undefined;
|
|
854
|
-
readonly nickname?: string | undefined;
|
|
855
|
-
readonly image?: string | undefined;
|
|
856
|
-
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
857
|
-
readonly name?: string | undefined;
|
|
858
|
-
readonly description?: string | undefined;
|
|
859
|
-
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
860
|
-
readonly image?: string | undefined;
|
|
861
|
-
readonly website?: string | undefined;
|
|
862
|
-
} & {
|
|
863
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
864
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
865
|
-
readonly jobTitle?: string | undefined;
|
|
866
|
-
readonly department?: string | undefined;
|
|
867
|
-
readonly notes?: string | undefined;
|
|
868
|
-
readonly emails?: readonly {
|
|
869
|
-
readonly label?: string | undefined;
|
|
870
|
-
readonly value: string;
|
|
871
|
-
}[] | undefined;
|
|
872
|
-
readonly identities?: readonly {
|
|
873
|
-
readonly label?: string | undefined;
|
|
874
|
-
readonly value: string;
|
|
875
|
-
}[] | undefined;
|
|
876
|
-
readonly phoneNumbers?: readonly {
|
|
877
|
-
readonly label?: string | undefined;
|
|
878
|
-
readonly value: string;
|
|
879
|
-
}[] | undefined;
|
|
880
|
-
readonly addresses?: readonly {
|
|
881
|
-
readonly label?: string | undefined;
|
|
882
|
-
readonly value: {
|
|
883
|
-
readonly street?: string | undefined;
|
|
884
|
-
readonly extended?: string | undefined;
|
|
885
|
-
readonly locality?: string | undefined;
|
|
886
|
-
readonly region?: string | undefined;
|
|
887
|
-
readonly postalCode?: string | undefined;
|
|
888
|
-
readonly postOfficeBoxNumber?: string | undefined;
|
|
889
|
-
readonly country?: string | undefined;
|
|
890
|
-
};
|
|
891
|
-
}[] | undefined;
|
|
892
|
-
readonly urls?: readonly {
|
|
893
|
-
readonly label?: string | undefined;
|
|
894
|
-
readonly value: string;
|
|
895
|
-
}[] | undefined;
|
|
896
|
-
readonly birthday?: string | undefined;
|
|
897
|
-
readonly fields?: readonly {
|
|
898
|
-
readonly category?: string | undefined;
|
|
899
|
-
readonly label: string;
|
|
900
|
-
readonly value: string;
|
|
901
|
-
}[] | undefined;
|
|
902
|
-
} & {
|
|
903
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
904
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
905
|
-
readonly identityDid?: string | undefined;
|
|
906
|
-
readonly identityKey?: string | undefined;
|
|
907
|
-
readonly email?: string | undefined;
|
|
908
|
-
readonly name?: string | undefined;
|
|
909
|
-
};
|
|
910
|
-
readonly blocks: readonly ({
|
|
911
|
-
readonly _tag: "anchor";
|
|
912
|
-
readonly pending?: boolean | undefined;
|
|
913
|
-
readonly objectId: string;
|
|
914
|
-
readonly version: unknown;
|
|
915
|
-
} | {
|
|
916
|
-
readonly _tag: "file";
|
|
917
|
-
readonly pending?: boolean | undefined;
|
|
918
|
-
readonly url: string;
|
|
919
|
-
readonly name?: string | undefined;
|
|
920
|
-
readonly mediaType?: string | undefined;
|
|
921
|
-
} | {
|
|
922
|
-
readonly _tag: "image";
|
|
923
|
-
readonly pending?: boolean | undefined;
|
|
924
|
-
readonly id?: string | undefined;
|
|
925
|
-
readonly source?: {
|
|
926
|
-
readonly type: "base64";
|
|
927
|
-
readonly mediaType: string;
|
|
928
|
-
readonly data: string;
|
|
929
|
-
} | {
|
|
930
|
-
readonly type: "http";
|
|
931
|
-
readonly url: string;
|
|
932
|
-
} | undefined;
|
|
933
|
-
} | {
|
|
934
|
-
readonly _tag: "json";
|
|
935
|
-
readonly pending?: boolean | undefined;
|
|
936
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
937
|
-
readonly data: string;
|
|
938
|
-
} | {
|
|
939
|
-
readonly _tag: "proposal";
|
|
940
|
-
readonly pending?: boolean | undefined;
|
|
941
|
-
readonly text: string;
|
|
942
|
-
} | {
|
|
943
|
-
readonly _tag: "reasoning";
|
|
944
|
-
readonly pending?: boolean | undefined;
|
|
945
|
-
readonly reasoningText?: string | undefined;
|
|
946
|
-
readonly redactedText?: string | undefined;
|
|
947
|
-
readonly signature?: string | undefined;
|
|
948
|
-
} | {
|
|
949
|
-
readonly _tag: "reference";
|
|
950
|
-
readonly pending?: boolean | undefined;
|
|
951
|
-
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
952
|
-
} | {
|
|
953
|
-
readonly _tag: "select";
|
|
954
|
-
readonly pending?: boolean | undefined;
|
|
955
|
-
readonly options: string[];
|
|
956
|
-
} | {
|
|
957
|
-
readonly _tag: "status";
|
|
958
|
-
readonly pending?: boolean | undefined;
|
|
959
|
-
readonly statusText: string;
|
|
960
|
-
} | {
|
|
961
|
-
readonly _tag: "suggestion";
|
|
962
|
-
readonly pending?: boolean | undefined;
|
|
963
|
-
readonly text: string;
|
|
964
|
-
} | {
|
|
965
|
-
readonly _tag: "stats";
|
|
966
|
-
readonly pending?: boolean | undefined;
|
|
967
|
-
readonly mimeType?: string | undefined;
|
|
968
|
-
readonly message?: string | undefined;
|
|
969
|
-
readonly model?: string | undefined;
|
|
970
|
-
readonly usage?: {
|
|
971
|
-
readonly inputTokens?: number | undefined;
|
|
972
|
-
readonly outputTokens?: number | undefined;
|
|
973
|
-
readonly totalTokens?: number | undefined;
|
|
974
|
-
} | undefined;
|
|
975
|
-
readonly toolCalls?: number | undefined;
|
|
976
|
-
readonly errors?: number | undefined;
|
|
977
|
-
readonly duration?: number | undefined;
|
|
978
|
-
} | {
|
|
979
|
-
readonly _tag: "text";
|
|
980
|
-
readonly pending?: boolean | undefined;
|
|
981
|
-
readonly mimeType?: string | undefined;
|
|
982
|
-
readonly text: string;
|
|
983
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
984
|
-
} | {
|
|
985
|
-
readonly _tag: "summary";
|
|
986
|
-
readonly pending?: boolean | undefined;
|
|
987
|
-
readonly content: string;
|
|
988
|
-
} | {
|
|
989
|
-
readonly _tag: "toolkit";
|
|
990
|
-
readonly pending?: boolean | undefined;
|
|
991
|
-
} | {
|
|
992
|
-
readonly _tag: "toolCall";
|
|
993
|
-
readonly pending?: boolean | undefined;
|
|
994
|
-
readonly toolCallId: string;
|
|
995
|
-
readonly name: string;
|
|
996
|
-
readonly input: string;
|
|
997
|
-
readonly providerExecuted: boolean;
|
|
998
|
-
readonly operationKey?: string | undefined;
|
|
999
|
-
readonly operationName?: string | undefined;
|
|
1000
|
-
readonly operationIcon?: string | undefined;
|
|
1001
|
-
} | {
|
|
1002
|
-
readonly _tag: "toolResult";
|
|
1003
|
-
readonly pending?: boolean | undefined;
|
|
1004
|
-
readonly toolCallId: string;
|
|
1005
|
-
readonly name: string;
|
|
1006
|
-
readonly result?: string | {
|
|
1007
|
-
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
1008
|
-
readonly content: readonly ({
|
|
1009
|
-
readonly _tag: "file";
|
|
1010
|
-
readonly pending?: boolean | undefined;
|
|
1011
|
-
readonly url: string;
|
|
1012
|
-
readonly name?: string | undefined;
|
|
1013
|
-
readonly mediaType?: string | undefined;
|
|
1014
|
-
} | {
|
|
1015
|
-
readonly _tag: "image";
|
|
1016
|
-
readonly pending?: boolean | undefined;
|
|
1017
|
-
readonly id?: string | undefined;
|
|
1018
|
-
readonly source?: {
|
|
1019
|
-
readonly type: "base64";
|
|
1020
|
-
readonly mediaType: string;
|
|
1021
|
-
readonly data: string;
|
|
1022
|
-
} | {
|
|
1023
|
-
readonly type: "http";
|
|
1024
|
-
readonly url: string;
|
|
1025
|
-
} | undefined;
|
|
1026
|
-
} | {
|
|
1027
|
-
readonly _tag: "text";
|
|
1028
|
-
readonly pending?: boolean | undefined;
|
|
1029
|
-
readonly mimeType?: string | undefined;
|
|
1030
|
-
readonly text: string;
|
|
1031
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1032
|
-
})[];
|
|
1033
|
-
} | undefined;
|
|
1034
|
-
readonly error?: string | undefined;
|
|
1035
|
-
readonly providerExecuted: boolean;
|
|
1036
|
-
} | {
|
|
1037
|
-
readonly _tag: "transcript";
|
|
1038
|
-
readonly pending?: boolean | undefined;
|
|
1039
|
-
readonly started: string;
|
|
1040
|
-
readonly text: string;
|
|
1041
|
-
})[];
|
|
1042
|
-
readonly properties?: {
|
|
1043
|
-
readonly [x: string]: any;
|
|
1044
|
-
} | undefined;
|
|
1045
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
|
|
1046
|
-
readonly objects?: readonly Obj.Unknown[] | undefined;
|
|
1047
|
-
readonly options?: {
|
|
1048
|
-
readonly timeout?: number | undefined;
|
|
1049
|
-
readonly fallbackToRaw?: boolean | undefined;
|
|
1050
|
-
} | undefined;
|
|
1051
|
-
}, {
|
|
1052
|
-
readonly message: {
|
|
1053
|
-
readonly id: string;
|
|
1054
|
-
readonly parentMessage?: string | undefined;
|
|
1055
|
-
readonly threadId?: string | undefined;
|
|
1056
|
-
readonly created: string;
|
|
1057
|
-
readonly sender: {
|
|
1058
|
-
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
1059
|
-
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
1060
|
-
readonly fullName?: string | undefined;
|
|
1061
|
-
readonly preferredName?: string | undefined;
|
|
1062
|
-
readonly nickname?: string | undefined;
|
|
1063
|
-
readonly image?: string | undefined;
|
|
1064
|
-
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
1065
|
-
readonly name?: string | undefined;
|
|
1066
|
-
readonly description?: string | undefined;
|
|
1067
|
-
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
1068
|
-
readonly image?: string | undefined;
|
|
1069
|
-
readonly website?: string | undefined;
|
|
1070
|
-
} & {
|
|
1071
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1072
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1073
|
-
readonly jobTitle?: string | undefined;
|
|
1074
|
-
readonly department?: string | undefined;
|
|
1075
|
-
readonly notes?: string | undefined;
|
|
1076
|
-
readonly emails?: readonly {
|
|
1077
|
-
readonly label?: string | undefined;
|
|
1078
|
-
readonly value: string;
|
|
1079
|
-
}[] | undefined;
|
|
1080
|
-
readonly identities?: readonly {
|
|
1081
|
-
readonly label?: string | undefined;
|
|
1082
|
-
readonly value: string;
|
|
1083
|
-
}[] | undefined;
|
|
1084
|
-
readonly phoneNumbers?: readonly {
|
|
1085
|
-
readonly label?: string | undefined;
|
|
1086
|
-
readonly value: string;
|
|
1087
|
-
}[] | undefined;
|
|
1088
|
-
readonly addresses?: readonly {
|
|
1089
|
-
readonly label?: string | undefined;
|
|
1090
|
-
readonly value: {
|
|
1091
|
-
readonly street?: string | undefined;
|
|
1092
|
-
readonly extended?: string | undefined;
|
|
1093
|
-
readonly locality?: string | undefined;
|
|
1094
|
-
readonly region?: string | undefined;
|
|
1095
|
-
readonly postalCode?: string | undefined;
|
|
1096
|
-
readonly postOfficeBoxNumber?: string | undefined;
|
|
1097
|
-
readonly country?: string | undefined;
|
|
1098
|
-
};
|
|
1099
|
-
}[] | undefined;
|
|
1100
|
-
readonly urls?: readonly {
|
|
1101
|
-
readonly label?: string | undefined;
|
|
1102
|
-
readonly value: string;
|
|
1103
|
-
}[] | undefined;
|
|
1104
|
-
readonly birthday?: string | undefined;
|
|
1105
|
-
readonly fields?: readonly {
|
|
1106
|
-
readonly category?: string | undefined;
|
|
1107
|
-
readonly label: string;
|
|
1108
|
-
readonly value: string;
|
|
1109
|
-
}[] | undefined;
|
|
1110
|
-
} & {
|
|
1111
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1112
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1113
|
-
readonly identityDid?: string | undefined;
|
|
1114
|
-
readonly identityKey?: string | undefined;
|
|
1115
|
-
readonly email?: string | undefined;
|
|
1116
|
-
readonly name?: string | undefined;
|
|
1117
|
-
};
|
|
1118
|
-
readonly blocks: readonly ({
|
|
1119
|
-
readonly _tag: "anchor";
|
|
1120
|
-
readonly pending?: boolean | undefined;
|
|
1121
|
-
readonly objectId: string;
|
|
1122
|
-
readonly version: unknown;
|
|
1123
|
-
} | {
|
|
1124
|
-
readonly _tag: "file";
|
|
1125
|
-
readonly pending?: boolean | undefined;
|
|
1126
|
-
readonly url: string;
|
|
1127
|
-
readonly name?: string | undefined;
|
|
1128
|
-
readonly mediaType?: string | undefined;
|
|
1129
|
-
} | {
|
|
1130
|
-
readonly _tag: "image";
|
|
1131
|
-
readonly pending?: boolean | undefined;
|
|
1132
|
-
readonly id?: string | undefined;
|
|
1133
|
-
readonly source?: {
|
|
1134
|
-
readonly type: "base64";
|
|
1135
|
-
readonly mediaType: string;
|
|
1136
|
-
readonly data: string;
|
|
1137
|
-
} | {
|
|
1138
|
-
readonly type: "http";
|
|
1139
|
-
readonly url: string;
|
|
1140
|
-
} | undefined;
|
|
1141
|
-
} | {
|
|
1142
|
-
readonly _tag: "json";
|
|
1143
|
-
readonly pending?: boolean | undefined;
|
|
1144
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1145
|
-
readonly data: string;
|
|
1146
|
-
} | {
|
|
1147
|
-
readonly _tag: "proposal";
|
|
1148
|
-
readonly pending?: boolean | undefined;
|
|
1149
|
-
readonly text: string;
|
|
1150
|
-
} | {
|
|
1151
|
-
readonly _tag: "reasoning";
|
|
1152
|
-
readonly pending?: boolean | undefined;
|
|
1153
|
-
readonly reasoningText?: string | undefined;
|
|
1154
|
-
readonly redactedText?: string | undefined;
|
|
1155
|
-
readonly signature?: string | undefined;
|
|
1156
|
-
} | {
|
|
1157
|
-
readonly _tag: "reference";
|
|
1158
|
-
readonly pending?: boolean | undefined;
|
|
1159
|
-
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
1160
|
-
} | {
|
|
1161
|
-
readonly _tag: "select";
|
|
1162
|
-
readonly pending?: boolean | undefined;
|
|
1163
|
-
readonly options: string[];
|
|
1164
|
-
} | {
|
|
1165
|
-
readonly _tag: "status";
|
|
1166
|
-
readonly pending?: boolean | undefined;
|
|
1167
|
-
readonly statusText: string;
|
|
1168
|
-
} | {
|
|
1169
|
-
readonly _tag: "suggestion";
|
|
1170
|
-
readonly pending?: boolean | undefined;
|
|
1171
|
-
readonly text: string;
|
|
1172
|
-
} | {
|
|
1173
|
-
readonly _tag: "stats";
|
|
1174
|
-
readonly pending?: boolean | undefined;
|
|
1175
|
-
readonly mimeType?: string | undefined;
|
|
1176
|
-
readonly message?: string | undefined;
|
|
1177
|
-
readonly model?: string | undefined;
|
|
1178
|
-
readonly usage?: {
|
|
1179
|
-
readonly inputTokens?: number | undefined;
|
|
1180
|
-
readonly outputTokens?: number | undefined;
|
|
1181
|
-
readonly totalTokens?: number | undefined;
|
|
1182
|
-
} | undefined;
|
|
1183
|
-
readonly toolCalls?: number | undefined;
|
|
1184
|
-
readonly errors?: number | undefined;
|
|
1185
|
-
readonly duration?: number | undefined;
|
|
1186
|
-
} | {
|
|
1187
|
-
readonly _tag: "text";
|
|
1188
|
-
readonly pending?: boolean | undefined;
|
|
1189
|
-
readonly mimeType?: string | undefined;
|
|
1190
|
-
readonly text: string;
|
|
1191
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1192
|
-
} | {
|
|
1193
|
-
readonly _tag: "summary";
|
|
1194
|
-
readonly pending?: boolean | undefined;
|
|
1195
|
-
readonly content: string;
|
|
1196
|
-
} | {
|
|
1197
|
-
readonly _tag: "toolkit";
|
|
1198
|
-
readonly pending?: boolean | undefined;
|
|
1199
|
-
} | {
|
|
1200
|
-
readonly _tag: "toolCall";
|
|
1201
|
-
readonly pending?: boolean | undefined;
|
|
1202
|
-
readonly toolCallId: string;
|
|
1203
|
-
readonly name: string;
|
|
1204
|
-
readonly input: string;
|
|
1205
|
-
readonly providerExecuted: boolean;
|
|
1206
|
-
readonly operationKey?: string | undefined;
|
|
1207
|
-
readonly operationName?: string | undefined;
|
|
1208
|
-
readonly operationIcon?: string | undefined;
|
|
1209
|
-
} | {
|
|
1210
|
-
readonly _tag: "toolResult";
|
|
1211
|
-
readonly pending?: boolean | undefined;
|
|
1212
|
-
readonly toolCallId: string;
|
|
1213
|
-
readonly name: string;
|
|
1214
|
-
readonly result?: string | {
|
|
1215
|
-
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
1216
|
-
readonly content: readonly ({
|
|
1217
|
-
readonly _tag: "file";
|
|
1218
|
-
readonly pending?: boolean | undefined;
|
|
1219
|
-
readonly url: string;
|
|
1220
|
-
readonly name?: string | undefined;
|
|
1221
|
-
readonly mediaType?: string | undefined;
|
|
1222
|
-
} | {
|
|
1223
|
-
readonly _tag: "image";
|
|
1224
|
-
readonly pending?: boolean | undefined;
|
|
1225
|
-
readonly id?: string | undefined;
|
|
1226
|
-
readonly source?: {
|
|
1227
|
-
readonly type: "base64";
|
|
1228
|
-
readonly mediaType: string;
|
|
1229
|
-
readonly data: string;
|
|
1230
|
-
} | {
|
|
1231
|
-
readonly type: "http";
|
|
1232
|
-
readonly url: string;
|
|
1233
|
-
} | undefined;
|
|
1234
|
-
} | {
|
|
1235
|
-
readonly _tag: "text";
|
|
1236
|
-
readonly pending?: boolean | undefined;
|
|
1237
|
-
readonly mimeType?: string | undefined;
|
|
1238
|
-
readonly text: string;
|
|
1239
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1240
|
-
})[];
|
|
1241
|
-
} | undefined;
|
|
1242
|
-
readonly error?: string | undefined;
|
|
1243
|
-
readonly providerExecuted: boolean;
|
|
1244
|
-
} | {
|
|
1245
|
-
readonly _tag: "transcript";
|
|
1246
|
-
readonly pending?: boolean | undefined;
|
|
1247
|
-
readonly started: string;
|
|
1248
|
-
readonly text: string;
|
|
1249
|
-
})[];
|
|
1250
|
-
readonly properties?: {
|
|
1251
|
-
readonly [x: string]: any;
|
|
1252
|
-
} | undefined;
|
|
1253
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
|
|
1254
|
-
readonly timeElapsed: number;
|
|
1255
|
-
}, never>;
|
|
1256
|
-
/**
|
|
1257
|
-
* Placeholder for NER-based entity extraction.
|
|
1258
|
-
* Implementation is currently disabled pending restoration of extraction logic.
|
|
1259
|
-
*/
|
|
1260
|
-
export declare const extractionNerFunction: Operation.Definition<{
|
|
1261
|
-
readonly message: {
|
|
1262
|
-
readonly id: string;
|
|
1263
|
-
readonly parentMessage?: string | undefined;
|
|
1264
|
-
readonly threadId?: string | undefined;
|
|
1265
|
-
readonly created: string;
|
|
1266
|
-
readonly sender: {
|
|
1267
|
-
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
1268
|
-
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
1269
|
-
readonly fullName?: string | undefined;
|
|
1270
|
-
readonly preferredName?: string | undefined;
|
|
1271
|
-
readonly nickname?: string | undefined;
|
|
1272
|
-
readonly image?: string | undefined;
|
|
1273
|
-
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
1274
|
-
readonly name?: string | undefined;
|
|
1275
|
-
readonly description?: string | undefined;
|
|
1276
|
-
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
1277
|
-
readonly image?: string | undefined;
|
|
1278
|
-
readonly website?: string | undefined;
|
|
1279
|
-
} & {
|
|
1280
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1281
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1282
|
-
readonly jobTitle?: string | undefined;
|
|
1283
|
-
readonly department?: string | undefined;
|
|
1284
|
-
readonly notes?: string | undefined;
|
|
1285
|
-
readonly emails?: readonly {
|
|
1286
|
-
readonly label?: string | undefined;
|
|
1287
|
-
readonly value: string;
|
|
1288
|
-
}[] | undefined;
|
|
1289
|
-
readonly identities?: readonly {
|
|
1290
|
-
readonly label?: string | undefined;
|
|
1291
|
-
readonly value: string;
|
|
1292
|
-
}[] | undefined;
|
|
1293
|
-
readonly phoneNumbers?: readonly {
|
|
1294
|
-
readonly label?: string | undefined;
|
|
1295
|
-
readonly value: string;
|
|
1296
|
-
}[] | undefined;
|
|
1297
|
-
readonly addresses?: readonly {
|
|
1298
|
-
readonly label?: string | undefined;
|
|
1299
|
-
readonly value: {
|
|
1300
|
-
readonly street?: string | undefined;
|
|
1301
|
-
readonly extended?: string | undefined;
|
|
1302
|
-
readonly locality?: string | undefined;
|
|
1303
|
-
readonly region?: string | undefined;
|
|
1304
|
-
readonly postalCode?: string | undefined;
|
|
1305
|
-
readonly postOfficeBoxNumber?: string | undefined;
|
|
1306
|
-
readonly country?: string | undefined;
|
|
1307
|
-
};
|
|
1308
|
-
}[] | undefined;
|
|
1309
|
-
readonly urls?: readonly {
|
|
1310
|
-
readonly label?: string | undefined;
|
|
1311
|
-
readonly value: string;
|
|
1312
|
-
}[] | undefined;
|
|
1313
|
-
readonly birthday?: string | undefined;
|
|
1314
|
-
readonly fields?: readonly {
|
|
1315
|
-
readonly category?: string | undefined;
|
|
1316
|
-
readonly label: string;
|
|
1317
|
-
readonly value: string;
|
|
1318
|
-
}[] | undefined;
|
|
1319
|
-
} & {
|
|
1320
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1321
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1322
|
-
readonly identityDid?: string | undefined;
|
|
1323
|
-
readonly identityKey?: string | undefined;
|
|
1324
|
-
readonly email?: string | undefined;
|
|
1325
|
-
readonly name?: string | undefined;
|
|
1326
|
-
};
|
|
1327
|
-
readonly blocks: readonly ({
|
|
1328
|
-
readonly _tag: "anchor";
|
|
1329
|
-
readonly pending?: boolean | undefined;
|
|
1330
|
-
readonly objectId: string;
|
|
1331
|
-
readonly version: unknown;
|
|
1332
|
-
} | {
|
|
1333
|
-
readonly _tag: "file";
|
|
1334
|
-
readonly pending?: boolean | undefined;
|
|
1335
|
-
readonly url: string;
|
|
1336
|
-
readonly name?: string | undefined;
|
|
1337
|
-
readonly mediaType?: string | undefined;
|
|
1338
|
-
} | {
|
|
1339
|
-
readonly _tag: "image";
|
|
1340
|
-
readonly pending?: boolean | undefined;
|
|
1341
|
-
readonly id?: string | undefined;
|
|
1342
|
-
readonly source?: {
|
|
1343
|
-
readonly type: "base64";
|
|
1344
|
-
readonly mediaType: string;
|
|
1345
|
-
readonly data: string;
|
|
1346
|
-
} | {
|
|
1347
|
-
readonly type: "http";
|
|
1348
|
-
readonly url: string;
|
|
1349
|
-
} | undefined;
|
|
1350
|
-
} | {
|
|
1351
|
-
readonly _tag: "json";
|
|
1352
|
-
readonly pending?: boolean | undefined;
|
|
1353
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1354
|
-
readonly data: string;
|
|
1355
|
-
} | {
|
|
1356
|
-
readonly _tag: "proposal";
|
|
1357
|
-
readonly pending?: boolean | undefined;
|
|
1358
|
-
readonly text: string;
|
|
1359
|
-
} | {
|
|
1360
|
-
readonly _tag: "reasoning";
|
|
1361
|
-
readonly pending?: boolean | undefined;
|
|
1362
|
-
readonly reasoningText?: string | undefined;
|
|
1363
|
-
readonly redactedText?: string | undefined;
|
|
1364
|
-
readonly signature?: string | undefined;
|
|
1365
|
-
} | {
|
|
1366
|
-
readonly _tag: "reference";
|
|
1367
|
-
readonly pending?: boolean | undefined;
|
|
1368
|
-
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
1369
|
-
} | {
|
|
1370
|
-
readonly _tag: "select";
|
|
1371
|
-
readonly pending?: boolean | undefined;
|
|
1372
|
-
readonly options: string[];
|
|
1373
|
-
} | {
|
|
1374
|
-
readonly _tag: "status";
|
|
1375
|
-
readonly pending?: boolean | undefined;
|
|
1376
|
-
readonly statusText: string;
|
|
1377
|
-
} | {
|
|
1378
|
-
readonly _tag: "suggestion";
|
|
1379
|
-
readonly pending?: boolean | undefined;
|
|
1380
|
-
readonly text: string;
|
|
1381
|
-
} | {
|
|
1382
|
-
readonly _tag: "stats";
|
|
1383
|
-
readonly pending?: boolean | undefined;
|
|
1384
|
-
readonly mimeType?: string | undefined;
|
|
1385
|
-
readonly message?: string | undefined;
|
|
1386
|
-
readonly model?: string | undefined;
|
|
1387
|
-
readonly usage?: {
|
|
1388
|
-
readonly inputTokens?: number | undefined;
|
|
1389
|
-
readonly outputTokens?: number | undefined;
|
|
1390
|
-
readonly totalTokens?: number | undefined;
|
|
1391
|
-
} | undefined;
|
|
1392
|
-
readonly toolCalls?: number | undefined;
|
|
1393
|
-
readonly errors?: number | undefined;
|
|
1394
|
-
readonly duration?: number | undefined;
|
|
1395
|
-
} | {
|
|
1396
|
-
readonly _tag: "text";
|
|
1397
|
-
readonly pending?: boolean | undefined;
|
|
1398
|
-
readonly mimeType?: string | undefined;
|
|
1399
|
-
readonly text: string;
|
|
1400
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1401
|
-
} | {
|
|
1402
|
-
readonly _tag: "summary";
|
|
1403
|
-
readonly pending?: boolean | undefined;
|
|
1404
|
-
readonly content: string;
|
|
1405
|
-
} | {
|
|
1406
|
-
readonly _tag: "toolkit";
|
|
1407
|
-
readonly pending?: boolean | undefined;
|
|
1408
|
-
} | {
|
|
1409
|
-
readonly _tag: "toolCall";
|
|
1410
|
-
readonly pending?: boolean | undefined;
|
|
1411
|
-
readonly toolCallId: string;
|
|
1412
|
-
readonly name: string;
|
|
1413
|
-
readonly input: string;
|
|
1414
|
-
readonly providerExecuted: boolean;
|
|
1415
|
-
readonly operationKey?: string | undefined;
|
|
1416
|
-
readonly operationName?: string | undefined;
|
|
1417
|
-
readonly operationIcon?: string | undefined;
|
|
1418
|
-
} | {
|
|
1419
|
-
readonly _tag: "toolResult";
|
|
1420
|
-
readonly pending?: boolean | undefined;
|
|
1421
|
-
readonly toolCallId: string;
|
|
1422
|
-
readonly name: string;
|
|
1423
|
-
readonly result?: string | {
|
|
1424
|
-
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
1425
|
-
readonly content: readonly ({
|
|
1426
|
-
readonly _tag: "file";
|
|
1427
|
-
readonly pending?: boolean | undefined;
|
|
1428
|
-
readonly url: string;
|
|
1429
|
-
readonly name?: string | undefined;
|
|
1430
|
-
readonly mediaType?: string | undefined;
|
|
1431
|
-
} | {
|
|
1432
|
-
readonly _tag: "image";
|
|
1433
|
-
readonly pending?: boolean | undefined;
|
|
1434
|
-
readonly id?: string | undefined;
|
|
1435
|
-
readonly source?: {
|
|
1436
|
-
readonly type: "base64";
|
|
1437
|
-
readonly mediaType: string;
|
|
1438
|
-
readonly data: string;
|
|
1439
|
-
} | {
|
|
1440
|
-
readonly type: "http";
|
|
1441
|
-
readonly url: string;
|
|
1442
|
-
} | undefined;
|
|
1443
|
-
} | {
|
|
1444
|
-
readonly _tag: "text";
|
|
1445
|
-
readonly pending?: boolean | undefined;
|
|
1446
|
-
readonly mimeType?: string | undefined;
|
|
1447
|
-
readonly text: string;
|
|
1448
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1449
|
-
})[];
|
|
1450
|
-
} | undefined;
|
|
1451
|
-
readonly error?: string | undefined;
|
|
1452
|
-
readonly providerExecuted: boolean;
|
|
1453
|
-
} | {
|
|
1454
|
-
readonly _tag: "transcript";
|
|
1455
|
-
readonly pending?: boolean | undefined;
|
|
1456
|
-
readonly started: string;
|
|
1457
|
-
readonly text: string;
|
|
1458
|
-
})[];
|
|
1459
|
-
readonly properties?: {
|
|
1460
|
-
readonly [x: string]: any;
|
|
1461
|
-
} | undefined;
|
|
1462
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
|
|
1463
|
-
readonly objects?: readonly Obj.Unknown[] | undefined;
|
|
1464
|
-
readonly options?: {
|
|
1465
|
-
readonly timeout?: number | undefined;
|
|
1466
|
-
readonly fallbackToRaw?: boolean | undefined;
|
|
1467
|
-
} | undefined;
|
|
1468
|
-
}, {
|
|
1469
|
-
readonly message: {
|
|
1470
|
-
readonly id: string;
|
|
1471
|
-
readonly parentMessage?: string | undefined;
|
|
1472
|
-
readonly threadId?: string | undefined;
|
|
1473
|
-
readonly created: string;
|
|
1474
|
-
readonly sender: {
|
|
1475
|
-
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
1476
|
-
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
1477
|
-
readonly fullName?: string | undefined;
|
|
1478
|
-
readonly preferredName?: string | undefined;
|
|
1479
|
-
readonly nickname?: string | undefined;
|
|
1480
|
-
readonly image?: string | undefined;
|
|
1481
|
-
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
1482
|
-
readonly name?: string | undefined;
|
|
1483
|
-
readonly description?: string | undefined;
|
|
1484
|
-
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
1485
|
-
readonly image?: string | undefined;
|
|
1486
|
-
readonly website?: string | undefined;
|
|
1487
|
-
} & {
|
|
1488
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1489
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1490
|
-
readonly jobTitle?: string | undefined;
|
|
1491
|
-
readonly department?: string | undefined;
|
|
1492
|
-
readonly notes?: string | undefined;
|
|
1493
|
-
readonly emails?: readonly {
|
|
1494
|
-
readonly label?: string | undefined;
|
|
1495
|
-
readonly value: string;
|
|
1496
|
-
}[] | undefined;
|
|
1497
|
-
readonly identities?: readonly {
|
|
1498
|
-
readonly label?: string | undefined;
|
|
1499
|
-
readonly value: string;
|
|
1500
|
-
}[] | undefined;
|
|
1501
|
-
readonly phoneNumbers?: readonly {
|
|
1502
|
-
readonly label?: string | undefined;
|
|
1503
|
-
readonly value: string;
|
|
1504
|
-
}[] | undefined;
|
|
1505
|
-
readonly addresses?: readonly {
|
|
1506
|
-
readonly label?: string | undefined;
|
|
1507
|
-
readonly value: {
|
|
1508
|
-
readonly street?: string | undefined;
|
|
1509
|
-
readonly extended?: string | undefined;
|
|
1510
|
-
readonly locality?: string | undefined;
|
|
1511
|
-
readonly region?: string | undefined;
|
|
1512
|
-
readonly postalCode?: string | undefined;
|
|
1513
|
-
readonly postOfficeBoxNumber?: string | undefined;
|
|
1514
|
-
readonly country?: string | undefined;
|
|
1515
|
-
};
|
|
1516
|
-
}[] | undefined;
|
|
1517
|
-
readonly urls?: readonly {
|
|
1518
|
-
readonly label?: string | undefined;
|
|
1519
|
-
readonly value: string;
|
|
1520
|
-
}[] | undefined;
|
|
1521
|
-
readonly birthday?: string | undefined;
|
|
1522
|
-
readonly fields?: readonly {
|
|
1523
|
-
readonly category?: string | undefined;
|
|
1524
|
-
readonly label: string;
|
|
1525
|
-
readonly value: string;
|
|
1526
|
-
}[] | undefined;
|
|
1527
|
-
} & {
|
|
1528
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1529
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1530
|
-
readonly identityDid?: string | undefined;
|
|
1531
|
-
readonly identityKey?: string | undefined;
|
|
1532
|
-
readonly email?: string | undefined;
|
|
1533
|
-
readonly name?: string | undefined;
|
|
1534
|
-
};
|
|
1535
|
-
readonly blocks: readonly ({
|
|
1536
|
-
readonly _tag: "anchor";
|
|
1537
|
-
readonly pending?: boolean | undefined;
|
|
1538
|
-
readonly objectId: string;
|
|
1539
|
-
readonly version: unknown;
|
|
1540
|
-
} | {
|
|
1541
|
-
readonly _tag: "file";
|
|
1542
|
-
readonly pending?: boolean | undefined;
|
|
1543
|
-
readonly url: string;
|
|
1544
|
-
readonly name?: string | undefined;
|
|
1545
|
-
readonly mediaType?: string | undefined;
|
|
1546
|
-
} | {
|
|
1547
|
-
readonly _tag: "image";
|
|
1548
|
-
readonly pending?: boolean | undefined;
|
|
1549
|
-
readonly id?: string | undefined;
|
|
1550
|
-
readonly source?: {
|
|
1551
|
-
readonly type: "base64";
|
|
1552
|
-
readonly mediaType: string;
|
|
1553
|
-
readonly data: string;
|
|
1554
|
-
} | {
|
|
1555
|
-
readonly type: "http";
|
|
1556
|
-
readonly url: string;
|
|
1557
|
-
} | undefined;
|
|
1558
|
-
} | {
|
|
1559
|
-
readonly _tag: "json";
|
|
1560
|
-
readonly pending?: boolean | undefined;
|
|
1561
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1562
|
-
readonly data: string;
|
|
1563
|
-
} | {
|
|
1564
|
-
readonly _tag: "proposal";
|
|
1565
|
-
readonly pending?: boolean | undefined;
|
|
1566
|
-
readonly text: string;
|
|
1567
|
-
} | {
|
|
1568
|
-
readonly _tag: "reasoning";
|
|
1569
|
-
readonly pending?: boolean | undefined;
|
|
1570
|
-
readonly reasoningText?: string | undefined;
|
|
1571
|
-
readonly redactedText?: string | undefined;
|
|
1572
|
-
readonly signature?: string | undefined;
|
|
1573
|
-
} | {
|
|
1574
|
-
readonly _tag: "reference";
|
|
1575
|
-
readonly pending?: boolean | undefined;
|
|
1576
|
-
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
1577
|
-
} | {
|
|
1578
|
-
readonly _tag: "select";
|
|
1579
|
-
readonly pending?: boolean | undefined;
|
|
1580
|
-
readonly options: string[];
|
|
1581
|
-
} | {
|
|
1582
|
-
readonly _tag: "status";
|
|
1583
|
-
readonly pending?: boolean | undefined;
|
|
1584
|
-
readonly statusText: string;
|
|
1585
|
-
} | {
|
|
1586
|
-
readonly _tag: "suggestion";
|
|
1587
|
-
readonly pending?: boolean | undefined;
|
|
1588
|
-
readonly text: string;
|
|
1589
|
-
} | {
|
|
1590
|
-
readonly _tag: "stats";
|
|
1591
|
-
readonly pending?: boolean | undefined;
|
|
1592
|
-
readonly mimeType?: string | undefined;
|
|
1593
|
-
readonly message?: string | undefined;
|
|
1594
|
-
readonly model?: string | undefined;
|
|
1595
|
-
readonly usage?: {
|
|
1596
|
-
readonly inputTokens?: number | undefined;
|
|
1597
|
-
readonly outputTokens?: number | undefined;
|
|
1598
|
-
readonly totalTokens?: number | undefined;
|
|
1599
|
-
} | undefined;
|
|
1600
|
-
readonly toolCalls?: number | undefined;
|
|
1601
|
-
readonly errors?: number | undefined;
|
|
1602
|
-
readonly duration?: number | undefined;
|
|
1603
|
-
} | {
|
|
1604
|
-
readonly _tag: "text";
|
|
1605
|
-
readonly pending?: boolean | undefined;
|
|
1606
|
-
readonly mimeType?: string | undefined;
|
|
1607
|
-
readonly text: string;
|
|
1608
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1609
|
-
} | {
|
|
1610
|
-
readonly _tag: "summary";
|
|
1611
|
-
readonly pending?: boolean | undefined;
|
|
1612
|
-
readonly content: string;
|
|
1613
|
-
} | {
|
|
1614
|
-
readonly _tag: "toolkit";
|
|
1615
|
-
readonly pending?: boolean | undefined;
|
|
1616
|
-
} | {
|
|
1617
|
-
readonly _tag: "toolCall";
|
|
1618
|
-
readonly pending?: boolean | undefined;
|
|
1619
|
-
readonly toolCallId: string;
|
|
1620
|
-
readonly name: string;
|
|
1621
|
-
readonly input: string;
|
|
1622
|
-
readonly providerExecuted: boolean;
|
|
1623
|
-
readonly operationKey?: string | undefined;
|
|
1624
|
-
readonly operationName?: string | undefined;
|
|
1625
|
-
readonly operationIcon?: string | undefined;
|
|
1626
|
-
} | {
|
|
1627
|
-
readonly _tag: "toolResult";
|
|
1628
|
-
readonly pending?: boolean | undefined;
|
|
1629
|
-
readonly toolCallId: string;
|
|
1630
|
-
readonly name: string;
|
|
1631
|
-
readonly result?: string | {
|
|
1632
|
-
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
1633
|
-
readonly content: readonly ({
|
|
1634
|
-
readonly _tag: "file";
|
|
1635
|
-
readonly pending?: boolean | undefined;
|
|
1636
|
-
readonly url: string;
|
|
1637
|
-
readonly name?: string | undefined;
|
|
1638
|
-
readonly mediaType?: string | undefined;
|
|
1639
|
-
} | {
|
|
1640
|
-
readonly _tag: "image";
|
|
1641
|
-
readonly pending?: boolean | undefined;
|
|
1642
|
-
readonly id?: string | undefined;
|
|
1643
|
-
readonly source?: {
|
|
1644
|
-
readonly type: "base64";
|
|
1645
|
-
readonly mediaType: string;
|
|
1646
|
-
readonly data: string;
|
|
1647
|
-
} | {
|
|
1648
|
-
readonly type: "http";
|
|
1649
|
-
readonly url: string;
|
|
1650
|
-
} | undefined;
|
|
1651
|
-
} | {
|
|
1652
|
-
readonly _tag: "text";
|
|
1653
|
-
readonly pending?: boolean | undefined;
|
|
1654
|
-
readonly mimeType?: string | undefined;
|
|
1655
|
-
readonly text: string;
|
|
1656
|
-
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1657
|
-
})[];
|
|
1658
|
-
} | undefined;
|
|
1659
|
-
readonly error?: string | undefined;
|
|
1660
|
-
readonly providerExecuted: boolean;
|
|
1661
|
-
} | {
|
|
1662
|
-
readonly _tag: "transcript";
|
|
1663
|
-
readonly pending?: boolean | undefined;
|
|
1664
|
-
readonly started: string;
|
|
1665
|
-
readonly text: string;
|
|
1666
|
-
})[];
|
|
1667
|
-
readonly properties?: {
|
|
1668
|
-
readonly [x: string]: any;
|
|
1669
|
-
} | undefined;
|
|
1670
|
-
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
|
|
1671
|
-
readonly timeElapsed: number;
|
|
1672
|
-
}, never>;
|
|
1673
|
-
/**
|
|
1674
|
-
* Extract entities from the transcript message and add them to the message.
|
|
1675
|
-
*/
|
|
1676
|
-
export declare const processTranscriptMessage: (params: ProcessTranscriptMessageProps) => Promise<ExtractionOutput>;
|
|
1677
|
-
//# sourceMappingURL=extraction.d.ts.map
|