@dxos/assistant 0.8.4-main.2e9d522 → 0.8.4-main.3c1ae3b
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-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/extraction/index.mjs +225 -0
- package/dist/lib/browser/extraction/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1050 -1591
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/extraction/index.mjs +226 -0
- package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1048 -1590
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/conversation/context.d.ts +97 -0
- package/dist/types/src/conversation/context.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +29 -26
- 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 -13
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/execution-graph.d.ts +85 -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 +103 -59
- 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 +279 -248
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/extraction/quotes.d.ts +1 -1
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/functions/services.d.ts +18 -4
- package/dist/types/src/functions/services.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/session/GenericToolkit.d.ts +84 -0
- package/dist/types/src/session/GenericToolkit.d.ts.map +1 -0
- 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 +12 -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 +4 -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 +28 -237
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +15 -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 +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/artifact.d.ts +19 -0
- package/dist/types/src/types/artifact.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +46 -32
- package/src/conversation/context.ts +185 -0
- package/src/conversation/conversation.ts +93 -61
- package/src/conversation/index.ts +1 -0
- package/src/diff.test.ts +43 -0
- package/src/diff.ts +84 -0
- package/src/errors.ts +6 -1
- package/src/execution-graph.test.ts +740 -0
- package/src/execution-graph.ts +509 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +10 -9
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +48 -56
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +20 -19
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +42 -43
- package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
- package/src/extraction/extraction-ner-function/named-entity-recognition.ts +2 -0
- package/src/extraction/extraction.ts +8 -7
- package/src/extraction/quotes.test.ts +3 -3
- package/src/extraction/quotes.ts +5 -5
- package/src/functions/services.ts +118 -97
- package/src/index.ts +3 -3
- package/src/session/GenericToolkit.ts +130 -0
- package/src/session/artifact-diff.ts +41 -0
- package/src/session/error-handling.ts +41 -0
- package/src/session/format.test.ts +61 -0
- package/src/session/format.ts +145 -0
- package/src/session/index.ts +5 -0
- package/src/session/observer.ts +59 -0
- package/src/session/session.conversations.json +1 -0
- package/src/session/session.test.ts +38 -199
- package/src/session/session.ts +128 -251
- package/src/session/toolkit.ts +48 -0
- package/src/session/version-pin.ts +8 -8
- package/src/templates/index.ts +1 -1
- package/src/templates/instructions/format.tpl +61 -0
- package/src/templates/instructions/system.tpl +48 -0
- package/src/templates/system.ts +41 -0
- package/src/{types.ts → types/artifact.ts} +31 -8
- package/src/types/index.ts +5 -0
- package/src/typings.d.ts +5 -0
- 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 +0 -56
- 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/summarization/summarization.test.d.ts +0 -2
- package/dist/types/src/summarization/summarization.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/dist/types/src/types.d.ts +0 -13
- package/dist/types/src/types.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/summarization/summarization.test.ts +0 -208
- 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/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
9
|
+
readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
10
|
id: string;
|
|
11
|
+
parentMessage?: string | undefined;
|
|
4
12
|
created: string;
|
|
5
13
|
sender: {
|
|
6
14
|
name?: string | undefined;
|
|
7
|
-
|
|
8
|
-
contact?: import("@dxos/echo
|
|
9
|
-
fields?: {
|
|
10
|
-
readonly value: string;
|
|
11
|
-
readonly category?: string | undefined;
|
|
12
|
-
readonly label: string;
|
|
13
|
-
}[] | undefined;
|
|
15
|
+
role?: "user" | "assistant" | "tool" | undefined;
|
|
16
|
+
contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
14
17
|
image?: string | undefined;
|
|
15
18
|
fullName?: string | undefined;
|
|
16
19
|
preferredName?: string | undefined;
|
|
17
20
|
nickname?: string | undefined;
|
|
18
|
-
organization?: import("@dxos/echo
|
|
19
|
-
id: string;
|
|
20
|
-
name?: string | undefined;
|
|
21
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
21
22
|
description?: string | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
22
24
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
23
25
|
image?: string | undefined;
|
|
24
26
|
website?: string | undefined;
|
|
27
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
25
28
|
}> | undefined;
|
|
26
29
|
jobTitle?: string | undefined;
|
|
27
30
|
department?: string | undefined;
|
|
@@ -38,6 +41,11 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
38
41
|
readonly value: string;
|
|
39
42
|
readonly label?: string | undefined;
|
|
40
43
|
}[] | undefined;
|
|
44
|
+
fields?: {
|
|
45
|
+
readonly value: string;
|
|
46
|
+
readonly label: string;
|
|
47
|
+
readonly category?: string | undefined;
|
|
48
|
+
}[] | undefined;
|
|
41
49
|
addresses?: {
|
|
42
50
|
readonly value: {
|
|
43
51
|
readonly street?: string | undefined;
|
|
@@ -55,10 +63,11 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
55
63
|
readonly label?: string | undefined;
|
|
56
64
|
}[] | undefined;
|
|
57
65
|
birthday?: string | undefined;
|
|
66
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
58
67
|
}> | undefined;
|
|
59
68
|
identityDid?: string | undefined;
|
|
60
69
|
identityKey?: string | undefined;
|
|
61
|
-
|
|
70
|
+
email?: string | undefined;
|
|
62
71
|
};
|
|
63
72
|
blocks: ({
|
|
64
73
|
version: unknown;
|
|
@@ -66,23 +75,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
66
75
|
pending?: boolean | undefined;
|
|
67
76
|
objectId: string;
|
|
68
77
|
} | {
|
|
69
|
-
name?: string | undefined;
|
|
70
78
|
_tag: "file";
|
|
71
79
|
pending?: boolean | undefined;
|
|
72
80
|
url: string;
|
|
81
|
+
name?: string | undefined;
|
|
73
82
|
mediaType?: string | undefined;
|
|
74
83
|
} | {
|
|
75
84
|
id?: string | undefined;
|
|
85
|
+
_tag: "image";
|
|
86
|
+
pending?: boolean | undefined;
|
|
76
87
|
source?: {
|
|
77
|
-
type: "base64";
|
|
78
88
|
mediaType: string;
|
|
89
|
+
type: "base64";
|
|
79
90
|
data: string;
|
|
80
91
|
} | {
|
|
81
|
-
type: "http";
|
|
82
92
|
url: string;
|
|
93
|
+
type: "http";
|
|
83
94
|
} | undefined;
|
|
84
|
-
_tag: "image";
|
|
85
|
-
pending?: boolean | undefined;
|
|
86
95
|
} | {
|
|
87
96
|
_tag: "json";
|
|
88
97
|
pending?: boolean | undefined;
|
|
@@ -99,7 +108,7 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
99
108
|
redactedText?: string | undefined;
|
|
100
109
|
signature?: string | undefined;
|
|
101
110
|
} | {
|
|
102
|
-
reference: import("@dxos/echo
|
|
111
|
+
reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>>;
|
|
103
112
|
_tag: "reference";
|
|
104
113
|
pending?: boolean | undefined;
|
|
105
114
|
} | {
|
|
@@ -112,8 +121,22 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
112
121
|
statusText: string;
|
|
113
122
|
} | {
|
|
114
123
|
text: string;
|
|
115
|
-
_tag: "
|
|
124
|
+
_tag: "suggestion";
|
|
125
|
+
pending?: boolean | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
_tag: "summary";
|
|
116
128
|
pending?: boolean | undefined;
|
|
129
|
+
mimeType?: string | undefined;
|
|
130
|
+
message?: string | undefined;
|
|
131
|
+
model?: string | undefined;
|
|
132
|
+
usage?: {
|
|
133
|
+
readonly inputTokens?: number | undefined;
|
|
134
|
+
readonly outputTokens?: number | undefined;
|
|
135
|
+
readonly totalTokens?: number | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
toolCalls?: number | undefined;
|
|
138
|
+
errors?: number | undefined;
|
|
139
|
+
duration?: number | undefined;
|
|
117
140
|
} | {
|
|
118
141
|
text: string;
|
|
119
142
|
_tag: "text";
|
|
@@ -121,20 +144,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
121
144
|
disposition?: string | undefined;
|
|
122
145
|
mimeType?: string | undefined;
|
|
123
146
|
} | {
|
|
124
|
-
|
|
125
|
-
input: unknown;
|
|
126
|
-
_tag: "toolCall";
|
|
147
|
+
_tag: "toolkit";
|
|
127
148
|
pending?: boolean | undefined;
|
|
128
|
-
toolCallId: string;
|
|
129
149
|
} | {
|
|
130
|
-
_tag: "
|
|
150
|
+
_tag: "toolCall";
|
|
131
151
|
pending?: boolean | undefined;
|
|
132
|
-
} | {
|
|
133
152
|
name: string;
|
|
153
|
+
toolCallId: string;
|
|
154
|
+
input: string;
|
|
155
|
+
providerExecuted: boolean;
|
|
156
|
+
} | {
|
|
134
157
|
_tag: "toolResult";
|
|
135
158
|
pending?: boolean | undefined;
|
|
159
|
+
name: string;
|
|
136
160
|
toolCallId: string;
|
|
137
|
-
|
|
161
|
+
providerExecuted: boolean;
|
|
162
|
+
result?: string | undefined;
|
|
163
|
+
error?: string | undefined;
|
|
138
164
|
} | {
|
|
139
165
|
text: string;
|
|
140
166
|
_tag: "transcript";
|
|
@@ -145,35 +171,30 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
145
171
|
[x: string]: any;
|
|
146
172
|
} | undefined;
|
|
147
173
|
};
|
|
148
|
-
readonly objects?: readonly import("@dxos/echo
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
} | undefined;
|
|
174
|
+
readonly objects?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
175
|
+
[x: string]: any;
|
|
176
|
+
id: import("@dxos/keys").ObjectId;
|
|
177
|
+
})[] | undefined;
|
|
153
178
|
}, {
|
|
154
|
-
readonly message: import("@dxos/echo/
|
|
179
|
+
readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
155
180
|
id: string;
|
|
181
|
+
parentMessage?: string | undefined;
|
|
156
182
|
created: string;
|
|
157
183
|
sender: {
|
|
158
184
|
name?: string | undefined;
|
|
159
|
-
|
|
160
|
-
contact?: import("@dxos/echo
|
|
161
|
-
fields?: {
|
|
162
|
-
readonly value: string;
|
|
163
|
-
readonly category?: string | undefined;
|
|
164
|
-
readonly label: string;
|
|
165
|
-
}[] | undefined;
|
|
185
|
+
role?: "user" | "assistant" | "tool" | undefined;
|
|
186
|
+
contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
166
187
|
image?: string | undefined;
|
|
167
188
|
fullName?: string | undefined;
|
|
168
189
|
preferredName?: string | undefined;
|
|
169
190
|
nickname?: string | undefined;
|
|
170
|
-
organization?: import("@dxos/echo
|
|
171
|
-
id: string;
|
|
172
|
-
name?: string | undefined;
|
|
191
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
173
192
|
description?: string | undefined;
|
|
193
|
+
name?: string | undefined;
|
|
174
194
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
175
195
|
image?: string | undefined;
|
|
176
196
|
website?: string | undefined;
|
|
197
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
177
198
|
}> | undefined;
|
|
178
199
|
jobTitle?: string | undefined;
|
|
179
200
|
department?: string | undefined;
|
|
@@ -190,6 +211,11 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
190
211
|
readonly value: string;
|
|
191
212
|
readonly label?: string | undefined;
|
|
192
213
|
}[] | undefined;
|
|
214
|
+
fields?: {
|
|
215
|
+
readonly value: string;
|
|
216
|
+
readonly label: string;
|
|
217
|
+
readonly category?: string | undefined;
|
|
218
|
+
}[] | undefined;
|
|
193
219
|
addresses?: {
|
|
194
220
|
readonly value: {
|
|
195
221
|
readonly street?: string | undefined;
|
|
@@ -207,10 +233,11 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
207
233
|
readonly label?: string | undefined;
|
|
208
234
|
}[] | undefined;
|
|
209
235
|
birthday?: string | undefined;
|
|
236
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
210
237
|
}> | undefined;
|
|
211
238
|
identityDid?: string | undefined;
|
|
212
239
|
identityKey?: string | undefined;
|
|
213
|
-
|
|
240
|
+
email?: string | undefined;
|
|
214
241
|
};
|
|
215
242
|
blocks: ({
|
|
216
243
|
version: unknown;
|
|
@@ -218,23 +245,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
218
245
|
pending?: boolean | undefined;
|
|
219
246
|
objectId: string;
|
|
220
247
|
} | {
|
|
221
|
-
name?: string | undefined;
|
|
222
248
|
_tag: "file";
|
|
223
249
|
pending?: boolean | undefined;
|
|
224
250
|
url: string;
|
|
251
|
+
name?: string | undefined;
|
|
225
252
|
mediaType?: string | undefined;
|
|
226
253
|
} | {
|
|
227
254
|
id?: string | undefined;
|
|
255
|
+
_tag: "image";
|
|
256
|
+
pending?: boolean | undefined;
|
|
228
257
|
source?: {
|
|
229
|
-
type: "base64";
|
|
230
258
|
mediaType: string;
|
|
259
|
+
type: "base64";
|
|
231
260
|
data: string;
|
|
232
261
|
} | {
|
|
233
|
-
type: "http";
|
|
234
262
|
url: string;
|
|
263
|
+
type: "http";
|
|
235
264
|
} | undefined;
|
|
236
|
-
_tag: "image";
|
|
237
|
-
pending?: boolean | undefined;
|
|
238
265
|
} | {
|
|
239
266
|
_tag: "json";
|
|
240
267
|
pending?: boolean | undefined;
|
|
@@ -251,7 +278,7 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
251
278
|
redactedText?: string | undefined;
|
|
252
279
|
signature?: string | undefined;
|
|
253
280
|
} | {
|
|
254
|
-
reference: import("@dxos/echo
|
|
281
|
+
reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>>;
|
|
255
282
|
_tag: "reference";
|
|
256
283
|
pending?: boolean | undefined;
|
|
257
284
|
} | {
|
|
@@ -264,8 +291,22 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
264
291
|
statusText: string;
|
|
265
292
|
} | {
|
|
266
293
|
text: string;
|
|
267
|
-
_tag: "
|
|
294
|
+
_tag: "suggestion";
|
|
295
|
+
pending?: boolean | undefined;
|
|
296
|
+
} | {
|
|
297
|
+
_tag: "summary";
|
|
268
298
|
pending?: boolean | undefined;
|
|
299
|
+
mimeType?: string | undefined;
|
|
300
|
+
message?: string | undefined;
|
|
301
|
+
model?: string | undefined;
|
|
302
|
+
usage?: {
|
|
303
|
+
readonly inputTokens?: number | undefined;
|
|
304
|
+
readonly outputTokens?: number | undefined;
|
|
305
|
+
readonly totalTokens?: number | undefined;
|
|
306
|
+
} | undefined;
|
|
307
|
+
toolCalls?: number | undefined;
|
|
308
|
+
errors?: number | undefined;
|
|
309
|
+
duration?: number | undefined;
|
|
269
310
|
} | {
|
|
270
311
|
text: string;
|
|
271
312
|
_tag: "text";
|
|
@@ -273,20 +314,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
273
314
|
disposition?: string | undefined;
|
|
274
315
|
mimeType?: string | undefined;
|
|
275
316
|
} | {
|
|
276
|
-
|
|
277
|
-
input: unknown;
|
|
278
|
-
_tag: "toolCall";
|
|
317
|
+
_tag: "toolkit";
|
|
279
318
|
pending?: boolean | undefined;
|
|
280
|
-
toolCallId: string;
|
|
281
319
|
} | {
|
|
282
|
-
_tag: "
|
|
320
|
+
_tag: "toolCall";
|
|
283
321
|
pending?: boolean | undefined;
|
|
284
|
-
} | {
|
|
285
322
|
name: string;
|
|
323
|
+
toolCallId: string;
|
|
324
|
+
input: string;
|
|
325
|
+
providerExecuted: boolean;
|
|
326
|
+
} | {
|
|
286
327
|
_tag: "toolResult";
|
|
287
328
|
pending?: boolean | undefined;
|
|
329
|
+
name: string;
|
|
288
330
|
toolCallId: string;
|
|
289
|
-
|
|
331
|
+
providerExecuted: boolean;
|
|
332
|
+
result?: string | undefined;
|
|
333
|
+
error?: string | undefined;
|
|
290
334
|
} | {
|
|
291
335
|
text: string;
|
|
292
336
|
_tag: "transcript";
|
|
@@ -298,5 +342,5 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
298
342
|
} | undefined;
|
|
299
343
|
};
|
|
300
344
|
readonly timeElapsed: number;
|
|
301
|
-
}>;
|
|
345
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
302
346
|
//# 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":"AAQA;;GAEG;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;+BA0ChC,CA1BF;wBAA0C,CAAC;0BAEpB,CAAC;yBACgD,CAAC;2BAA6C,CAAC;4BAuBrH,CApBD;;;;;;;kCAOkD,CAAC;;;;kCAK/B,CAAC;;;;kCAMZ,CAAC;;;;;qCAImH,CAAC;;;;uCAAkJ,CAAC;yCAA2D,CAAC;yCAA2D,CAAC;uCAAyD,CAAC;2CAA6D,CAAC;oDAAsE,CAAC;wCAA0D,CAAC;;kCAAuE,CAAC;;;;kCAA8I,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAFz1B,CA1BF;wBAA0C,CAAC;0BAEpB,CAAC;yBACgD,CAAC;2BAA6C,CAAC;4BAuBrH,CApBD;;;;;;;kCAOkD,CAAC;;;;kCAK/B,CAAC;;;;kCAMZ,CAAC;;;;;qCAImH,CAAC;;;;uCAAkJ,CAAC;yCAA2D,CAAC;yCAA2D,CAAC;uCAAyD,CAAC;2CAA6D,CAAC;oDAAsE,CAAC;wCAA0D,CAAC;;kCAAuE,CAAC;;;;kCAA8I,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CADz1B,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"}
|