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