@dxos/assistant 0.8.4-main.7ace549 → 0.8.4-main.937b3ca
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/browser/chunk-7CDDG6LL.mjs +578 -0
- package/dist/lib/browser/chunk-7CDDG6LL.mjs.map +7 -0
- package/dist/lib/browser/extraction/index.mjs +3 -3
- package/dist/lib/browser/extraction/index.mjs.map +3 -3
- package/dist/lib/browser/index.mjs +239 -678
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +32 -0
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs +579 -0
- package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs.map +7 -0
- package/dist/lib/node-esm/extraction/index.mjs +3 -3
- package/dist/lib/node-esm/extraction/index.mjs.map +3 -3
- package/dist/lib/node-esm/index.mjs +239 -678
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +33 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/types/src/conversation/context.d.ts +74 -42
- package/dist/types/src/conversation/context.d.ts.map +1 -1
- package/dist/types/src/conversation/context.test.d.ts +2 -0
- package/dist/types/src/conversation/context.test.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +14 -14
- package/dist/types/src/conversation/conversation.d.ts.map +1 -1
- package/dist/types/src/conversation/conversation.test.d.ts +2 -0
- package/dist/types/src/conversation/conversation.test.d.ts.map +1 -0
- package/dist/types/src/errors.d.ts +12 -16
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +179 -178
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction.d.ts +285 -241
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/extraction/quotes.d.ts +2 -2
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/functions/services.d.ts +3 -3
- package/dist/types/src/functions/services.d.ts.map +1 -1
- package/dist/types/src/functions.test.d.ts +2 -0
- package/dist/types/src/functions.test.d.ts.map +1 -0
- package/dist/types/src/session/GenericToolkit.d.ts +1 -0
- package/dist/types/src/session/GenericToolkit.d.ts.map +1 -1
- package/dist/types/src/session/format.d.ts +3 -3
- package/dist/types/src/session/format.d.ts.map +1 -1
- package/dist/types/src/session/observer.d.ts +4 -3
- package/dist/types/src/session/observer.d.ts.map +1 -1
- package/dist/types/src/session/session.d.ts +14 -9
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +5 -6
- package/dist/types/src/session/toolkit.d.ts.map +1 -1
- package/dist/types/src/session/version-pin.d.ts +1 -1
- package/dist/types/src/session/version-pin.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/layer.d.ts +21 -0
- package/dist/types/src/testing/layer.d.ts.map +1 -0
- package/dist/types/src/types/artifact.d.ts +12 -3
- package/dist/types/src/types/artifact.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -29
- package/src/conversation/context.test.ts +46 -0
- package/src/conversation/context.ts +183 -65
- package/src/conversation/conversation.test.ts +65 -0
- package/src/conversation/conversation.ts +46 -49
- package/src/diff.test.ts +1 -1
- package/src/errors.ts +2 -2
- package/src/execution-graph.ts +2 -2
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +3 -3
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +1 -1
- package/src/extraction/extraction.ts +3 -3
- package/src/extraction/quotes.ts +3 -4
- package/src/functions/services.ts +28 -10
- package/src/functions.conversations.json +1 -0
- package/src/functions.test.ts +74 -0
- package/src/session/GenericToolkit.ts +1 -0
- package/src/session/format.test.ts +101 -38
- package/src/session/format.ts +11 -12
- package/src/session/observer.ts +3 -1
- package/src/session/session.conversations.json +1 -1
- package/src/session/session.test.ts +7 -13
- package/src/session/session.ts +33 -12
- package/src/session/toolkit.ts +13 -22
- package/src/session/version-pin.ts +2 -2
- package/src/testing/index.ts +5 -0
- package/src/testing/layer.ts +78 -0
- package/src/types/artifact.ts +18 -6
|
@@ -7,46 +7,47 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
|
|
|
7
7
|
readonly fallbackToRaw?: boolean | undefined;
|
|
8
8
|
} | undefined;
|
|
9
9
|
readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
10
|
-
id: string;
|
|
11
|
-
parentMessage?: string | undefined;
|
|
12
|
-
created: string;
|
|
13
|
-
sender: {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly parentMessage?: string | undefined;
|
|
12
|
+
readonly created: string;
|
|
13
|
+
readonly sender: {
|
|
14
14
|
name?: string | undefined;
|
|
15
15
|
role?: "user" | "assistant" | "tool" | undefined;
|
|
16
16
|
contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
17
|
-
image?: string | undefined;
|
|
18
|
-
fullName?: string | undefined;
|
|
19
|
-
preferredName?: string | undefined;
|
|
20
|
-
nickname?: string | undefined;
|
|
21
|
-
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
22
|
-
description?: string | undefined;
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
25
|
-
image?: string | undefined;
|
|
26
|
-
website?: string | undefined;
|
|
27
|
-
|
|
17
|
+
readonly image?: string | undefined;
|
|
18
|
+
readonly fullName?: string | undefined;
|
|
19
|
+
readonly preferredName?: string | undefined;
|
|
20
|
+
readonly nickname?: string | undefined;
|
|
21
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
22
|
+
readonly description?: string | undefined;
|
|
23
|
+
readonly name?: string | undefined;
|
|
24
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
25
|
+
readonly image?: string | undefined;
|
|
26
|
+
readonly website?: string | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
28
29
|
}> | undefined;
|
|
29
|
-
jobTitle?: string | undefined;
|
|
30
|
-
department?: string | undefined;
|
|
31
|
-
notes?: string | undefined;
|
|
32
|
-
emails?: {
|
|
30
|
+
readonly jobTitle?: string | undefined;
|
|
31
|
+
readonly department?: string | undefined;
|
|
32
|
+
readonly notes?: string | undefined;
|
|
33
|
+
readonly emails?: {
|
|
33
34
|
readonly value: string;
|
|
34
35
|
readonly label?: string | undefined;
|
|
35
36
|
}[] | undefined;
|
|
36
|
-
identities?: {
|
|
37
|
+
readonly identities?: {
|
|
37
38
|
readonly value: string;
|
|
38
39
|
readonly label?: string | undefined;
|
|
39
40
|
}[] | undefined;
|
|
40
|
-
phoneNumbers?: {
|
|
41
|
+
readonly phoneNumbers?: {
|
|
41
42
|
readonly value: string;
|
|
42
43
|
readonly label?: string | undefined;
|
|
43
44
|
}[] | undefined;
|
|
44
|
-
fields?: {
|
|
45
|
+
readonly fields?: {
|
|
45
46
|
readonly value: string;
|
|
46
47
|
readonly label: string;
|
|
47
48
|
readonly category?: string | undefined;
|
|
48
49
|
}[] | undefined;
|
|
49
|
-
addresses?: {
|
|
50
|
+
readonly addresses?: {
|
|
50
51
|
readonly value: {
|
|
51
52
|
readonly street?: string | undefined;
|
|
52
53
|
readonly extended?: string | undefined;
|
|
@@ -58,75 +59,49 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
|
|
|
58
59
|
};
|
|
59
60
|
readonly label?: string | undefined;
|
|
60
61
|
}[] | undefined;
|
|
61
|
-
urls?: {
|
|
62
|
+
readonly urls?: {
|
|
62
63
|
readonly value: string;
|
|
63
64
|
readonly label?: string | undefined;
|
|
64
65
|
}[] | undefined;
|
|
65
|
-
birthday?: string | undefined;
|
|
66
|
-
|
|
66
|
+
readonly birthday?: string | undefined;
|
|
67
|
+
} & {
|
|
68
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
67
69
|
}> | undefined;
|
|
68
70
|
identityDid?: string | undefined;
|
|
69
71
|
identityKey?: string | undefined;
|
|
70
72
|
email?: string | undefined;
|
|
71
73
|
};
|
|
72
|
-
blocks: ({
|
|
73
|
-
version: unknown;
|
|
74
|
-
_tag: "anchor";
|
|
75
|
-
pending?: boolean | undefined;
|
|
76
|
-
objectId: string;
|
|
77
|
-
} | {
|
|
78
|
-
_tag: "file";
|
|
74
|
+
readonly blocks: ({
|
|
79
75
|
pending?: boolean | undefined;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
mediaType?: string | undefined;
|
|
83
|
-
} | {
|
|
84
|
-
id?: string | undefined;
|
|
85
|
-
_tag: "image";
|
|
86
|
-
pending?: boolean | undefined;
|
|
87
|
-
source?: {
|
|
88
|
-
mediaType: string;
|
|
89
|
-
type: "base64";
|
|
90
|
-
data: string;
|
|
91
|
-
} | {
|
|
92
|
-
url: string;
|
|
93
|
-
type: "http";
|
|
94
|
-
} | undefined;
|
|
95
|
-
} | {
|
|
96
|
-
_tag: "json";
|
|
97
|
-
pending?: boolean | undefined;
|
|
98
|
-
data: string;
|
|
76
|
+
text: string;
|
|
77
|
+
mimeType?: string | undefined;
|
|
99
78
|
disposition?: string | undefined;
|
|
79
|
+
_tag: "text";
|
|
100
80
|
} | {
|
|
101
|
-
text: string;
|
|
102
|
-
_tag: "proposal";
|
|
103
81
|
pending?: boolean | undefined;
|
|
104
|
-
} | {
|
|
105
82
|
_tag: "reasoning";
|
|
106
|
-
pending?: boolean | undefined;
|
|
107
83
|
reasoningText?: string | undefined;
|
|
108
84
|
redactedText?: string | undefined;
|
|
109
85
|
signature?: string | undefined;
|
|
110
86
|
} | {
|
|
111
|
-
|
|
112
|
-
_tag: "reference";
|
|
113
|
-
pending?: boolean | undefined;
|
|
114
|
-
} | {
|
|
115
|
-
_tag: "select";
|
|
116
|
-
pending?: boolean | undefined;
|
|
117
|
-
options: readonly string[];
|
|
118
|
-
} | {
|
|
119
|
-
_tag: "status";
|
|
87
|
+
name: string;
|
|
120
88
|
pending?: boolean | undefined;
|
|
121
|
-
|
|
89
|
+
_tag: "toolCall";
|
|
90
|
+
toolCallId: string;
|
|
91
|
+
input: string;
|
|
92
|
+
providerExecuted: boolean;
|
|
122
93
|
} | {
|
|
123
|
-
|
|
124
|
-
_tag: "suggestion";
|
|
94
|
+
name: string;
|
|
125
95
|
pending?: boolean | undefined;
|
|
96
|
+
_tag: "toolResult";
|
|
97
|
+
toolCallId: string;
|
|
98
|
+
providerExecuted: boolean;
|
|
99
|
+
result?: string | undefined;
|
|
100
|
+
error?: string | undefined;
|
|
126
101
|
} | {
|
|
127
|
-
_tag: "summary";
|
|
128
102
|
pending?: boolean | undefined;
|
|
129
103
|
mimeType?: string | undefined;
|
|
104
|
+
_tag: "summary";
|
|
130
105
|
message?: string | undefined;
|
|
131
106
|
model?: string | undefined;
|
|
132
107
|
usage?: {
|
|
@@ -138,85 +113,110 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
|
|
|
138
113
|
errors?: number | undefined;
|
|
139
114
|
duration?: number | undefined;
|
|
140
115
|
} | {
|
|
116
|
+
source?: {
|
|
117
|
+
type: "base64";
|
|
118
|
+
mediaType: string;
|
|
119
|
+
data: string;
|
|
120
|
+
} | {
|
|
121
|
+
type: "http";
|
|
122
|
+
url: string;
|
|
123
|
+
} | undefined;
|
|
124
|
+
id?: string | undefined;
|
|
125
|
+
pending?: boolean | undefined;
|
|
126
|
+
_tag: "image";
|
|
127
|
+
} | {
|
|
128
|
+
name?: string | undefined;
|
|
129
|
+
pending?: boolean | undefined;
|
|
130
|
+
_tag: "file";
|
|
131
|
+
mediaType?: string | undefined;
|
|
132
|
+
url: string;
|
|
133
|
+
} | {
|
|
134
|
+
pending?: boolean | undefined;
|
|
135
|
+
_tag: "reference";
|
|
136
|
+
reference: import("@dxos/echo/internal").Ref<any>;
|
|
137
|
+
} | {
|
|
138
|
+
pending?: boolean | undefined;
|
|
141
139
|
text: string;
|
|
142
|
-
_tag: "
|
|
140
|
+
_tag: "transcript";
|
|
141
|
+
started: string;
|
|
142
|
+
} | {
|
|
143
143
|
pending?: boolean | undefined;
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
_tag: "status";
|
|
145
|
+
statusText: string;
|
|
146
146
|
} | {
|
|
147
|
-
_tag: "toolkit";
|
|
148
147
|
pending?: boolean | undefined;
|
|
148
|
+
text: string;
|
|
149
|
+
_tag: "suggestion";
|
|
149
150
|
} | {
|
|
150
|
-
_tag: "toolCall";
|
|
151
151
|
pending?: boolean | undefined;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
input: string;
|
|
155
|
-
providerExecuted: boolean;
|
|
152
|
+
_tag: "select";
|
|
153
|
+
options: string[];
|
|
156
154
|
} | {
|
|
157
|
-
|
|
155
|
+
version: unknown;
|
|
158
156
|
pending?: boolean | undefined;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
providerExecuted: boolean;
|
|
162
|
-
result?: string | undefined;
|
|
163
|
-
error?: string | undefined;
|
|
157
|
+
_tag: "anchor";
|
|
158
|
+
objectId: string;
|
|
164
159
|
} | {
|
|
160
|
+
pending?: boolean | undefined;
|
|
165
161
|
text: string;
|
|
166
|
-
_tag: "
|
|
162
|
+
_tag: "proposal";
|
|
163
|
+
} | {
|
|
167
164
|
pending?: boolean | undefined;
|
|
168
|
-
|
|
165
|
+
_tag: "toolkit";
|
|
166
|
+
} | {
|
|
167
|
+
pending?: boolean | undefined;
|
|
168
|
+
disposition?: string | undefined;
|
|
169
|
+
_tag: "json";
|
|
170
|
+
data: string;
|
|
169
171
|
})[];
|
|
170
|
-
properties?: {
|
|
172
|
+
readonly properties?: {
|
|
171
173
|
[x: string]: any;
|
|
172
174
|
} | undefined;
|
|
173
175
|
};
|
|
174
|
-
readonly objects?: readonly
|
|
175
|
-
[x: string]: any;
|
|
176
|
-
id: import("@dxos/keys").ObjectId;
|
|
177
|
-
})[] | undefined;
|
|
176
|
+
readonly objects?: readonly any[] | undefined;
|
|
178
177
|
}, {
|
|
179
178
|
readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
180
|
-
id: string;
|
|
181
|
-
parentMessage?: string | undefined;
|
|
182
|
-
created: string;
|
|
183
|
-
sender: {
|
|
179
|
+
readonly id: string;
|
|
180
|
+
readonly parentMessage?: string | undefined;
|
|
181
|
+
readonly created: string;
|
|
182
|
+
readonly sender: {
|
|
184
183
|
name?: string | undefined;
|
|
185
184
|
role?: "user" | "assistant" | "tool" | undefined;
|
|
186
185
|
contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
187
|
-
image?: string | undefined;
|
|
188
|
-
fullName?: string | undefined;
|
|
189
|
-
preferredName?: string | undefined;
|
|
190
|
-
nickname?: string | undefined;
|
|
191
|
-
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
192
|
-
description?: string | undefined;
|
|
193
|
-
name?: string | undefined;
|
|
194
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
195
|
-
image?: string | undefined;
|
|
196
|
-
website?: string | undefined;
|
|
197
|
-
|
|
186
|
+
readonly image?: string | undefined;
|
|
187
|
+
readonly fullName?: string | undefined;
|
|
188
|
+
readonly preferredName?: string | undefined;
|
|
189
|
+
readonly nickname?: string | undefined;
|
|
190
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
191
|
+
readonly description?: string | undefined;
|
|
192
|
+
readonly name?: string | undefined;
|
|
193
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
194
|
+
readonly image?: string | undefined;
|
|
195
|
+
readonly website?: string | undefined;
|
|
196
|
+
} & {
|
|
197
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
198
198
|
}> | undefined;
|
|
199
|
-
jobTitle?: string | undefined;
|
|
200
|
-
department?: string | undefined;
|
|
201
|
-
notes?: string | undefined;
|
|
202
|
-
emails?: {
|
|
199
|
+
readonly jobTitle?: string | undefined;
|
|
200
|
+
readonly department?: string | undefined;
|
|
201
|
+
readonly notes?: string | undefined;
|
|
202
|
+
readonly emails?: {
|
|
203
203
|
readonly value: string;
|
|
204
204
|
readonly label?: string | undefined;
|
|
205
205
|
}[] | undefined;
|
|
206
|
-
identities?: {
|
|
206
|
+
readonly identities?: {
|
|
207
207
|
readonly value: string;
|
|
208
208
|
readonly label?: string | undefined;
|
|
209
209
|
}[] | undefined;
|
|
210
|
-
phoneNumbers?: {
|
|
210
|
+
readonly phoneNumbers?: {
|
|
211
211
|
readonly value: string;
|
|
212
212
|
readonly label?: string | undefined;
|
|
213
213
|
}[] | undefined;
|
|
214
|
-
fields?: {
|
|
214
|
+
readonly fields?: {
|
|
215
215
|
readonly value: string;
|
|
216
216
|
readonly label: string;
|
|
217
217
|
readonly category?: string | undefined;
|
|
218
218
|
}[] | undefined;
|
|
219
|
-
addresses?: {
|
|
219
|
+
readonly addresses?: {
|
|
220
220
|
readonly value: {
|
|
221
221
|
readonly street?: string | undefined;
|
|
222
222
|
readonly extended?: string | undefined;
|
|
@@ -228,75 +228,49 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
|
|
|
228
228
|
};
|
|
229
229
|
readonly label?: string | undefined;
|
|
230
230
|
}[] | undefined;
|
|
231
|
-
urls?: {
|
|
231
|
+
readonly urls?: {
|
|
232
232
|
readonly value: string;
|
|
233
233
|
readonly label?: string | undefined;
|
|
234
234
|
}[] | undefined;
|
|
235
|
-
birthday?: string | undefined;
|
|
236
|
-
|
|
235
|
+
readonly birthday?: string | undefined;
|
|
236
|
+
} & {
|
|
237
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
237
238
|
}> | undefined;
|
|
238
239
|
identityDid?: string | undefined;
|
|
239
240
|
identityKey?: string | undefined;
|
|
240
241
|
email?: string | undefined;
|
|
241
242
|
};
|
|
242
|
-
blocks: ({
|
|
243
|
-
version: unknown;
|
|
244
|
-
_tag: "anchor";
|
|
245
|
-
pending?: boolean | undefined;
|
|
246
|
-
objectId: string;
|
|
247
|
-
} | {
|
|
248
|
-
_tag: "file";
|
|
243
|
+
readonly blocks: ({
|
|
249
244
|
pending?: boolean | undefined;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
mediaType?: string | undefined;
|
|
253
|
-
} | {
|
|
254
|
-
id?: string | undefined;
|
|
255
|
-
_tag: "image";
|
|
256
|
-
pending?: boolean | undefined;
|
|
257
|
-
source?: {
|
|
258
|
-
mediaType: string;
|
|
259
|
-
type: "base64";
|
|
260
|
-
data: string;
|
|
261
|
-
} | {
|
|
262
|
-
url: string;
|
|
263
|
-
type: "http";
|
|
264
|
-
} | undefined;
|
|
265
|
-
} | {
|
|
266
|
-
_tag: "json";
|
|
267
|
-
pending?: boolean | undefined;
|
|
268
|
-
data: string;
|
|
245
|
+
text: string;
|
|
246
|
+
mimeType?: string | undefined;
|
|
269
247
|
disposition?: string | undefined;
|
|
248
|
+
_tag: "text";
|
|
270
249
|
} | {
|
|
271
|
-
text: string;
|
|
272
|
-
_tag: "proposal";
|
|
273
250
|
pending?: boolean | undefined;
|
|
274
|
-
} | {
|
|
275
251
|
_tag: "reasoning";
|
|
276
|
-
pending?: boolean | undefined;
|
|
277
252
|
reasoningText?: string | undefined;
|
|
278
253
|
redactedText?: string | undefined;
|
|
279
254
|
signature?: string | undefined;
|
|
280
255
|
} | {
|
|
281
|
-
|
|
282
|
-
_tag: "reference";
|
|
283
|
-
pending?: boolean | undefined;
|
|
284
|
-
} | {
|
|
285
|
-
_tag: "select";
|
|
286
|
-
pending?: boolean | undefined;
|
|
287
|
-
options: readonly string[];
|
|
288
|
-
} | {
|
|
289
|
-
_tag: "status";
|
|
256
|
+
name: string;
|
|
290
257
|
pending?: boolean | undefined;
|
|
291
|
-
|
|
258
|
+
_tag: "toolCall";
|
|
259
|
+
toolCallId: string;
|
|
260
|
+
input: string;
|
|
261
|
+
providerExecuted: boolean;
|
|
292
262
|
} | {
|
|
293
|
-
|
|
294
|
-
_tag: "suggestion";
|
|
263
|
+
name: string;
|
|
295
264
|
pending?: boolean | undefined;
|
|
265
|
+
_tag: "toolResult";
|
|
266
|
+
toolCallId: string;
|
|
267
|
+
providerExecuted: boolean;
|
|
268
|
+
result?: string | undefined;
|
|
269
|
+
error?: string | undefined;
|
|
296
270
|
} | {
|
|
297
|
-
_tag: "summary";
|
|
298
271
|
pending?: boolean | undefined;
|
|
299
272
|
mimeType?: string | undefined;
|
|
273
|
+
_tag: "summary";
|
|
300
274
|
message?: string | undefined;
|
|
301
275
|
model?: string | undefined;
|
|
302
276
|
usage?: {
|
|
@@ -308,36 +282,63 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
|
|
|
308
282
|
errors?: number | undefined;
|
|
309
283
|
duration?: number | undefined;
|
|
310
284
|
} | {
|
|
285
|
+
source?: {
|
|
286
|
+
type: "base64";
|
|
287
|
+
mediaType: string;
|
|
288
|
+
data: string;
|
|
289
|
+
} | {
|
|
290
|
+
type: "http";
|
|
291
|
+
url: string;
|
|
292
|
+
} | undefined;
|
|
293
|
+
id?: string | undefined;
|
|
294
|
+
pending?: boolean | undefined;
|
|
295
|
+
_tag: "image";
|
|
296
|
+
} | {
|
|
297
|
+
name?: string | undefined;
|
|
298
|
+
pending?: boolean | undefined;
|
|
299
|
+
_tag: "file";
|
|
300
|
+
mediaType?: string | undefined;
|
|
301
|
+
url: string;
|
|
302
|
+
} | {
|
|
303
|
+
pending?: boolean | undefined;
|
|
304
|
+
_tag: "reference";
|
|
305
|
+
reference: import("@dxos/echo/internal").Ref<any>;
|
|
306
|
+
} | {
|
|
307
|
+
pending?: boolean | undefined;
|
|
311
308
|
text: string;
|
|
312
|
-
_tag: "
|
|
309
|
+
_tag: "transcript";
|
|
310
|
+
started: string;
|
|
311
|
+
} | {
|
|
313
312
|
pending?: boolean | undefined;
|
|
314
|
-
|
|
315
|
-
|
|
313
|
+
_tag: "status";
|
|
314
|
+
statusText: string;
|
|
316
315
|
} | {
|
|
317
|
-
_tag: "toolkit";
|
|
318
316
|
pending?: boolean | undefined;
|
|
317
|
+
text: string;
|
|
318
|
+
_tag: "suggestion";
|
|
319
319
|
} | {
|
|
320
|
-
_tag: "toolCall";
|
|
321
320
|
pending?: boolean | undefined;
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
input: string;
|
|
325
|
-
providerExecuted: boolean;
|
|
321
|
+
_tag: "select";
|
|
322
|
+
options: string[];
|
|
326
323
|
} | {
|
|
327
|
-
|
|
324
|
+
version: unknown;
|
|
328
325
|
pending?: boolean | undefined;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
providerExecuted: boolean;
|
|
332
|
-
result?: string | undefined;
|
|
333
|
-
error?: string | undefined;
|
|
326
|
+
_tag: "anchor";
|
|
327
|
+
objectId: string;
|
|
334
328
|
} | {
|
|
329
|
+
pending?: boolean | undefined;
|
|
335
330
|
text: string;
|
|
336
|
-
_tag: "
|
|
331
|
+
_tag: "proposal";
|
|
332
|
+
} | {
|
|
337
333
|
pending?: boolean | undefined;
|
|
338
|
-
|
|
334
|
+
_tag: "toolkit";
|
|
335
|
+
} | {
|
|
336
|
+
pending?: boolean | undefined;
|
|
337
|
+
disposition?: string | undefined;
|
|
338
|
+
_tag: "json";
|
|
339
|
+
data: string;
|
|
339
340
|
})[];
|
|
340
|
-
properties?: {
|
|
341
|
+
readonly properties?: {
|
|
341
342
|
[x: string]: any;
|
|
342
343
|
} | undefined;
|
|
343
344
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAQA;;GAEG;AAEH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"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"}
|