@dxos/assistant 0.8.4-main.f9ba587 → 0.8.4-main.fd6878d
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-6WRGDEMH.mjs +89 -0
- package/dist/lib/browser/chunk-6WRGDEMH.mjs.map +7 -0
- package/dist/lib/browser/chunk-NZGGCEF3.mjs +341 -0
- package/dist/lib/browser/chunk-NZGGCEF3.mjs.map +7 -0
- package/dist/lib/browser/extraction/index.mjs +269 -0
- package/dist/lib/browser/extraction/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +240 -1905
- 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 +13 -0
- package/dist/lib/browser/named-entity-recognition-O46UTCLR.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-3UU5V4FS.mjs +91 -0
- package/dist/lib/node-esm/chunk-3UU5V4FS.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XOOPGSGW.mjs +343 -0
- package/dist/lib/node-esm/chunk-XOOPGSGW.mjs.map +7 -0
- package/dist/lib/node-esm/extraction/index.mjs +270 -0
- package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +240 -1906
- 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 +14 -0
- package/dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs.map +7 -0
- package/dist/types/src/conversation/context.d.ts +90 -0
- package/dist/types/src/conversation/context.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +31 -25
- 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/errors.d.ts +39 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- 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 +143 -45
- 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 +106 -44
- 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 +3 -5
- 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/format.d.ts +168 -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 +1 -0
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/session.d.ts +123 -239
- package/dist/types/src/session/session.d.ts.map +1 -1
- 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 +22 -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 +46 -22
- package/src/{context/binder.ts → conversation/context.ts} +51 -19
- package/src/conversation/conversation.ts +90 -68
- package/src/conversation/index.ts +1 -0
- package/src/errors.ts +10 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +7 -18
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +22 -17
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +4 -3
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +7 -4
- package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +2 -2
- package/src/extraction/extraction-ner-function/named-entity-recognition.ts +1 -1
- package/src/extraction/quotes.test.ts +1 -1
- package/src/extraction/quotes.ts +1 -1
- package/src/functions/index.ts +5 -0
- package/src/functions/services.ts +114 -0
- package/src/index.ts +3 -5
- package/src/session/__snapshots__/session.test.ts.snap +32 -0
- package/src/session/artifact-diff.ts +37 -0
- package/src/session/format.test.ts +60 -0
- package/src/session/format.ts +139 -0
- package/src/session/index.ts +1 -0
- package/src/session/session.test.ts +87 -57
- package/src/session/session.ts +220 -523
- 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 +55 -0
- package/src/templates/index.ts +5 -0
- package/src/templates/system.tpl +47 -0
- package/src/templates/system.ts +32 -0
- package/src/types.ts +45 -1
- 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/blueprint/blueprint.d.ts +0 -41
- package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprint/index.d.ts +0 -3
- package/dist/types/src/blueprint/index.d.ts.map +0 -1
- package/dist/types/src/blueprint/registry.d.ts +0 -7
- package/dist/types/src/blueprint/registry.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 -38
- 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 -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/blueprint.ts +0 -75
- package/src/blueprint/index.ts +0 -6
- package/src/blueprint/registry.ts +0 -15
- package/src/context/binding.ts +0 -31
- package/src/context/index.ts +0 -6
- 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 -90
- 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,25 +1,29 @@
|
|
|
1
1
|
export declare const extractionNerFn: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
3
|
+
readonly options?: {
|
|
4
|
+
readonly timeout?: number | undefined;
|
|
5
|
+
readonly fallbackToRaw?: boolean | undefined;
|
|
6
|
+
} | undefined;
|
|
2
7
|
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
3
8
|
id: string;
|
|
9
|
+
parentMessage?: string | undefined;
|
|
4
10
|
created: string;
|
|
5
11
|
sender: {
|
|
6
12
|
name?: string | undefined;
|
|
7
|
-
email?: string | undefined;
|
|
8
|
-
role?: "user" | "assistant" | undefined;
|
|
9
13
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
10
|
-
image?: string | undefined;
|
|
11
14
|
fields?: {
|
|
12
15
|
readonly value: string;
|
|
13
16
|
readonly category?: string | undefined;
|
|
14
17
|
readonly label: string;
|
|
15
18
|
}[] | undefined;
|
|
19
|
+
image?: string | undefined;
|
|
16
20
|
fullName?: string | undefined;
|
|
17
21
|
preferredName?: string | undefined;
|
|
18
22
|
nickname?: string | undefined;
|
|
19
23
|
organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
20
|
-
description?: string | undefined;
|
|
21
24
|
id: string;
|
|
22
25
|
name?: string | undefined;
|
|
26
|
+
description?: string | undefined;
|
|
23
27
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
24
28
|
image?: string | undefined;
|
|
25
29
|
website?: string | undefined;
|
|
@@ -59,70 +63,116 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
59
63
|
}> | undefined;
|
|
60
64
|
identityDid?: string | undefined;
|
|
61
65
|
identityKey?: string | undefined;
|
|
66
|
+
email?: string | undefined;
|
|
67
|
+
role?: "user" | "assistant" | undefined;
|
|
62
68
|
};
|
|
63
69
|
blocks: ({
|
|
70
|
+
version: unknown;
|
|
71
|
+
_tag: "anchor";
|
|
64
72
|
pending?: boolean | undefined;
|
|
65
|
-
|
|
66
|
-
disposition?: string | undefined;
|
|
67
|
-
text: string;
|
|
73
|
+
objectId: string;
|
|
68
74
|
} | {
|
|
75
|
+
name?: string | undefined;
|
|
76
|
+
_tag: "file";
|
|
69
77
|
pending?: boolean | undefined;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
data: string;
|
|
78
|
+
url: string;
|
|
79
|
+
mediaType?: string | undefined;
|
|
73
80
|
} | {
|
|
74
|
-
pending?: boolean | undefined;
|
|
75
|
-
id?: string | undefined;
|
|
76
|
-
type: "image";
|
|
77
81
|
source?: {
|
|
78
|
-
type: "base64";
|
|
79
82
|
mediaType: string;
|
|
83
|
+
type: "base64";
|
|
80
84
|
data: string;
|
|
81
85
|
} | {
|
|
82
|
-
type: "http";
|
|
83
86
|
url: string;
|
|
87
|
+
type: "http";
|
|
84
88
|
} | undefined;
|
|
89
|
+
id?: string | undefined;
|
|
90
|
+
_tag: "image";
|
|
91
|
+
pending?: boolean | undefined;
|
|
85
92
|
} | {
|
|
93
|
+
_tag: "json";
|
|
86
94
|
pending?: boolean | undefined;
|
|
87
|
-
|
|
95
|
+
data: string;
|
|
96
|
+
disposition?: string | undefined;
|
|
97
|
+
} | {
|
|
98
|
+
text: string;
|
|
99
|
+
_tag: "proposal";
|
|
100
|
+
pending?: boolean | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
_tag: "reasoning";
|
|
103
|
+
pending?: boolean | undefined;
|
|
104
|
+
reasoningText?: string | undefined;
|
|
105
|
+
redactedText?: string | undefined;
|
|
106
|
+
signature?: string | undefined;
|
|
107
|
+
} | {
|
|
88
108
|
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
109
|
+
_tag: "reference";
|
|
110
|
+
pending?: boolean | undefined;
|
|
111
|
+
} | {
|
|
112
|
+
_tag: "select";
|
|
113
|
+
pending?: boolean | undefined;
|
|
114
|
+
options: readonly string[];
|
|
115
|
+
} | {
|
|
116
|
+
_tag: "status";
|
|
117
|
+
pending?: boolean | undefined;
|
|
118
|
+
statusText: string;
|
|
119
|
+
} | {
|
|
120
|
+
text: string;
|
|
121
|
+
_tag: "suggest";
|
|
122
|
+
pending?: boolean | undefined;
|
|
89
123
|
} | {
|
|
124
|
+
text: string;
|
|
125
|
+
_tag: "text";
|
|
90
126
|
pending?: boolean | undefined;
|
|
91
|
-
|
|
127
|
+
disposition?: string | undefined;
|
|
128
|
+
mimeType?: string | undefined;
|
|
129
|
+
} | {
|
|
130
|
+
_tag: "toolkit";
|
|
131
|
+
pending?: boolean | undefined;
|
|
132
|
+
} | {
|
|
133
|
+
name: string;
|
|
134
|
+
_tag: "toolCall";
|
|
135
|
+
pending?: boolean | undefined;
|
|
136
|
+
toolCallId: string;
|
|
137
|
+
input: unknown;
|
|
138
|
+
} | {
|
|
139
|
+
name: string;
|
|
140
|
+
_tag: "toolResult";
|
|
141
|
+
pending?: boolean | undefined;
|
|
142
|
+
toolCallId: string;
|
|
143
|
+
result: unknown;
|
|
144
|
+
error?: string | undefined;
|
|
145
|
+
} | {
|
|
92
146
|
text: string;
|
|
147
|
+
_tag: "transcript";
|
|
148
|
+
pending?: boolean | undefined;
|
|
93
149
|
started: string;
|
|
94
150
|
})[];
|
|
95
151
|
properties?: {
|
|
96
152
|
[x: string]: any;
|
|
97
153
|
} | undefined;
|
|
98
154
|
};
|
|
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
155
|
}, {
|
|
105
|
-
message:
|
|
156
|
+
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
106
157
|
id: string;
|
|
158
|
+
parentMessage?: string | undefined;
|
|
107
159
|
created: string;
|
|
108
160
|
sender: {
|
|
109
161
|
name?: string | undefined;
|
|
110
|
-
email?: string | undefined;
|
|
111
|
-
role?: "user" | "assistant" | undefined;
|
|
112
162
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
113
|
-
image?: string | undefined;
|
|
114
163
|
fields?: {
|
|
115
164
|
readonly value: string;
|
|
116
165
|
readonly category?: string | undefined;
|
|
117
166
|
readonly label: string;
|
|
118
167
|
}[] | undefined;
|
|
168
|
+
image?: string | undefined;
|
|
119
169
|
fullName?: string | undefined;
|
|
120
170
|
preferredName?: string | undefined;
|
|
121
171
|
nickname?: string | undefined;
|
|
122
172
|
organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
123
|
-
description?: string | undefined;
|
|
124
173
|
id: string;
|
|
125
174
|
name?: string | undefined;
|
|
175
|
+
description?: string | undefined;
|
|
126
176
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
127
177
|
image?: string | undefined;
|
|
128
178
|
website?: string | undefined;
|
|
@@ -162,47 +212,95 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
162
212
|
}> | undefined;
|
|
163
213
|
identityDid?: string | undefined;
|
|
164
214
|
identityKey?: string | undefined;
|
|
215
|
+
email?: string | undefined;
|
|
216
|
+
role?: "user" | "assistant" | undefined;
|
|
165
217
|
};
|
|
166
218
|
blocks: ({
|
|
219
|
+
version: unknown;
|
|
220
|
+
_tag: "anchor";
|
|
167
221
|
pending?: boolean | undefined;
|
|
168
|
-
|
|
169
|
-
disposition?: string | undefined;
|
|
170
|
-
text: string;
|
|
222
|
+
objectId: string;
|
|
171
223
|
} | {
|
|
224
|
+
name?: string | undefined;
|
|
225
|
+
_tag: "file";
|
|
172
226
|
pending?: boolean | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
data: string;
|
|
227
|
+
url: string;
|
|
228
|
+
mediaType?: string | undefined;
|
|
176
229
|
} | {
|
|
177
|
-
pending?: boolean | undefined;
|
|
178
|
-
id?: string | undefined;
|
|
179
|
-
type: "image";
|
|
180
230
|
source?: {
|
|
181
|
-
type: "base64";
|
|
182
231
|
mediaType: string;
|
|
232
|
+
type: "base64";
|
|
183
233
|
data: string;
|
|
184
234
|
} | {
|
|
185
|
-
type: "http";
|
|
186
235
|
url: string;
|
|
236
|
+
type: "http";
|
|
187
237
|
} | undefined;
|
|
238
|
+
id?: string | undefined;
|
|
239
|
+
_tag: "image";
|
|
240
|
+
pending?: boolean | undefined;
|
|
188
241
|
} | {
|
|
242
|
+
_tag: "json";
|
|
189
243
|
pending?: boolean | undefined;
|
|
190
|
-
|
|
244
|
+
data: string;
|
|
245
|
+
disposition?: string | undefined;
|
|
246
|
+
} | {
|
|
247
|
+
text: string;
|
|
248
|
+
_tag: "proposal";
|
|
249
|
+
pending?: boolean | undefined;
|
|
250
|
+
} | {
|
|
251
|
+
_tag: "reasoning";
|
|
252
|
+
pending?: boolean | undefined;
|
|
253
|
+
reasoningText?: string | undefined;
|
|
254
|
+
redactedText?: string | undefined;
|
|
255
|
+
signature?: string | undefined;
|
|
256
|
+
} | {
|
|
191
257
|
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
258
|
+
_tag: "reference";
|
|
259
|
+
pending?: boolean | undefined;
|
|
260
|
+
} | {
|
|
261
|
+
_tag: "select";
|
|
262
|
+
pending?: boolean | undefined;
|
|
263
|
+
options: readonly string[];
|
|
264
|
+
} | {
|
|
265
|
+
_tag: "status";
|
|
266
|
+
pending?: boolean | undefined;
|
|
267
|
+
statusText: string;
|
|
268
|
+
} | {
|
|
269
|
+
text: string;
|
|
270
|
+
_tag: "suggest";
|
|
271
|
+
pending?: boolean | undefined;
|
|
192
272
|
} | {
|
|
273
|
+
text: string;
|
|
274
|
+
_tag: "text";
|
|
193
275
|
pending?: boolean | undefined;
|
|
194
|
-
|
|
276
|
+
disposition?: string | undefined;
|
|
277
|
+
mimeType?: string | undefined;
|
|
278
|
+
} | {
|
|
279
|
+
_tag: "toolkit";
|
|
280
|
+
pending?: boolean | undefined;
|
|
281
|
+
} | {
|
|
282
|
+
name: string;
|
|
283
|
+
_tag: "toolCall";
|
|
284
|
+
pending?: boolean | undefined;
|
|
285
|
+
toolCallId: string;
|
|
286
|
+
input: unknown;
|
|
287
|
+
} | {
|
|
288
|
+
name: string;
|
|
289
|
+
_tag: "toolResult";
|
|
290
|
+
pending?: boolean | undefined;
|
|
291
|
+
toolCallId: string;
|
|
292
|
+
result: unknown;
|
|
293
|
+
error?: string | undefined;
|
|
294
|
+
} | {
|
|
195
295
|
text: string;
|
|
296
|
+
_tag: "transcript";
|
|
297
|
+
pending?: boolean | undefined;
|
|
196
298
|
started: string;
|
|
197
299
|
})[];
|
|
198
300
|
properties?: {
|
|
199
301
|
[x: string]: any;
|
|
200
302
|
} | undefined;
|
|
201
|
-
}, "id" | typeof import("@dxos/echo-schema").EntityKindId> & {
|
|
202
|
-
id?: string;
|
|
203
|
-
} & {
|
|
204
|
-
id: string;
|
|
205
303
|
};
|
|
206
|
-
timeElapsed: number;
|
|
304
|
+
readonly timeElapsed: number;
|
|
207
305
|
}>;
|
|
208
306
|
//# 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":"AAkBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsC1B,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;AAK9B;;;;GAIG;AACH,eAAO,MAAM,MAAM,gDAQlB,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"}
|
|
@@ -4,6 +4,7 @@ import { type FunctionDefinition, type FunctionExecutor } from '@dxos/functions'
|
|
|
4
4
|
export declare const ExtractionInput: Schema.Struct<{
|
|
5
5
|
message: import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
6
6
|
id: import("@dxos/keys").ObjectIdClass;
|
|
7
|
+
parentMessage: import("effect/Schema").optional<import("@dxos/keys").ObjectIdClass>;
|
|
7
8
|
created: import("effect/Schema").SchemaClass<string, string, never>;
|
|
8
9
|
sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
9
10
|
contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
|
|
@@ -12,9 +13,9 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
12
13
|
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
13
14
|
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
14
15
|
organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
15
|
-
description?: string | undefined;
|
|
16
16
|
id: string;
|
|
17
17
|
name?: string | undefined;
|
|
18
|
+
description?: string | undefined;
|
|
18
19
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
19
20
|
image?: string | undefined;
|
|
20
21
|
website?: string | undefined;
|
|
@@ -50,7 +51,7 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
50
51
|
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
51
52
|
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
52
53
|
}>>>>;
|
|
53
|
-
birthday: import("effect/Schema").optional<import("effect/Schema").
|
|
54
|
+
birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
54
55
|
fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
55
56
|
category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
56
57
|
label: typeof import("effect/Schema").String;
|
|
@@ -63,22 +64,17 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
63
64
|
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
64
65
|
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
65
66
|
}>>;
|
|
66
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").
|
|
67
|
+
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
|
|
67
68
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
text: typeof import("effect/Schema").String;
|
|
72
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
69
|
+
objectId: import("@dxos/keys").ObjectIdClass;
|
|
70
|
+
version: typeof import("effect/Schema").Unknown;
|
|
71
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
|
|
73
72
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
73
|
+
url: typeof import("effect/Schema").String;
|
|
74
|
+
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
75
|
+
mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
76
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
|
|
79
77
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
80
|
-
}>, import("effect/Schema").Struct<{
|
|
81
|
-
type: import("effect/Schema").Literal<["image"]>;
|
|
82
78
|
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
83
79
|
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
84
80
|
type: import("effect/Schema").Literal<["base64"]>;
|
|
@@ -88,21 +84,56 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
88
84
|
type: import("effect/Schema").Literal<["http"]>;
|
|
89
85
|
url: typeof import("effect/Schema").String;
|
|
90
86
|
}>>]>>;
|
|
91
|
-
}
|
|
87
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
|
|
88
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
89
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
90
|
+
data: typeof import("effect/Schema").String;
|
|
91
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
|
|
92
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
93
|
+
text: typeof import("effect/Schema").String;
|
|
94
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
|
|
95
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
96
|
+
reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
97
|
+
redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
98
|
+
signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
99
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
|
|
92
100
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
93
|
-
}>, import("effect/Schema").Struct<{
|
|
94
|
-
type: import("effect/Schema").Literal<["reference"]>;
|
|
95
101
|
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
96
102
|
[x: string]: any;
|
|
97
103
|
id: string;
|
|
98
104
|
}, never>>;
|
|
99
|
-
}
|
|
105
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
|
|
106
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
107
|
+
options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
108
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
|
|
109
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
110
|
+
statusText: typeof import("effect/Schema").String;
|
|
111
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
|
|
112
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
113
|
+
text: typeof import("effect/Schema").String;
|
|
114
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
|
|
115
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
116
|
+
mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
117
|
+
text: typeof import("effect/Schema").String;
|
|
118
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
119
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolkit", {
|
|
120
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
121
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
|
|
122
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
123
|
+
toolCallId: typeof import("effect/Schema").String;
|
|
124
|
+
name: typeof import("effect/Schema").String;
|
|
125
|
+
input: typeof import("effect/Schema").Unknown;
|
|
126
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
|
|
127
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
128
|
+
toolCallId: typeof import("effect/Schema").String;
|
|
129
|
+
name: typeof import("effect/Schema").String;
|
|
130
|
+
result: typeof import("effect/Schema").Unknown;
|
|
131
|
+
error: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
132
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
|
|
100
133
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
101
|
-
}>, import("effect/Schema").Struct<{
|
|
102
|
-
type: import("effect/Schema").Literal<["transcription"]>;
|
|
103
134
|
started: typeof import("effect/Schema").String;
|
|
104
135
|
text: typeof import("effect/Schema").String;
|
|
105
|
-
}
|
|
136
|
+
}>>]>>>;
|
|
106
137
|
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
107
138
|
}>>;
|
|
108
139
|
objects: Schema.optional<Schema.Array$<Schema.Schema<Expando, Expando, never>>>;
|
|
@@ -116,6 +147,7 @@ export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInp
|
|
|
116
147
|
export declare const ExtractionOutput: Schema.Struct<{
|
|
117
148
|
message: import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
118
149
|
id: import("@dxos/keys").ObjectIdClass;
|
|
150
|
+
parentMessage: import("effect/Schema").optional<import("@dxos/keys").ObjectIdClass>;
|
|
119
151
|
created: import("effect/Schema").SchemaClass<string, string, never>;
|
|
120
152
|
sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
121
153
|
contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
|
|
@@ -124,9 +156,9 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
124
156
|
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
125
157
|
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
126
158
|
organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
127
|
-
description?: string | undefined;
|
|
128
159
|
id: string;
|
|
129
160
|
name?: string | undefined;
|
|
161
|
+
description?: string | undefined;
|
|
130
162
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
131
163
|
image?: string | undefined;
|
|
132
164
|
website?: string | undefined;
|
|
@@ -162,7 +194,7 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
162
194
|
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
163
195
|
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
164
196
|
}>>>>;
|
|
165
|
-
birthday: import("effect/Schema").optional<import("effect/Schema").
|
|
197
|
+
birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
166
198
|
fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
167
199
|
category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
168
200
|
label: typeof import("effect/Schema").String;
|
|
@@ -175,22 +207,17 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
175
207
|
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
176
208
|
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
177
209
|
}>>;
|
|
178
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").
|
|
210
|
+
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
|
|
179
211
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
text: typeof import("effect/Schema").String;
|
|
184
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
212
|
+
objectId: import("@dxos/keys").ObjectIdClass;
|
|
213
|
+
version: typeof import("effect/Schema").Unknown;
|
|
214
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
|
|
185
215
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
216
|
+
url: typeof import("effect/Schema").String;
|
|
217
|
+
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
218
|
+
mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
219
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
|
|
191
220
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
192
|
-
}>, import("effect/Schema").Struct<{
|
|
193
|
-
type: import("effect/Schema").Literal<["image"]>;
|
|
194
221
|
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
195
222
|
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
196
223
|
type: import("effect/Schema").Literal<["base64"]>;
|
|
@@ -200,21 +227,56 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
200
227
|
type: import("effect/Schema").Literal<["http"]>;
|
|
201
228
|
url: typeof import("effect/Schema").String;
|
|
202
229
|
}>>]>>;
|
|
203
|
-
}
|
|
230
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
|
|
231
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
232
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
233
|
+
data: typeof import("effect/Schema").String;
|
|
234
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
|
|
235
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
236
|
+
text: typeof import("effect/Schema").String;
|
|
237
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
|
|
238
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
239
|
+
reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
240
|
+
redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
241
|
+
signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
242
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
|
|
204
243
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
205
|
-
}>, import("effect/Schema").Struct<{
|
|
206
|
-
type: import("effect/Schema").Literal<["reference"]>;
|
|
207
244
|
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
208
245
|
[x: string]: any;
|
|
209
246
|
id: string;
|
|
210
247
|
}, never>>;
|
|
211
|
-
}
|
|
248
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
|
|
249
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
250
|
+
options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
251
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
|
|
252
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
253
|
+
statusText: typeof import("effect/Schema").String;
|
|
254
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
|
|
255
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
256
|
+
text: typeof import("effect/Schema").String;
|
|
257
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
|
|
258
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
259
|
+
mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
260
|
+
text: typeof import("effect/Schema").String;
|
|
261
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
262
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolkit", {
|
|
263
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
264
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
|
|
265
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
266
|
+
toolCallId: typeof import("effect/Schema").String;
|
|
267
|
+
name: typeof import("effect/Schema").String;
|
|
268
|
+
input: typeof import("effect/Schema").Unknown;
|
|
269
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
|
|
270
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
271
|
+
toolCallId: typeof import("effect/Schema").String;
|
|
272
|
+
name: typeof import("effect/Schema").String;
|
|
273
|
+
result: typeof import("effect/Schema").Unknown;
|
|
274
|
+
error: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
275
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
|
|
212
276
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
213
|
-
}>, import("effect/Schema").Struct<{
|
|
214
|
-
type: import("effect/Schema").Literal<["transcription"]>;
|
|
215
277
|
started: typeof import("effect/Schema").String;
|
|
216
278
|
text: typeof import("effect/Schema").String;
|
|
217
|
-
}
|
|
279
|
+
}>>]>>>;
|
|
218
280
|
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
219
281
|
}>>;
|
|
220
282
|
timeElapsed: typeof Schema.Number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../../../../src/extraction/extraction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIjF,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../../../../src/extraction/extraction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIjF,eAAO,MAAM,eAAe;;;;;;;;;;;;;wBA+D40iB,CAAC;+BAAqD,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAtDnmjB,CAAC;AACH,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC;CAAG;AAEtF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;wBAmD20iB,CAAC;+BAAqD,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAhDnmjB,CAAC;AACH,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAExF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;IAChE,QAAQ,EAAE,gBAAgB,CAAC;IAE3B,OAAO,CAAC,EAAE;QACR;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;AAEvF;;GAEG;AAEH,eAAO,MAAM,wBAAwB,GAAU,QAAQ,8BAA8B,KAAG,OAAO,CAAC,gBAAgB,CAkB/G,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AiTool, type AiToolkit } from '@effect/ai';
|
|
2
|
+
import { Layer } from 'effect';
|
|
3
|
+
import { ToolExecutionService, ToolResolverService } from '@dxos/ai';
|
|
4
|
+
import { type FunctionDefinition, LocalFunctionExecutionService } from '@dxos/functions';
|
|
5
|
+
export declare const makeToolResolverFromFunctions: (functions: FunctionDefinition<any, any>[], toolkit: AiToolkit.Any) => Layer.Layer<ToolResolverService>;
|
|
6
|
+
export declare const makeToolExecutionServiceFromFunctions: (functions: FunctionDefinition<any, any>[], toolkit: AiToolkit.AiToolkit<AiTool.Any>, handlersLayer: Layer.Layer<AiTool.ToHandler<AiTool.AiTool<any>>, never, never>) => Layer.Layer<ToolExecutionService, never, LocalFunctionExecutionService>;
|
|
7
|
+
//# sourceMappingURL=services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/functions/services.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAmB,KAAK,EAAoC,MAAM,QAAQ,CAAC;AAElF,OAAO,EAAuB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC1F,OAAO,EAAE,KAAK,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAGzF,eAAO,MAAM,6BAA6B,GACxC,WAAW,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EACzC,SAAS,SAAS,CAAC,GAAG,KACrB,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAgBjC,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAChD,WAAW,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EACzC,SAAS,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EACxC,eAAe,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAC7E,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,EAAE,6BAA6B,CAiCxE,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
export * from './blueprint';
|
|
2
|
-
export * from './context';
|
|
3
1
|
export * from './conversation';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './research';
|
|
2
|
+
export * from './functions';
|
|
6
3
|
export * from './session';
|
|
4
|
+
export * from './templates';
|
|
7
5
|
export * from './types';
|
|
8
|
-
export * from './
|
|
6
|
+
export * from './errors';
|
|
9
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|