@dxos/assistant 0.8.3 → 0.8.4-main.1da679c
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-3K5SRE5A.mjs +404 -0
- package/dist/lib/browser/chunk-3K5SRE5A.mjs.map +7 -0
- package/dist/lib/browser/chunk-UB26N5UF.mjs +89 -0
- package/dist/lib/browser/chunk-UB26N5UF.mjs.map +7 -0
- package/dist/lib/browser/extraction/index.mjs +268 -0
- package/dist/lib/browser/extraction/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +412 -2101
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/named-entity-recognition-QPYHML66.mjs +13 -0
- package/dist/lib/browser/named-entity-recognition-QPYHML66.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BCFXTNSK.mjs +91 -0
- package/dist/lib/node-esm/chunk-BCFXTNSK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-W7AIB6DP.mjs +406 -0
- package/dist/lib/node-esm/chunk-W7AIB6DP.mjs.map +7 -0
- package/dist/lib/node-esm/extraction/index.mjs +269 -0
- package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +412 -2102
- 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-2HDF46YX.mjs +14 -0
- package/dist/lib/node-esm/named-entity-recognition-2HDF46YX.mjs.map +7 -0
- package/dist/types/src/conversation/context.d.ts +96 -0
- package/dist/types/src/conversation/context.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +42 -0
- package/dist/types/src/conversation/conversation.d.ts.map +1 -0
- package/dist/types/src/conversation/index.d.ts +3 -0
- package/dist/types/src/conversation/index.d.ts.map +1 -0
- 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 +75 -0
- package/dist/types/src/errors.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 +177 -48
- 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 +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 -162
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +2 -0
- package/dist/types/src/functions/index.d.ts.map +1 -0
- package/dist/types/src/functions/services.d.ts +7 -0
- package/dist/types/src/functions/services.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +5 -3
- 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 +182 -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 +32 -246
- 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 +4 -4
- package/dist/types/src/session/version-pin.d.ts.map +1 -1
- package/dist/types/src/templates/index.d.ts +2 -0
- package/dist/types/src/templates/index.d.ts.map +1 -0
- 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 +13 -0
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +48 -32
- package/src/conversation/context.ts +154 -0
- package/src/conversation/conversation.ts +123 -0
- package/src/conversation/index.ts +6 -0
- package/src/diff.test.ts +43 -0
- package/src/diff.ts +79 -0
- package/src/errors.ts +15 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +13 -24
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +25 -20
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +9 -9
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +15 -7
- package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +2 -2
- package/src/extraction/extraction-ner-function/named-entity-recognition.ts +3 -1
- package/src/extraction/quotes.test.ts +3 -3
- package/src/extraction/quotes.ts +2 -2
- package/src/functions/index.ts +5 -0
- package/src/functions/services.ts +119 -0
- package/src/index.ts +5 -3
- package/src/session/__snapshots__/session.test.ts.snap +32 -0
- package/src/session/artifact-diff.ts +41 -0
- package/src/session/error-handling.ts +39 -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.test.ts +98 -19
- package/src/session/session.ts +159 -507
- package/src/session/toolkit.ts +42 -0
- package/src/session/version-pin.test.ts +2 -21
- package/src/session/version-pin.ts +9 -9
- package/src/summarization/summarization.test.ts +82 -106
- package/src/templates/format.tpl +60 -0
- package/src/templates/index.ts +5 -0
- package/src/templates/system.tpl +48 -0
- package/src/templates/system.ts +41 -0
- package/src/types.ts +45 -1
- package/src/typings.d.ts +5 -0
- package/dist/lib/node/index.cjs +0 -2178
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/types/bin/chat.d.ts +0 -2
- package/dist/types/bin/chat.d.ts.map +0 -1
- package/dist/types/src/blueprint/ai.test.d.ts +0 -2
- package/dist/types/src/blueprint/ai.test.d.ts.map +0 -1
- package/dist/types/src/blueprint/blueprint.d.ts +0 -55
- package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprint/blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprint/blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprint/index.d.ts +0 -4
- package/dist/types/src/blueprint/index.d.ts.map +0 -1
- package/dist/types/src/blueprint/logger.d.ts +0 -25
- package/dist/types/src/blueprint/logger.d.ts.map +0 -1
- package/dist/types/src/blueprint/machine.d.ts +0 -143
- package/dist/types/src/blueprint/machine.d.ts.map +0 -1
- package/dist/types/src/blueprint/test-data.d.ts +0 -3
- package/dist/types/src/blueprint/test-data.d.ts.map +0 -1
- package/dist/types/src/research/exa.d.ts +0 -7
- package/dist/types/src/research/exa.d.ts.map +0 -1
- package/dist/types/src/research/graph.d.ts +0 -41
- 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/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/blueprint/ai.test.ts +0 -156
- package/src/blueprint/blueprint.test.ts +0 -151
- package/src/blueprint/blueprint.ts +0 -75
- package/src/blueprint/index.ts +0 -7
- package/src/blueprint/logger.ts +0 -155
- package/src/blueprint/machine.ts +0 -251
- package/src/blueprint/test-data.ts +0 -55
- package/src/research/exa.ts +0 -100
- package/src/research/graph.test.ts +0 -15
- package/src/research/graph.ts +0 -337
- package/src/research/index.ts +0 -7
- package/src/research/instructions-research.tpl +0 -97
- package/src/research/research.test.ts +0 -190
- package/src/research/research.ts +0 -89
- 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
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Named Entity Recognition model
|
|
3
|
+
*/
|
|
4
|
+
export declare const extractionNerFunction: import("@dxos/functions").FunctionDefinition<{
|
|
5
|
+
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
6
|
+
readonly options?: {
|
|
7
|
+
readonly timeout?: number | undefined;
|
|
8
|
+
readonly fallbackToRaw?: boolean | undefined;
|
|
9
|
+
} | undefined;
|
|
2
10
|
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
3
11
|
id: string;
|
|
12
|
+
parentMessage?: string | undefined;
|
|
4
13
|
created: string;
|
|
5
14
|
sender: {
|
|
6
15
|
name?: string | undefined;
|
|
7
|
-
email?: string | undefined;
|
|
8
|
-
role?: "user" | "assistant" | undefined;
|
|
9
16
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
17
|
+
fields?: {
|
|
18
|
+
readonly value: string;
|
|
19
|
+
readonly category?: string | undefined;
|
|
20
|
+
readonly label: string;
|
|
21
|
+
}[] | undefined;
|
|
10
22
|
image?: string | undefined;
|
|
11
23
|
fullName?: string | undefined;
|
|
12
24
|
preferredName?: string | undefined;
|
|
13
25
|
nickname?: string | undefined;
|
|
14
26
|
organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
15
|
-
description?: string | undefined;
|
|
16
27
|
id: string;
|
|
28
|
+
description?: string | undefined;
|
|
17
29
|
name?: string | undefined;
|
|
18
30
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
19
31
|
image?: string | undefined;
|
|
@@ -51,29 +63,25 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
51
63
|
readonly label?: string | undefined;
|
|
52
64
|
}[] | undefined;
|
|
53
65
|
birthday?: string | undefined;
|
|
54
|
-
fields?: {
|
|
55
|
-
readonly value: string;
|
|
56
|
-
readonly label: string;
|
|
57
|
-
readonly category?: string | undefined;
|
|
58
|
-
}[] | undefined;
|
|
59
66
|
}> | undefined;
|
|
60
67
|
identityDid?: string | undefined;
|
|
61
68
|
identityKey?: string | undefined;
|
|
69
|
+
email?: string | undefined;
|
|
70
|
+
role?: "user" | "assistant" | undefined;
|
|
62
71
|
};
|
|
63
72
|
blocks: ({
|
|
73
|
+
version: unknown;
|
|
74
|
+
_tag: "anchor";
|
|
64
75
|
pending?: boolean | undefined;
|
|
65
|
-
|
|
66
|
-
disposition?: string | undefined;
|
|
67
|
-
text: string;
|
|
76
|
+
objectId: string;
|
|
68
77
|
} | {
|
|
78
|
+
name?: string | undefined;
|
|
79
|
+
_tag: "file";
|
|
80
|
+
url: string;
|
|
69
81
|
pending?: boolean | undefined;
|
|
70
|
-
|
|
71
|
-
disposition?: string | undefined;
|
|
72
|
-
data: string;
|
|
82
|
+
mediaType?: string | undefined;
|
|
73
83
|
} | {
|
|
74
|
-
pending?: boolean | undefined;
|
|
75
84
|
id?: string | undefined;
|
|
76
|
-
type: "image";
|
|
77
85
|
source?: {
|
|
78
86
|
type: "base64";
|
|
79
87
|
mediaType: string;
|
|
@@ -82,41 +90,105 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
82
90
|
type: "http";
|
|
83
91
|
url: string;
|
|
84
92
|
} | undefined;
|
|
93
|
+
_tag: "image";
|
|
94
|
+
pending?: boolean | undefined;
|
|
95
|
+
} | {
|
|
96
|
+
_tag: "json";
|
|
97
|
+
pending?: boolean | undefined;
|
|
98
|
+
data: string;
|
|
99
|
+
disposition?: string | undefined;
|
|
100
|
+
} | {
|
|
101
|
+
text: string;
|
|
102
|
+
_tag: "proposal";
|
|
103
|
+
pending?: boolean | undefined;
|
|
85
104
|
} | {
|
|
105
|
+
_tag: "reasoning";
|
|
106
|
+
reasoningText?: string | undefined;
|
|
107
|
+
signature?: string | undefined;
|
|
108
|
+
redactedText?: string | undefined;
|
|
86
109
|
pending?: boolean | undefined;
|
|
87
|
-
|
|
110
|
+
} | {
|
|
111
|
+
_tag: "reference";
|
|
88
112
|
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
113
|
+
pending?: boolean | undefined;
|
|
89
114
|
} | {
|
|
115
|
+
_tag: "select";
|
|
90
116
|
pending?: boolean | undefined;
|
|
91
|
-
|
|
117
|
+
options: readonly string[];
|
|
118
|
+
} | {
|
|
119
|
+
_tag: "status";
|
|
120
|
+
pending?: boolean | undefined;
|
|
121
|
+
statusText: string;
|
|
122
|
+
} | {
|
|
92
123
|
text: string;
|
|
124
|
+
_tag: "suggestion";
|
|
125
|
+
pending?: boolean | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
_tag: "summary";
|
|
128
|
+
model?: string | undefined;
|
|
129
|
+
usage?: {
|
|
130
|
+
readonly inputTokens?: number | undefined;
|
|
131
|
+
readonly outputTokens?: number | undefined;
|
|
132
|
+
readonly totalTokens?: number | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
pending?: boolean | undefined;
|
|
135
|
+
mimeType?: string | undefined;
|
|
136
|
+
message?: string | undefined;
|
|
137
|
+
toolCalls?: number | undefined;
|
|
138
|
+
errors?: number | undefined;
|
|
139
|
+
duration?: number | undefined;
|
|
140
|
+
} | {
|
|
141
|
+
text: string;
|
|
142
|
+
_tag: "text";
|
|
143
|
+
pending?: boolean | undefined;
|
|
144
|
+
disposition?: string | undefined;
|
|
145
|
+
mimeType?: string | undefined;
|
|
146
|
+
} | {
|
|
147
|
+
_tag: "toolkit";
|
|
148
|
+
pending?: boolean | undefined;
|
|
149
|
+
} | {
|
|
150
|
+
name: string;
|
|
151
|
+
_tag: "toolCall";
|
|
152
|
+
pending?: boolean | undefined;
|
|
153
|
+
toolCallId: string;
|
|
154
|
+
input: string;
|
|
155
|
+
} | {
|
|
156
|
+
name: string;
|
|
157
|
+
_tag: "toolResult";
|
|
158
|
+
error?: string | undefined;
|
|
159
|
+
pending?: boolean | undefined;
|
|
160
|
+
toolCallId: string;
|
|
161
|
+
result?: string | undefined;
|
|
162
|
+
} | {
|
|
163
|
+
text: string;
|
|
164
|
+
_tag: "transcript";
|
|
165
|
+
pending?: boolean | undefined;
|
|
93
166
|
started: string;
|
|
94
167
|
})[];
|
|
95
168
|
properties?: {
|
|
96
169
|
[x: string]: any;
|
|
97
170
|
} | undefined;
|
|
98
171
|
};
|
|
99
|
-
readonly options?: {
|
|
100
|
-
readonly timeout?: number | undefined;
|
|
101
|
-
readonly fallbackToRaw?: boolean | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
104
172
|
}, {
|
|
105
|
-
message:
|
|
173
|
+
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
106
174
|
id: string;
|
|
175
|
+
parentMessage?: string | undefined;
|
|
107
176
|
created: string;
|
|
108
177
|
sender: {
|
|
109
178
|
name?: string | undefined;
|
|
110
|
-
email?: string | undefined;
|
|
111
|
-
role?: "user" | "assistant" | undefined;
|
|
112
179
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
180
|
+
fields?: {
|
|
181
|
+
readonly value: string;
|
|
182
|
+
readonly category?: string | undefined;
|
|
183
|
+
readonly label: string;
|
|
184
|
+
}[] | undefined;
|
|
113
185
|
image?: string | undefined;
|
|
114
186
|
fullName?: string | undefined;
|
|
115
187
|
preferredName?: string | undefined;
|
|
116
188
|
nickname?: string | undefined;
|
|
117
189
|
organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
118
|
-
description?: string | undefined;
|
|
119
190
|
id: string;
|
|
191
|
+
description?: string | undefined;
|
|
120
192
|
name?: string | undefined;
|
|
121
193
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
122
194
|
image?: string | undefined;
|
|
@@ -154,29 +226,25 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
154
226
|
readonly label?: string | undefined;
|
|
155
227
|
}[] | undefined;
|
|
156
228
|
birthday?: string | undefined;
|
|
157
|
-
fields?: {
|
|
158
|
-
readonly value: string;
|
|
159
|
-
readonly label: string;
|
|
160
|
-
readonly category?: string | undefined;
|
|
161
|
-
}[] | undefined;
|
|
162
229
|
}> | undefined;
|
|
163
230
|
identityDid?: string | undefined;
|
|
164
231
|
identityKey?: string | undefined;
|
|
232
|
+
email?: string | undefined;
|
|
233
|
+
role?: "user" | "assistant" | undefined;
|
|
165
234
|
};
|
|
166
235
|
blocks: ({
|
|
236
|
+
version: unknown;
|
|
237
|
+
_tag: "anchor";
|
|
167
238
|
pending?: boolean | undefined;
|
|
168
|
-
|
|
169
|
-
disposition?: string | undefined;
|
|
170
|
-
text: string;
|
|
239
|
+
objectId: string;
|
|
171
240
|
} | {
|
|
241
|
+
name?: string | undefined;
|
|
242
|
+
_tag: "file";
|
|
243
|
+
url: string;
|
|
172
244
|
pending?: boolean | undefined;
|
|
173
|
-
|
|
174
|
-
disposition?: string | undefined;
|
|
175
|
-
data: string;
|
|
245
|
+
mediaType?: string | undefined;
|
|
176
246
|
} | {
|
|
177
|
-
pending?: boolean | undefined;
|
|
178
247
|
id?: string | undefined;
|
|
179
|
-
type: "image";
|
|
180
248
|
source?: {
|
|
181
249
|
type: "base64";
|
|
182
250
|
mediaType: string;
|
|
@@ -185,24 +253,85 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
185
253
|
type: "http";
|
|
186
254
|
url: string;
|
|
187
255
|
} | undefined;
|
|
256
|
+
_tag: "image";
|
|
257
|
+
pending?: boolean | undefined;
|
|
258
|
+
} | {
|
|
259
|
+
_tag: "json";
|
|
260
|
+
pending?: boolean | undefined;
|
|
261
|
+
data: string;
|
|
262
|
+
disposition?: string | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
text: string;
|
|
265
|
+
_tag: "proposal";
|
|
266
|
+
pending?: boolean | undefined;
|
|
188
267
|
} | {
|
|
268
|
+
_tag: "reasoning";
|
|
269
|
+
reasoningText?: string | undefined;
|
|
270
|
+
signature?: string | undefined;
|
|
271
|
+
redactedText?: string | undefined;
|
|
189
272
|
pending?: boolean | undefined;
|
|
190
|
-
|
|
273
|
+
} | {
|
|
274
|
+
_tag: "reference";
|
|
191
275
|
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
276
|
+
pending?: boolean | undefined;
|
|
192
277
|
} | {
|
|
278
|
+
_tag: "select";
|
|
193
279
|
pending?: boolean | undefined;
|
|
194
|
-
|
|
280
|
+
options: readonly string[];
|
|
281
|
+
} | {
|
|
282
|
+
_tag: "status";
|
|
283
|
+
pending?: boolean | undefined;
|
|
284
|
+
statusText: string;
|
|
285
|
+
} | {
|
|
195
286
|
text: string;
|
|
287
|
+
_tag: "suggestion";
|
|
288
|
+
pending?: boolean | undefined;
|
|
289
|
+
} | {
|
|
290
|
+
_tag: "summary";
|
|
291
|
+
model?: string | undefined;
|
|
292
|
+
usage?: {
|
|
293
|
+
readonly inputTokens?: number | undefined;
|
|
294
|
+
readonly outputTokens?: number | undefined;
|
|
295
|
+
readonly totalTokens?: number | undefined;
|
|
296
|
+
} | undefined;
|
|
297
|
+
pending?: boolean | undefined;
|
|
298
|
+
mimeType?: string | undefined;
|
|
299
|
+
message?: string | undefined;
|
|
300
|
+
toolCalls?: number | undefined;
|
|
301
|
+
errors?: number | undefined;
|
|
302
|
+
duration?: number | undefined;
|
|
303
|
+
} | {
|
|
304
|
+
text: string;
|
|
305
|
+
_tag: "text";
|
|
306
|
+
pending?: boolean | undefined;
|
|
307
|
+
disposition?: string | undefined;
|
|
308
|
+
mimeType?: string | undefined;
|
|
309
|
+
} | {
|
|
310
|
+
_tag: "toolkit";
|
|
311
|
+
pending?: boolean | undefined;
|
|
312
|
+
} | {
|
|
313
|
+
name: string;
|
|
314
|
+
_tag: "toolCall";
|
|
315
|
+
pending?: boolean | undefined;
|
|
316
|
+
toolCallId: string;
|
|
317
|
+
input: string;
|
|
318
|
+
} | {
|
|
319
|
+
name: string;
|
|
320
|
+
_tag: "toolResult";
|
|
321
|
+
error?: string | undefined;
|
|
322
|
+
pending?: boolean | undefined;
|
|
323
|
+
toolCallId: string;
|
|
324
|
+
result?: string | undefined;
|
|
325
|
+
} | {
|
|
326
|
+
text: string;
|
|
327
|
+
_tag: "transcript";
|
|
328
|
+
pending?: boolean | undefined;
|
|
196
329
|
started: string;
|
|
197
330
|
})[];
|
|
198
331
|
properties?: {
|
|
199
332
|
[x: string]: any;
|
|
200
333
|
} | undefined;
|
|
201
|
-
}, "id" | typeof import("@dxos/echo-schema").EntityKindId> & {
|
|
202
|
-
id?: string;
|
|
203
|
-
} & {
|
|
204
|
-
id: string;
|
|
205
334
|
};
|
|
206
|
-
timeElapsed: number;
|
|
335
|
+
readonly timeElapsed: number;
|
|
207
336
|
}>;
|
|
208
337
|
//# sourceMappingURL=extraction-ner-function.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwChC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type TokenClassificationPipelineType, type TokenClassificationSingle } from '@xenova/transformers';
|
|
2
2
|
/**
|
|
3
3
|
* Named Entity Recognition pipeline.
|
|
4
4
|
* Initializes the pipeline on first call.
|
|
@@ -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
|
|
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"}
|