@dxos/assistant 0.8.4-main.3f58842 → 0.8.4-main.406dc2a
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-CWGVG235.mjs +380 -0
- package/dist/lib/browser/chunk-CWGVG235.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 +272 -0
- package/dist/lib/browser/extraction/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +747 -1645
- 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-OV5PMQPB.mjs +382 -0
- package/dist/lib/node-esm/chunk-OV5PMQPB.mjs.map +7 -0
- package/dist/lib/node-esm/extraction/index.mjs +273 -0
- package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +746 -1645
- 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 +103 -0
- package/dist/types/src/conversation/context.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +28 -22
- 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 +95 -56
- 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 +252 -218
- 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 +17 -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/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 +27 -236
- 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 +3 -3
- 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 → types/artifact.d.ts} +6 -3
- 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 +44 -32
- package/src/conversation/context.ts +186 -0
- package/src/conversation/conversation.ts +89 -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 +13 -24
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +13 -11
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +9 -9
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +15 -8
- 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/extraction.ts +2 -2
- package/src/extraction/quotes.test.ts +3 -3
- package/src/extraction/quotes.ts +4 -4
- package/src/functions/services.ts +114 -95
- package/src/index.ts +3 -3
- package/src/session/artifact-diff.ts +41 -0
- package/src/session/error-handling.ts +41 -0
- package/src/session/format.test.ts +60 -0
- package/src/session/format.ts +142 -0
- package/src/session/index.ts +3 -0
- package/src/session/observer.ts +59 -0
- package/src/session/session.conversations.json +1 -0
- package/src/session/session.test.ts +37 -198
- package/src/session/session.ts +125 -249
- package/src/session/toolkit.ts +48 -0
- package/src/session/version-pin.ts +5 -5
- package/src/summarization/summarization.test.ts +19 -39
- 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 → types/artifact.ts} +12 -7
- 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/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.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
|
@@ -1,19 +1,25 @@
|
|
|
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/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
10
|
id: string;
|
|
11
|
+
parentMessage?: string | undefined;
|
|
4
12
|
created: string;
|
|
5
13
|
sender: {
|
|
6
|
-
|
|
7
|
-
email?: string | undefined;
|
|
8
|
-
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
14
|
+
contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
9
15
|
fullName?: string | undefined;
|
|
10
16
|
preferredName?: string | undefined;
|
|
11
17
|
nickname?: string | undefined;
|
|
12
18
|
image?: string | undefined;
|
|
13
|
-
organization?: import("@dxos/echo
|
|
19
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
14
20
|
id: string;
|
|
15
|
-
name?: string | undefined;
|
|
16
21
|
description?: string | undefined;
|
|
22
|
+
name?: string | undefined;
|
|
17
23
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
18
24
|
image?: string | undefined;
|
|
19
25
|
website?: string | undefined;
|
|
@@ -22,18 +28,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
22
28
|
department?: string | undefined;
|
|
23
29
|
notes?: string | undefined;
|
|
24
30
|
emails?: {
|
|
25
|
-
readonly value: string;
|
|
26
31
|
readonly label?: string | undefined;
|
|
32
|
+
readonly value: string;
|
|
27
33
|
}[] | undefined;
|
|
28
34
|
identities?: {
|
|
29
|
-
readonly value: string;
|
|
30
35
|
readonly label?: string | undefined;
|
|
36
|
+
readonly value: string;
|
|
31
37
|
}[] | undefined;
|
|
32
38
|
phoneNumbers?: {
|
|
33
|
-
readonly value: string;
|
|
34
39
|
readonly label?: string | undefined;
|
|
40
|
+
readonly value: string;
|
|
35
41
|
}[] | undefined;
|
|
36
42
|
addresses?: {
|
|
43
|
+
readonly label?: string | undefined;
|
|
37
44
|
readonly value: {
|
|
38
45
|
readonly street?: string | undefined;
|
|
39
46
|
readonly extended?: string | undefined;
|
|
@@ -43,22 +50,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
43
50
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
44
51
|
readonly country?: string | undefined;
|
|
45
52
|
};
|
|
46
|
-
readonly label?: string | undefined;
|
|
47
53
|
}[] | undefined;
|
|
48
54
|
urls?: {
|
|
49
|
-
readonly value: string;
|
|
50
55
|
readonly label?: string | undefined;
|
|
56
|
+
readonly value: string;
|
|
51
57
|
}[] | undefined;
|
|
52
58
|
birthday?: string | undefined;
|
|
53
59
|
fields?: {
|
|
54
|
-
readonly value: string;
|
|
55
60
|
readonly label: string;
|
|
61
|
+
readonly value: string;
|
|
56
62
|
readonly category?: string | undefined;
|
|
57
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;
|
|
@@ -99,42 +107,59 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
99
107
|
redactedText?: string | undefined;
|
|
100
108
|
signature?: string | undefined;
|
|
101
109
|
} | {
|
|
102
|
-
reference: import("@dxos/echo
|
|
110
|
+
reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>;
|
|
103
111
|
_tag: "reference";
|
|
104
112
|
pending?: boolean | undefined;
|
|
105
113
|
} | {
|
|
106
|
-
options: readonly string[];
|
|
107
114
|
_tag: "select";
|
|
108
115
|
pending?: boolean | undefined;
|
|
116
|
+
options: readonly string[];
|
|
109
117
|
} | {
|
|
110
118
|
_tag: "status";
|
|
111
119
|
pending?: boolean | undefined;
|
|
112
120
|
statusText: string;
|
|
113
121
|
} | {
|
|
114
122
|
text: string;
|
|
115
|
-
_tag: "
|
|
123
|
+
_tag: "suggestion";
|
|
116
124
|
pending?: boolean | undefined;
|
|
125
|
+
} | {
|
|
126
|
+
_tag: "summary";
|
|
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";
|
|
@@ -145,27 +170,22 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
145
170
|
[x: string]: any;
|
|
146
171
|
} | undefined;
|
|
147
172
|
};
|
|
148
|
-
readonly
|
|
149
|
-
readonly timeout?: number | undefined;
|
|
150
|
-
readonly fallbackToRaw?: boolean | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
173
|
+
readonly objects?: readonly import("@dxos/echo/internal").Expando[] | undefined;
|
|
153
174
|
}, {
|
|
154
|
-
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo
|
|
175
|
+
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
155
176
|
id: string;
|
|
177
|
+
parentMessage?: string | undefined;
|
|
156
178
|
created: string;
|
|
157
179
|
sender: {
|
|
158
|
-
|
|
159
|
-
email?: string | undefined;
|
|
160
|
-
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
180
|
+
contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
161
181
|
fullName?: string | undefined;
|
|
162
182
|
preferredName?: string | undefined;
|
|
163
183
|
nickname?: string | undefined;
|
|
164
184
|
image?: string | undefined;
|
|
165
|
-
organization?: import("@dxos/echo
|
|
185
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
166
186
|
id: string;
|
|
167
|
-
name?: string | undefined;
|
|
168
187
|
description?: string | undefined;
|
|
188
|
+
name?: string | undefined;
|
|
169
189
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
170
190
|
image?: string | undefined;
|
|
171
191
|
website?: string | undefined;
|
|
@@ -174,18 +194,19 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
174
194
|
department?: string | undefined;
|
|
175
195
|
notes?: string | undefined;
|
|
176
196
|
emails?: {
|
|
177
|
-
readonly value: string;
|
|
178
197
|
readonly label?: string | undefined;
|
|
198
|
+
readonly value: string;
|
|
179
199
|
}[] | undefined;
|
|
180
200
|
identities?: {
|
|
181
|
-
readonly value: string;
|
|
182
201
|
readonly label?: string | undefined;
|
|
202
|
+
readonly value: string;
|
|
183
203
|
}[] | undefined;
|
|
184
204
|
phoneNumbers?: {
|
|
185
|
-
readonly value: string;
|
|
186
205
|
readonly label?: string | undefined;
|
|
206
|
+
readonly value: string;
|
|
187
207
|
}[] | undefined;
|
|
188
208
|
addresses?: {
|
|
209
|
+
readonly label?: string | undefined;
|
|
189
210
|
readonly value: {
|
|
190
211
|
readonly street?: string | undefined;
|
|
191
212
|
readonly extended?: string | undefined;
|
|
@@ -195,22 +216,23 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
195
216
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
196
217
|
readonly country?: string | undefined;
|
|
197
218
|
};
|
|
198
|
-
readonly label?: string | undefined;
|
|
199
219
|
}[] | undefined;
|
|
200
220
|
urls?: {
|
|
201
|
-
readonly value: string;
|
|
202
221
|
readonly label?: string | undefined;
|
|
222
|
+
readonly value: string;
|
|
203
223
|
}[] | undefined;
|
|
204
224
|
birthday?: string | undefined;
|
|
205
225
|
fields?: {
|
|
206
|
-
readonly value: string;
|
|
207
226
|
readonly label: string;
|
|
227
|
+
readonly value: string;
|
|
208
228
|
readonly category?: string | undefined;
|
|
209
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;
|
|
@@ -251,42 +273,59 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
251
273
|
redactedText?: string | undefined;
|
|
252
274
|
signature?: string | undefined;
|
|
253
275
|
} | {
|
|
254
|
-
reference: import("@dxos/echo
|
|
276
|
+
reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>;
|
|
255
277
|
_tag: "reference";
|
|
256
278
|
pending?: boolean | undefined;
|
|
257
279
|
} | {
|
|
258
|
-
options: readonly string[];
|
|
259
280
|
_tag: "select";
|
|
260
281
|
pending?: boolean | undefined;
|
|
282
|
+
options: readonly string[];
|
|
261
283
|
} | {
|
|
262
284
|
_tag: "status";
|
|
263
285
|
pending?: boolean | undefined;
|
|
264
286
|
statusText: string;
|
|
265
287
|
} | {
|
|
266
288
|
text: string;
|
|
267
|
-
_tag: "
|
|
289
|
+
_tag: "suggestion";
|
|
268
290
|
pending?: boolean | undefined;
|
|
291
|
+
} | {
|
|
292
|
+
_tag: "summary";
|
|
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"}
|