@dxos/assistant 0.8.4-main.67995b8 → 0.8.4-main.a4bbb77
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-ILL2CN3G.mjs +374 -0
- package/dist/lib/browser/chunk-ILL2CN3G.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6WRGDEMH.mjs → chunk-UB26N5UF.mjs} +2 -2
- package/dist/lib/browser/chunk-UB26N5UF.mjs.map +7 -0
- package/dist/lib/browser/extraction/index.mjs +32 -29
- package/dist/lib/browser/extraction/index.mjs.map +4 -4
- package/dist/lib/browser/index.mjs +682 -1035
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{named-entity-recognition-O46UTCLR.mjs → named-entity-recognition-QPYHML66.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-3UU5V4FS.mjs → chunk-BCFXTNSK.mjs} +2 -2
- package/dist/lib/node-esm/chunk-BCFXTNSK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-GVKA7VL3.mjs +376 -0
- package/dist/lib/node-esm/chunk-GVKA7VL3.mjs.map +7 -0
- package/dist/lib/node-esm/extraction/index.mjs +32 -29
- package/dist/lib/node-esm/extraction/index.mjs.map +4 -4
- package/dist/lib/node-esm/index.mjs +682 -1035
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{named-entity-recognition-W4VMRCH6.mjs → named-entity-recognition-2HDF46YX.mjs} +2 -2
- package/dist/types/src/{context/binding.d.ts → conversation/context.d.ts} +45 -3
- package/dist/types/src/conversation/context.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +24 -21
- package/dist/types/src/conversation/conversation.d.ts.map +1 -1
- package/dist/types/src/conversation/index.d.ts +1 -0
- package/dist/types/src/conversation/index.d.ts.map +1 -1
- package/dist/types/src/diff.d.ts +15 -0
- package/dist/types/src/diff.d.ts.map +1 -0
- package/dist/types/src/diff.test.d.ts +2 -0
- package/dist/types/src/diff.test.d.ts.map +1 -0
- package/dist/types/src/errors.d.ts +46 -9
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/execution-graph.d.ts +82 -0
- package/dist/types/src/execution-graph.d.ts.map +1 -0
- package/dist/types/src/execution-graph.test.d.ts +2 -0
- package/dist/types/src/execution-graph.test.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +1 -1
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +94 -55
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.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 +250 -216
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/functions/services.d.ts +15 -3
- package/dist/types/src/functions/services.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/session/artifact-diff.d.ts +27 -0
- package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
- package/dist/types/src/session/error-handling.d.ts +4 -0
- package/dist/types/src/session/error-handling.d.ts.map +1 -0
- package/dist/types/src/session/format.d.ts +184 -0
- package/dist/types/src/session/format.d.ts.map +1 -0
- package/dist/types/src/session/format.test.d.ts +2 -0
- package/dist/types/src/session/format.test.d.ts.map +1 -0
- package/dist/types/src/session/index.d.ts +3 -0
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/observer.d.ts +22 -0
- package/dist/types/src/session/observer.d.ts.map +1 -0
- package/dist/types/src/session/session.d.ts +23 -236
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +14 -0
- package/dist/types/src/session/toolkit.d.ts.map +1 -0
- package/dist/types/src/session/version-pin.d.ts +2 -2
- package/dist/types/src/session/version-pin.d.ts.map +1 -1
- package/dist/types/src/templates/index.d.ts +1 -1
- package/dist/types/src/templates/system.d.ts +18 -0
- package/dist/types/src/templates/system.d.ts.map +1 -0
- package/dist/types/src/types.d.ts +3 -0
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +34 -33
- package/src/conversation/context.ts +154 -0
- package/src/conversation/conversation.ts +76 -53
- package/src/conversation/index.ts +1 -0
- package/src/diff.test.ts +43 -0
- package/src/diff.ts +79 -0
- package/src/errors.ts +6 -1
- package/src/execution-graph.test.ts +738 -0
- package/src/execution-graph.ts +500 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +8 -7
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +12 -10
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +9 -9
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +13 -6
- package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +2 -1
- package/src/extraction/extraction-ner-function/named-entity-recognition.ts +2 -0
- package/src/extraction/quotes.test.ts +3 -3
- package/src/extraction/quotes.ts +2 -2
- package/src/functions/services.ts +97 -43
- package/src/index.ts +3 -2
- package/src/session/artifact-diff.ts +41 -0
- package/src/session/error-handling.ts +40 -0
- package/src/session/format.test.ts +60 -0
- package/src/session/format.ts +139 -0
- package/src/session/index.ts +3 -0
- package/src/session/observer.ts +58 -0
- package/src/session/session.conversations.json +1 -0
- package/src/session/session.test.ts +33 -197
- package/src/session/session.ts +119 -249
- package/src/session/toolkit.ts +46 -0
- package/src/session/version-pin.ts +4 -4
- package/src/summarization/summarization.test.ts +9 -7
- package/src/templates/format.tpl +60 -0
- package/src/templates/index.ts +1 -1
- package/src/templates/system.tpl +48 -0
- package/src/templates/system.ts +41 -0
- package/src/types.ts +10 -5
- package/src/typings.d.ts +5 -0
- package/dist/lib/browser/chunk-6WRGDEMH.mjs.map +0 -7
- package/dist/lib/browser/chunk-SIXTNSGV.mjs +0 -250
- package/dist/lib/browser/chunk-SIXTNSGV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3UU5V4FS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FD5NXKDP.mjs +0 -252
- package/dist/lib/node-esm/chunk-FD5NXKDP.mjs.map +0 -7
- package/dist/types/bin/chat.d.ts +0 -2
- package/dist/types/bin/chat.d.ts.map +0 -1
- package/dist/types/src/context/binder.d.ts +0 -34
- package/dist/types/src/context/binder.d.ts.map +0 -1
- package/dist/types/src/context/binding.d.ts.map +0 -1
- package/dist/types/src/context/index.d.ts +0 -3
- package/dist/types/src/context/index.d.ts.map +0 -1
- package/dist/types/src/research/exa.d.ts +0 -12
- package/dist/types/src/research/exa.d.ts.map +0 -1
- package/dist/types/src/research/graph.d.ts +0 -51
- package/dist/types/src/research/graph.d.ts.map +0 -1
- package/dist/types/src/research/graph.test.d.ts +0 -2
- package/dist/types/src/research/graph.test.d.ts.map +0 -1
- package/dist/types/src/research/index.d.ts +0 -4
- package/dist/types/src/research/index.d.ts.map +0 -1
- package/dist/types/src/research/research.d.ts +0 -10
- package/dist/types/src/research/research.d.ts.map +0 -1
- package/dist/types/src/research/research.test.d.ts +0 -2
- package/dist/types/src/research/research.test.d.ts.map +0 -1
- package/dist/types/src/session/version-pin.test.d.ts +0 -2
- package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
- package/dist/types/src/templates/prompt.d.ts +0 -30
- package/dist/types/src/templates/prompt.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
- package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
- package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
- package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/testing/index.d.ts +0 -3
- package/dist/types/src/testing/index.d.ts.map +0 -1
- package/src/context/binder.ts +0 -103
- package/src/context/binding.ts +0 -32
- package/src/context/index.ts +0 -6
- package/src/research/exa.ts +0 -97
- package/src/research/graph.test.ts +0 -64
- package/src/research/graph.ts +0 -369
- package/src/research/index.ts +0 -7
- package/src/research/instructions-research.tpl +0 -98
- package/src/research/research.test.ts +0 -190
- package/src/research/research.ts +0 -87
- package/src/session/__snapshots__/session.test.ts.snap +0 -32
- package/src/session/version-pin.test.ts +0 -7
- package/src/templates/assistant.tpl +0 -111
- package/src/templates/prompt.ts +0 -45
- package/src/testing/exa-search-1748337321991.ts +0 -131
- package/src/testing/exa-search-1748337331526.ts +0 -144
- package/src/testing/exa-search-1748337344119.ts +0 -133
- package/src/testing/index.ts +0 -11
- package/src/typedefs.d.ts +0 -8
- /package/dist/lib/browser/{named-entity-recognition-O46UTCLR.mjs.map → named-entity-recognition-QPYHML66.mjs.map} +0 -0
- /package/dist/lib/node-esm/{named-entity-recognition-W4VMRCH6.mjs.map → named-entity-recognition-2HDF46YX.mjs.map} +0 -0
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Named Entity Recognition model
|
|
3
|
+
*/
|
|
4
|
+
export declare const extractionNerFunction: import("@dxos/functions").FunctionDefinition<{
|
|
5
|
+
readonly options?: {
|
|
6
|
+
readonly timeout?: number | undefined;
|
|
7
|
+
readonly fallbackToRaw?: boolean | undefined;
|
|
8
|
+
} | undefined;
|
|
2
9
|
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
3
10
|
id: string;
|
|
11
|
+
parentMessage?: string | undefined;
|
|
4
12
|
created: string;
|
|
5
13
|
sender: {
|
|
6
|
-
name?: string | undefined;
|
|
7
|
-
email?: string | undefined;
|
|
8
14
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
9
|
-
fields?: {
|
|
10
|
-
readonly value: string;
|
|
11
|
-
readonly category?: string | undefined;
|
|
12
|
-
readonly label: string;
|
|
13
|
-
}[] | undefined;
|
|
14
|
-
image?: string | undefined;
|
|
15
15
|
fullName?: string | undefined;
|
|
16
16
|
preferredName?: string | undefined;
|
|
17
17
|
nickname?: string | undefined;
|
|
18
|
+
image?: string | undefined;
|
|
18
19
|
organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
19
20
|
id: string;
|
|
20
|
-
name?: string | undefined;
|
|
21
21
|
description?: string | undefined;
|
|
22
|
+
name?: string | undefined;
|
|
22
23
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
23
24
|
image?: string | undefined;
|
|
24
25
|
website?: string | undefined;
|
|
@@ -27,18 +28,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
27
28
|
department?: string | undefined;
|
|
28
29
|
notes?: string | undefined;
|
|
29
30
|
emails?: {
|
|
30
|
-
readonly value: string;
|
|
31
31
|
readonly label?: string | undefined;
|
|
32
|
+
readonly value: string;
|
|
32
33
|
}[] | undefined;
|
|
33
34
|
identities?: {
|
|
34
|
-
readonly value: string;
|
|
35
35
|
readonly label?: string | undefined;
|
|
36
|
+
readonly value: string;
|
|
36
37
|
}[] | undefined;
|
|
37
38
|
phoneNumbers?: {
|
|
38
|
-
readonly value: string;
|
|
39
39
|
readonly label?: string | undefined;
|
|
40
|
+
readonly value: string;
|
|
40
41
|
}[] | undefined;
|
|
41
42
|
addresses?: {
|
|
43
|
+
readonly label?: string | undefined;
|
|
42
44
|
readonly value: {
|
|
43
45
|
readonly street?: string | undefined;
|
|
44
46
|
readonly extended?: string | undefined;
|
|
@@ -48,17 +50,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
48
50
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
49
51
|
readonly country?: string | undefined;
|
|
50
52
|
};
|
|
51
|
-
readonly label?: string | undefined;
|
|
52
53
|
}[] | undefined;
|
|
53
54
|
urls?: {
|
|
54
|
-
readonly value: string;
|
|
55
55
|
readonly label?: string | undefined;
|
|
56
|
+
readonly value: string;
|
|
56
57
|
}[] | undefined;
|
|
57
58
|
birthday?: string | undefined;
|
|
59
|
+
fields?: {
|
|
60
|
+
readonly label: string;
|
|
61
|
+
readonly value: string;
|
|
62
|
+
readonly category?: string | undefined;
|
|
63
|
+
}[] | undefined;
|
|
58
64
|
}> | undefined;
|
|
59
65
|
identityDid?: string | undefined;
|
|
60
66
|
identityKey?: string | undefined;
|
|
61
|
-
|
|
67
|
+
email?: string | undefined;
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
role?: "user" | "assistant" | "tool" | undefined;
|
|
62
70
|
};
|
|
63
71
|
blocks: ({
|
|
64
72
|
version: unknown;
|
|
@@ -73,16 +81,16 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
73
81
|
mediaType?: string | undefined;
|
|
74
82
|
} | {
|
|
75
83
|
id?: string | undefined;
|
|
84
|
+
_tag: "image";
|
|
85
|
+
pending?: boolean | undefined;
|
|
76
86
|
source?: {
|
|
77
|
-
type: "base64";
|
|
78
87
|
mediaType: string;
|
|
88
|
+
type: "base64";
|
|
79
89
|
data: string;
|
|
80
90
|
} | {
|
|
81
|
-
type: "http";
|
|
82
91
|
url: string;
|
|
92
|
+
type: "http";
|
|
83
93
|
} | undefined;
|
|
84
|
-
_tag: "image";
|
|
85
|
-
pending?: boolean | undefined;
|
|
86
94
|
} | {
|
|
87
95
|
_tag: "json";
|
|
88
96
|
pending?: boolean | undefined;
|
|
@@ -112,29 +120,46 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
112
120
|
statusText: string;
|
|
113
121
|
} | {
|
|
114
122
|
text: string;
|
|
115
|
-
_tag: "
|
|
123
|
+
_tag: "suggestion";
|
|
124
|
+
pending?: boolean | undefined;
|
|
125
|
+
} | {
|
|
126
|
+
_tag: "summary";
|
|
116
127
|
pending?: boolean | undefined;
|
|
128
|
+
mimeType?: string | undefined;
|
|
129
|
+
message?: string | undefined;
|
|
130
|
+
model?: string | undefined;
|
|
131
|
+
usage?: {
|
|
132
|
+
readonly inputTokens?: number | undefined;
|
|
133
|
+
readonly outputTokens?: number | undefined;
|
|
134
|
+
readonly totalTokens?: number | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
toolCalls?: number | undefined;
|
|
137
|
+
errors?: number | undefined;
|
|
138
|
+
duration?: number | undefined;
|
|
117
139
|
} | {
|
|
118
140
|
text: string;
|
|
119
141
|
_tag: "text";
|
|
120
142
|
pending?: boolean | undefined;
|
|
121
143
|
disposition?: string | undefined;
|
|
122
144
|
mimeType?: string | undefined;
|
|
145
|
+
} | {
|
|
146
|
+
_tag: "toolkit";
|
|
147
|
+
pending?: boolean | undefined;
|
|
123
148
|
} | {
|
|
124
149
|
name: string;
|
|
125
|
-
input: unknown;
|
|
126
150
|
_tag: "toolCall";
|
|
127
151
|
pending?: boolean | undefined;
|
|
128
152
|
toolCallId: string;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
pending?: boolean | undefined;
|
|
153
|
+
input: string;
|
|
154
|
+
providerExecuted: boolean;
|
|
132
155
|
} | {
|
|
133
156
|
name: string;
|
|
134
157
|
_tag: "toolResult";
|
|
135
158
|
pending?: boolean | undefined;
|
|
136
159
|
toolCallId: string;
|
|
137
|
-
|
|
160
|
+
providerExecuted: boolean;
|
|
161
|
+
result?: string | undefined;
|
|
162
|
+
error?: string | undefined;
|
|
138
163
|
} | {
|
|
139
164
|
text: string;
|
|
140
165
|
_tag: "transcript";
|
|
@@ -146,31 +171,21 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
146
171
|
} | undefined;
|
|
147
172
|
};
|
|
148
173
|
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
149
|
-
readonly options?: {
|
|
150
|
-
readonly timeout?: number | undefined;
|
|
151
|
-
readonly fallbackToRaw?: boolean | undefined;
|
|
152
|
-
} | undefined;
|
|
153
174
|
}, {
|
|
154
175
|
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
155
176
|
id: string;
|
|
177
|
+
parentMessage?: string | undefined;
|
|
156
178
|
created: string;
|
|
157
179
|
sender: {
|
|
158
|
-
name?: string | undefined;
|
|
159
|
-
email?: string | undefined;
|
|
160
180
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
161
|
-
fields?: {
|
|
162
|
-
readonly value: string;
|
|
163
|
-
readonly category?: string | undefined;
|
|
164
|
-
readonly label: string;
|
|
165
|
-
}[] | undefined;
|
|
166
|
-
image?: string | undefined;
|
|
167
181
|
fullName?: string | undefined;
|
|
168
182
|
preferredName?: string | undefined;
|
|
169
183
|
nickname?: string | undefined;
|
|
184
|
+
image?: string | undefined;
|
|
170
185
|
organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
171
186
|
id: string;
|
|
172
|
-
name?: string | undefined;
|
|
173
187
|
description?: string | undefined;
|
|
188
|
+
name?: string | undefined;
|
|
174
189
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
175
190
|
image?: string | undefined;
|
|
176
191
|
website?: string | undefined;
|
|
@@ -179,18 +194,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
179
194
|
department?: string | undefined;
|
|
180
195
|
notes?: string | undefined;
|
|
181
196
|
emails?: {
|
|
182
|
-
readonly value: string;
|
|
183
197
|
readonly label?: string | undefined;
|
|
198
|
+
readonly value: string;
|
|
184
199
|
}[] | undefined;
|
|
185
200
|
identities?: {
|
|
186
|
-
readonly value: string;
|
|
187
201
|
readonly label?: string | undefined;
|
|
202
|
+
readonly value: string;
|
|
188
203
|
}[] | undefined;
|
|
189
204
|
phoneNumbers?: {
|
|
190
|
-
readonly value: string;
|
|
191
205
|
readonly label?: string | undefined;
|
|
206
|
+
readonly value: string;
|
|
192
207
|
}[] | undefined;
|
|
193
208
|
addresses?: {
|
|
209
|
+
readonly label?: string | undefined;
|
|
194
210
|
readonly value: {
|
|
195
211
|
readonly street?: string | undefined;
|
|
196
212
|
readonly extended?: string | undefined;
|
|
@@ -200,17 +216,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
200
216
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
201
217
|
readonly country?: string | undefined;
|
|
202
218
|
};
|
|
203
|
-
readonly label?: string | undefined;
|
|
204
219
|
}[] | undefined;
|
|
205
220
|
urls?: {
|
|
206
|
-
readonly value: string;
|
|
207
221
|
readonly label?: string | undefined;
|
|
222
|
+
readonly value: string;
|
|
208
223
|
}[] | undefined;
|
|
209
224
|
birthday?: string | undefined;
|
|
225
|
+
fields?: {
|
|
226
|
+
readonly label: string;
|
|
227
|
+
readonly value: string;
|
|
228
|
+
readonly category?: string | undefined;
|
|
229
|
+
}[] | undefined;
|
|
210
230
|
}> | undefined;
|
|
211
231
|
identityDid?: string | undefined;
|
|
212
232
|
identityKey?: string | undefined;
|
|
213
|
-
|
|
233
|
+
email?: string | undefined;
|
|
234
|
+
name?: string | undefined;
|
|
235
|
+
role?: "user" | "assistant" | "tool" | undefined;
|
|
214
236
|
};
|
|
215
237
|
blocks: ({
|
|
216
238
|
version: unknown;
|
|
@@ -225,16 +247,16 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
225
247
|
mediaType?: string | undefined;
|
|
226
248
|
} | {
|
|
227
249
|
id?: string | undefined;
|
|
250
|
+
_tag: "image";
|
|
251
|
+
pending?: boolean | undefined;
|
|
228
252
|
source?: {
|
|
229
|
-
type: "base64";
|
|
230
253
|
mediaType: string;
|
|
254
|
+
type: "base64";
|
|
231
255
|
data: string;
|
|
232
256
|
} | {
|
|
233
|
-
type: "http";
|
|
234
257
|
url: string;
|
|
258
|
+
type: "http";
|
|
235
259
|
} | undefined;
|
|
236
|
-
_tag: "image";
|
|
237
|
-
pending?: boolean | undefined;
|
|
238
260
|
} | {
|
|
239
261
|
_tag: "json";
|
|
240
262
|
pending?: boolean | undefined;
|
|
@@ -264,29 +286,46 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
264
286
|
statusText: string;
|
|
265
287
|
} | {
|
|
266
288
|
text: string;
|
|
267
|
-
_tag: "
|
|
289
|
+
_tag: "suggestion";
|
|
290
|
+
pending?: boolean | undefined;
|
|
291
|
+
} | {
|
|
292
|
+
_tag: "summary";
|
|
268
293
|
pending?: boolean | undefined;
|
|
294
|
+
mimeType?: string | undefined;
|
|
295
|
+
message?: string | undefined;
|
|
296
|
+
model?: string | undefined;
|
|
297
|
+
usage?: {
|
|
298
|
+
readonly inputTokens?: number | undefined;
|
|
299
|
+
readonly outputTokens?: number | undefined;
|
|
300
|
+
readonly totalTokens?: number | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
toolCalls?: number | undefined;
|
|
303
|
+
errors?: number | undefined;
|
|
304
|
+
duration?: number | undefined;
|
|
269
305
|
} | {
|
|
270
306
|
text: string;
|
|
271
307
|
_tag: "text";
|
|
272
308
|
pending?: boolean | undefined;
|
|
273
309
|
disposition?: string | undefined;
|
|
274
310
|
mimeType?: string | undefined;
|
|
311
|
+
} | {
|
|
312
|
+
_tag: "toolkit";
|
|
313
|
+
pending?: boolean | undefined;
|
|
275
314
|
} | {
|
|
276
315
|
name: string;
|
|
277
|
-
input: unknown;
|
|
278
316
|
_tag: "toolCall";
|
|
279
317
|
pending?: boolean | undefined;
|
|
280
318
|
toolCallId: string;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
pending?: boolean | undefined;
|
|
319
|
+
input: string;
|
|
320
|
+
providerExecuted: boolean;
|
|
284
321
|
} | {
|
|
285
322
|
name: string;
|
|
286
323
|
_tag: "toolResult";
|
|
287
324
|
pending?: boolean | undefined;
|
|
288
325
|
toolCallId: string;
|
|
289
|
-
|
|
326
|
+
providerExecuted: boolean;
|
|
327
|
+
result?: string | undefined;
|
|
328
|
+
error?: string | undefined;
|
|
290
329
|
} | {
|
|
291
330
|
text: string;
|
|
292
331
|
_tag: "transcript";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAiBA;;GAEG;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"named-entity-recognition.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/named-entity-recognition.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAE/B,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"named-entity-recognition.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/named-entity-recognition.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAE/B,MAAM,sBAAsB,CAAC;AAM9B;;;;GAIG;AACH,eAAO,MAAM,MAAM,gDASlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,yBAAyB,EAAE,CAM3F,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,yBAAyB,EAAE,KAAG,yBAAyB,EAAE,EAmClG,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,yBAAyB,EAAE,KAAG,yBAmBrE,CAAC"}
|