@dxos/assistant 0.8.3 → 0.8.4-main.2e9d522
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/index.mjs +760 -1087
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +760 -1087
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/context/binder.d.ts +34 -0
- package/dist/types/src/context/binder.d.ts.map +1 -0
- package/dist/types/src/context/binding.d.ts +56 -0
- package/dist/types/src/context/binding.d.ts.map +1 -0
- package/dist/types/src/context/index.d.ts +3 -0
- package/dist/types/src/context/index.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +38 -0
- package/dist/types/src/conversation/conversation.d.ts.map +1 -0
- package/dist/types/src/conversation/index.d.ts +2 -0
- package/dist/types/src/conversation/index.d.ts.map +1 -0
- package/dist/types/src/errors.d.ts +38 -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 +135 -41
- 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 +100 -42
- 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 +6 -0
- package/dist/types/src/functions/services.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/research/exa.d.ts +10 -5
- package/dist/types/src/research/exa.d.ts.map +1 -1
- package/dist/types/src/research/graph.d.ts +18 -8
- package/dist/types/src/research/graph.d.ts.map +1 -1
- package/dist/types/src/research/research.d.ts +1 -1
- package/dist/types/src/research/research.d.ts.map +1 -1
- package/dist/types/src/session/session.d.ts +183 -184
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/version-pin.d.ts +2 -2
- package/dist/types/src/session/version-pin.d.ts.map +1 -1
- package/dist/types/src/templates/index.d.ts +2 -0
- package/dist/types/src/templates/index.d.ts.map +1 -0
- package/dist/types/src/templates/prompt.d.ts +30 -0
- package/dist/types/src/templates/prompt.d.ts.map +1 -0
- package/dist/types/src/types.d.ts +10 -0
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +29 -30
- package/src/context/binder.ts +103 -0
- package/src/context/binding.ts +32 -0
- package/src/context/index.ts +6 -0
- package/src/conversation/conversation.ts +96 -0
- package/src/conversation/index.ts +5 -0
- package/src/errors.ts +10 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +6 -18
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +19 -14
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +6 -3
- 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/functions/index.ts +5 -0
- package/src/functions/services.ts +139 -0
- package/src/index.ts +4 -1
- package/src/research/exa.ts +56 -59
- package/src/research/graph.test.ts +50 -1
- package/src/research/graph.ts +85 -53
- package/src/research/instructions-research.tpl +1 -0
- package/src/research/research.test.ts +27 -27
- package/src/research/research.ts +50 -52
- package/src/session/__snapshots__/session.test.ts.snap +32 -0
- package/src/session/session.test.ts +99 -18
- package/src/session/session.ts +230 -443
- package/src/session/version-pin.test.ts +2 -21
- package/src/session/version-pin.ts +5 -5
- package/src/summarization/summarization.test.ts +75 -88
- package/src/templates/assistant.tpl +111 -0
- package/src/templates/index.ts +5 -0
- package/src/templates/prompt.ts +45 -0
- package/src/types.ts +40 -1
- package/dist/lib/node/index.cjs +0 -2178
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/types/src/blueprint/ai.test.d.ts +0 -2
- package/dist/types/src/blueprint/ai.test.d.ts.map +0 -1
- package/dist/types/src/blueprint/blueprint.d.ts +0 -55
- package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprint/blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprint/blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprint/index.d.ts +0 -4
- package/dist/types/src/blueprint/index.d.ts.map +0 -1
- package/dist/types/src/blueprint/logger.d.ts +0 -25
- package/dist/types/src/blueprint/logger.d.ts.map +0 -1
- package/dist/types/src/blueprint/machine.d.ts +0 -143
- package/dist/types/src/blueprint/machine.d.ts.map +0 -1
- package/dist/types/src/blueprint/test-data.d.ts +0 -3
- package/dist/types/src/blueprint/test-data.d.ts.map +0 -1
- package/src/blueprint/ai.test.ts +0 -156
- package/src/blueprint/blueprint.test.ts +0 -151
- package/src/blueprint/blueprint.ts +0 -75
- package/src/blueprint/index.ts +0 -7
- package/src/blueprint/logger.ts +0 -155
- package/src/blueprint/machine.ts +0 -251
- package/src/blueprint/test-data.ts +0 -55
|
@@ -5,16 +5,20 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
5
5
|
sender: {
|
|
6
6
|
name?: string | undefined;
|
|
7
7
|
email?: string | undefined;
|
|
8
|
-
role?: "user" | "assistant" | undefined;
|
|
9
8
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
9
|
+
fields?: {
|
|
10
|
+
readonly value: string;
|
|
11
|
+
readonly category?: string | undefined;
|
|
12
|
+
readonly label: string;
|
|
13
|
+
}[] | undefined;
|
|
10
14
|
image?: string | undefined;
|
|
11
15
|
fullName?: string | undefined;
|
|
12
16
|
preferredName?: string | undefined;
|
|
13
17
|
nickname?: string | undefined;
|
|
14
18
|
organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
15
|
-
description?: string | undefined;
|
|
16
19
|
id: string;
|
|
17
20
|
name?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
18
22
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
19
23
|
image?: string | undefined;
|
|
20
24
|
website?: string | undefined;
|
|
@@ -51,29 +55,24 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
51
55
|
readonly label?: string | undefined;
|
|
52
56
|
}[] | undefined;
|
|
53
57
|
birthday?: string | undefined;
|
|
54
|
-
fields?: {
|
|
55
|
-
readonly value: string;
|
|
56
|
-
readonly label: string;
|
|
57
|
-
readonly category?: string | undefined;
|
|
58
|
-
}[] | undefined;
|
|
59
58
|
}> | undefined;
|
|
60
59
|
identityDid?: string | undefined;
|
|
61
60
|
identityKey?: string | undefined;
|
|
61
|
+
role?: "user" | "assistant" | undefined;
|
|
62
62
|
};
|
|
63
63
|
blocks: ({
|
|
64
|
+
version: unknown;
|
|
65
|
+
_tag: "anchor";
|
|
64
66
|
pending?: boolean | undefined;
|
|
65
|
-
|
|
66
|
-
disposition?: string | undefined;
|
|
67
|
-
text: string;
|
|
67
|
+
objectId: string;
|
|
68
68
|
} | {
|
|
69
|
+
name?: string | undefined;
|
|
70
|
+
_tag: "file";
|
|
69
71
|
pending?: boolean | undefined;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
data: string;
|
|
72
|
+
url: string;
|
|
73
|
+
mediaType?: string | undefined;
|
|
73
74
|
} | {
|
|
74
|
-
pending?: boolean | undefined;
|
|
75
75
|
id?: string | undefined;
|
|
76
|
-
type: "image";
|
|
77
76
|
source?: {
|
|
78
77
|
type: "base64";
|
|
79
78
|
mediaType: string;
|
|
@@ -82,42 +81,96 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
82
81
|
type: "http";
|
|
83
82
|
url: string;
|
|
84
83
|
} | undefined;
|
|
84
|
+
_tag: "image";
|
|
85
|
+
pending?: boolean | undefined;
|
|
85
86
|
} | {
|
|
87
|
+
_tag: "json";
|
|
86
88
|
pending?: boolean | undefined;
|
|
87
|
-
|
|
89
|
+
data: string;
|
|
90
|
+
disposition?: string | undefined;
|
|
91
|
+
} | {
|
|
92
|
+
text: string;
|
|
93
|
+
_tag: "proposal";
|
|
94
|
+
pending?: boolean | undefined;
|
|
95
|
+
} | {
|
|
96
|
+
_tag: "reasoning";
|
|
97
|
+
pending?: boolean | undefined;
|
|
98
|
+
reasoningText?: string | undefined;
|
|
99
|
+
redactedText?: string | undefined;
|
|
100
|
+
signature?: string | undefined;
|
|
101
|
+
} | {
|
|
88
102
|
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
103
|
+
_tag: "reference";
|
|
104
|
+
pending?: boolean | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
_tag: "select";
|
|
107
|
+
pending?: boolean | undefined;
|
|
108
|
+
options: readonly string[];
|
|
109
|
+
} | {
|
|
110
|
+
_tag: "status";
|
|
111
|
+
pending?: boolean | undefined;
|
|
112
|
+
statusText: string;
|
|
113
|
+
} | {
|
|
114
|
+
text: string;
|
|
115
|
+
_tag: "suggest";
|
|
116
|
+
pending?: boolean | undefined;
|
|
89
117
|
} | {
|
|
118
|
+
text: string;
|
|
119
|
+
_tag: "text";
|
|
120
|
+
pending?: boolean | undefined;
|
|
121
|
+
disposition?: string | undefined;
|
|
122
|
+
mimeType?: string | undefined;
|
|
123
|
+
} | {
|
|
124
|
+
name: string;
|
|
125
|
+
input: unknown;
|
|
126
|
+
_tag: "toolCall";
|
|
127
|
+
pending?: boolean | undefined;
|
|
128
|
+
toolCallId: string;
|
|
129
|
+
} | {
|
|
130
|
+
_tag: "toolList";
|
|
90
131
|
pending?: boolean | undefined;
|
|
91
|
-
|
|
132
|
+
} | {
|
|
133
|
+
name: string;
|
|
134
|
+
_tag: "toolResult";
|
|
135
|
+
pending?: boolean | undefined;
|
|
136
|
+
toolCallId: string;
|
|
137
|
+
result: unknown;
|
|
138
|
+
} | {
|
|
92
139
|
text: string;
|
|
140
|
+
_tag: "transcript";
|
|
141
|
+
pending?: boolean | undefined;
|
|
93
142
|
started: string;
|
|
94
143
|
})[];
|
|
95
144
|
properties?: {
|
|
96
145
|
[x: string]: any;
|
|
97
146
|
} | undefined;
|
|
98
147
|
};
|
|
148
|
+
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
99
149
|
readonly options?: {
|
|
100
150
|
readonly timeout?: number | undefined;
|
|
101
151
|
readonly fallbackToRaw?: boolean | undefined;
|
|
102
152
|
} | undefined;
|
|
103
|
-
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
104
153
|
}, {
|
|
105
|
-
message:
|
|
154
|
+
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
106
155
|
id: string;
|
|
107
156
|
created: string;
|
|
108
157
|
sender: {
|
|
109
158
|
name?: string | undefined;
|
|
110
159
|
email?: string | undefined;
|
|
111
|
-
role?: "user" | "assistant" | undefined;
|
|
112
160
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
161
|
+
fields?: {
|
|
162
|
+
readonly value: string;
|
|
163
|
+
readonly category?: string | undefined;
|
|
164
|
+
readonly label: string;
|
|
165
|
+
}[] | undefined;
|
|
113
166
|
image?: string | undefined;
|
|
114
167
|
fullName?: string | undefined;
|
|
115
168
|
preferredName?: string | undefined;
|
|
116
169
|
nickname?: string | undefined;
|
|
117
170
|
organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
118
|
-
description?: string | undefined;
|
|
119
171
|
id: string;
|
|
120
172
|
name?: string | undefined;
|
|
173
|
+
description?: string | undefined;
|
|
121
174
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
122
175
|
image?: string | undefined;
|
|
123
176
|
website?: string | undefined;
|
|
@@ -154,29 +207,24 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
154
207
|
readonly label?: string | undefined;
|
|
155
208
|
}[] | undefined;
|
|
156
209
|
birthday?: string | undefined;
|
|
157
|
-
fields?: {
|
|
158
|
-
readonly value: string;
|
|
159
|
-
readonly label: string;
|
|
160
|
-
readonly category?: string | undefined;
|
|
161
|
-
}[] | undefined;
|
|
162
210
|
}> | undefined;
|
|
163
211
|
identityDid?: string | undefined;
|
|
164
212
|
identityKey?: string | undefined;
|
|
213
|
+
role?: "user" | "assistant" | undefined;
|
|
165
214
|
};
|
|
166
215
|
blocks: ({
|
|
216
|
+
version: unknown;
|
|
217
|
+
_tag: "anchor";
|
|
167
218
|
pending?: boolean | undefined;
|
|
168
|
-
|
|
169
|
-
disposition?: string | undefined;
|
|
170
|
-
text: string;
|
|
219
|
+
objectId: string;
|
|
171
220
|
} | {
|
|
221
|
+
name?: string | undefined;
|
|
222
|
+
_tag: "file";
|
|
172
223
|
pending?: boolean | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
data: string;
|
|
224
|
+
url: string;
|
|
225
|
+
mediaType?: string | undefined;
|
|
176
226
|
} | {
|
|
177
|
-
pending?: boolean | undefined;
|
|
178
227
|
id?: string | undefined;
|
|
179
|
-
type: "image";
|
|
180
228
|
source?: {
|
|
181
229
|
type: "base64";
|
|
182
230
|
mediaType: string;
|
|
@@ -185,24 +233,70 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
185
233
|
type: "http";
|
|
186
234
|
url: string;
|
|
187
235
|
} | undefined;
|
|
236
|
+
_tag: "image";
|
|
237
|
+
pending?: boolean | undefined;
|
|
188
238
|
} | {
|
|
239
|
+
_tag: "json";
|
|
189
240
|
pending?: boolean | undefined;
|
|
190
|
-
|
|
241
|
+
data: string;
|
|
242
|
+
disposition?: string | undefined;
|
|
243
|
+
} | {
|
|
244
|
+
text: string;
|
|
245
|
+
_tag: "proposal";
|
|
246
|
+
pending?: boolean | undefined;
|
|
247
|
+
} | {
|
|
248
|
+
_tag: "reasoning";
|
|
249
|
+
pending?: boolean | undefined;
|
|
250
|
+
reasoningText?: string | undefined;
|
|
251
|
+
redactedText?: string | undefined;
|
|
252
|
+
signature?: string | undefined;
|
|
253
|
+
} | {
|
|
191
254
|
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
255
|
+
_tag: "reference";
|
|
256
|
+
pending?: boolean | undefined;
|
|
257
|
+
} | {
|
|
258
|
+
_tag: "select";
|
|
259
|
+
pending?: boolean | undefined;
|
|
260
|
+
options: readonly string[];
|
|
261
|
+
} | {
|
|
262
|
+
_tag: "status";
|
|
263
|
+
pending?: boolean | undefined;
|
|
264
|
+
statusText: string;
|
|
265
|
+
} | {
|
|
266
|
+
text: string;
|
|
267
|
+
_tag: "suggest";
|
|
268
|
+
pending?: boolean | undefined;
|
|
269
|
+
} | {
|
|
270
|
+
text: string;
|
|
271
|
+
_tag: "text";
|
|
272
|
+
pending?: boolean | undefined;
|
|
273
|
+
disposition?: string | undefined;
|
|
274
|
+
mimeType?: string | undefined;
|
|
275
|
+
} | {
|
|
276
|
+
name: string;
|
|
277
|
+
input: unknown;
|
|
278
|
+
_tag: "toolCall";
|
|
279
|
+
pending?: boolean | undefined;
|
|
280
|
+
toolCallId: string;
|
|
281
|
+
} | {
|
|
282
|
+
_tag: "toolList";
|
|
283
|
+
pending?: boolean | undefined;
|
|
192
284
|
} | {
|
|
285
|
+
name: string;
|
|
286
|
+
_tag: "toolResult";
|
|
193
287
|
pending?: boolean | undefined;
|
|
194
|
-
|
|
288
|
+
toolCallId: string;
|
|
289
|
+
result: unknown;
|
|
290
|
+
} | {
|
|
195
291
|
text: string;
|
|
292
|
+
_tag: "transcript";
|
|
293
|
+
pending?: boolean | undefined;
|
|
196
294
|
started: string;
|
|
197
295
|
})[];
|
|
198
296
|
properties?: {
|
|
199
297
|
[x: string]: any;
|
|
200
298
|
} | undefined;
|
|
201
|
-
}, "id" | typeof import("@dxos/echo-schema").EntityKindId> & {
|
|
202
|
-
id?: string;
|
|
203
|
-
} & {
|
|
204
|
-
id: string;
|
|
205
299
|
};
|
|
206
|
-
timeElapsed: number;
|
|
300
|
+
readonly timeElapsed: number;
|
|
207
301
|
}>;
|
|
208
302
|
//# 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":"AAmBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC1B,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"}
|
|
@@ -12,9 +12,9 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
12
12
|
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
13
13
|
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
14
14
|
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
15
|
id: string;
|
|
17
16
|
name?: string | undefined;
|
|
17
|
+
description?: string | undefined;
|
|
18
18
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
19
19
|
image?: string | undefined;
|
|
20
20
|
website?: string | undefined;
|
|
@@ -63,22 +63,17 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
63
63
|
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
64
64
|
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
65
65
|
}>>;
|
|
66
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").
|
|
66
|
+
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
|
|
67
67
|
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<{
|
|
68
|
+
objectId: import("@dxos/keys").ObjectIdClass;
|
|
69
|
+
version: typeof import("effect/Schema").Unknown;
|
|
70
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
|
|
73
71
|
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<{
|
|
72
|
+
url: typeof import("effect/Schema").String;
|
|
73
|
+
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
74
|
+
mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
75
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
|
|
79
76
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
80
|
-
}>, import("effect/Schema").Struct<{
|
|
81
|
-
type: import("effect/Schema").Literal<["image"]>;
|
|
82
77
|
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
83
78
|
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
84
79
|
type: import("effect/Schema").Literal<["base64"]>;
|
|
@@ -88,21 +83,55 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
88
83
|
type: import("effect/Schema").Literal<["http"]>;
|
|
89
84
|
url: typeof import("effect/Schema").String;
|
|
90
85
|
}>>]>>;
|
|
91
|
-
}
|
|
86
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
|
|
87
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
88
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
89
|
+
data: typeof import("effect/Schema").String;
|
|
90
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
|
|
91
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
92
|
+
text: typeof import("effect/Schema").String;
|
|
93
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
|
|
94
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
95
|
+
reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
96
|
+
redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
97
|
+
signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
98
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
|
|
92
99
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
93
|
-
}>, import("effect/Schema").Struct<{
|
|
94
|
-
type: import("effect/Schema").Literal<["reference"]>;
|
|
95
100
|
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
96
101
|
[x: string]: any;
|
|
97
102
|
id: string;
|
|
98
103
|
}, never>>;
|
|
99
|
-
}
|
|
104
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
|
|
105
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
106
|
+
options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
107
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
|
|
108
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
109
|
+
statusText: typeof import("effect/Schema").String;
|
|
110
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
|
|
111
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
112
|
+
text: typeof import("effect/Schema").String;
|
|
113
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
|
|
114
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
115
|
+
mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
116
|
+
text: typeof import("effect/Schema").String;
|
|
117
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
118
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
|
|
119
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
120
|
+
toolCallId: typeof import("effect/Schema").String;
|
|
121
|
+
name: typeof import("effect/Schema").String;
|
|
122
|
+
input: typeof import("effect/Schema").Unknown;
|
|
123
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolList", {
|
|
124
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
125
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
|
|
126
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
127
|
+
toolCallId: typeof import("effect/Schema").String;
|
|
128
|
+
name: typeof import("effect/Schema").String;
|
|
129
|
+
result: typeof import("effect/Schema").Unknown;
|
|
130
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
|
|
100
131
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
101
|
-
}>, import("effect/Schema").Struct<{
|
|
102
|
-
type: import("effect/Schema").Literal<["transcription"]>;
|
|
103
132
|
started: typeof import("effect/Schema").String;
|
|
104
133
|
text: typeof import("effect/Schema").String;
|
|
105
|
-
}
|
|
134
|
+
}>>]>>>;
|
|
106
135
|
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
107
136
|
}>>;
|
|
108
137
|
objects: Schema.optional<Schema.Array$<Schema.Schema<Expando, Expando, never>>>;
|
|
@@ -124,9 +153,9 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
124
153
|
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
125
154
|
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
126
155
|
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
156
|
id: string;
|
|
129
157
|
name?: string | undefined;
|
|
158
|
+
description?: string | undefined;
|
|
130
159
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
131
160
|
image?: string | undefined;
|
|
132
161
|
website?: string | undefined;
|
|
@@ -175,22 +204,17 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
175
204
|
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
176
205
|
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
177
206
|
}>>;
|
|
178
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").
|
|
207
|
+
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
|
|
179
208
|
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<{
|
|
209
|
+
objectId: import("@dxos/keys").ObjectIdClass;
|
|
210
|
+
version: typeof import("effect/Schema").Unknown;
|
|
211
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
|
|
185
212
|
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<{
|
|
213
|
+
url: typeof import("effect/Schema").String;
|
|
214
|
+
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
215
|
+
mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
216
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
|
|
191
217
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
192
|
-
}>, import("effect/Schema").Struct<{
|
|
193
|
-
type: import("effect/Schema").Literal<["image"]>;
|
|
194
218
|
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
195
219
|
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
196
220
|
type: import("effect/Schema").Literal<["base64"]>;
|
|
@@ -200,21 +224,55 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
200
224
|
type: import("effect/Schema").Literal<["http"]>;
|
|
201
225
|
url: typeof import("effect/Schema").String;
|
|
202
226
|
}>>]>>;
|
|
203
|
-
}
|
|
227
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
|
|
228
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
229
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
230
|
+
data: typeof import("effect/Schema").String;
|
|
231
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
|
|
232
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
233
|
+
text: typeof import("effect/Schema").String;
|
|
234
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
|
|
235
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
236
|
+
reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
237
|
+
redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
238
|
+
signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
239
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
|
|
204
240
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
205
|
-
}>, import("effect/Schema").Struct<{
|
|
206
|
-
type: import("effect/Schema").Literal<["reference"]>;
|
|
207
241
|
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
208
242
|
[x: string]: any;
|
|
209
243
|
id: string;
|
|
210
244
|
}, never>>;
|
|
211
|
-
}
|
|
245
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
|
|
246
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
247
|
+
options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
248
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
|
|
249
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
250
|
+
statusText: typeof import("effect/Schema").String;
|
|
251
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
|
|
252
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
253
|
+
text: typeof import("effect/Schema").String;
|
|
254
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
|
|
255
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
256
|
+
mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
257
|
+
text: typeof import("effect/Schema").String;
|
|
258
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
259
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
|
|
260
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
261
|
+
toolCallId: typeof import("effect/Schema").String;
|
|
262
|
+
name: typeof import("effect/Schema").String;
|
|
263
|
+
input: typeof import("effect/Schema").Unknown;
|
|
264
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolList", {
|
|
265
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
266
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
|
|
267
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
268
|
+
toolCallId: typeof import("effect/Schema").String;
|
|
269
|
+
name: typeof import("effect/Schema").String;
|
|
270
|
+
result: typeof import("effect/Schema").Unknown;
|
|
271
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
|
|
212
272
|
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
213
|
-
}>, import("effect/Schema").Struct<{
|
|
214
|
-
type: import("effect/Schema").Literal<["transcription"]>;
|
|
215
273
|
started: typeof import("effect/Schema").String;
|
|
216
274
|
text: typeof import("effect/Schema").String;
|
|
217
|
-
}
|
|
275
|
+
}>>]>>>;
|
|
218
276
|
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
219
277
|
}>>;
|
|
220
278
|
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+Dk1iB,CAAC;+BAAqD,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAtDzmjB,CAAC;AACH,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC;CAAG;AAEtF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;wBAmDi1iB,CAAC;+BAAqD,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAhDzmjB,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,6 @@
|
|
|
1
|
+
import { Layer } from 'effect';
|
|
2
|
+
import { ToolExecutionService, ToolResolverService } from '@dxos/ai';
|
|
3
|
+
import { type FunctionDefinition } from '@dxos/functions';
|
|
4
|
+
export declare const makeToolResolverFromFunctions: (functions: FunctionDefinition<any, any>[]) => Layer.Layer<ToolResolverService>;
|
|
5
|
+
export declare const makeToolExecutionServiceFromFunctions: (functions: FunctionDefinition<any, any>[]) => Layer.Layer<ToolExecutionService>;
|
|
6
|
+
//# sourceMappingURL=services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/functions/services.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,KAAK,EAAoC,MAAM,QAAQ,CAAC;AAElF,OAAO,EAAuB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE1F,OAAO,EAAuC,KAAK,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AAG9G,eAAO,MAAM,6BAA6B,GACxC,WAAW,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,KACxC,KAAK,CAAC,KAAK,CAAC,mBAAmB,CAWjC,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAChD,WAAW,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,KACxC,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAkBlC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
export * from './context';
|
|
2
|
+
export * from './conversation';
|
|
1
3
|
export * from './extraction';
|
|
4
|
+
export * from './functions';
|
|
2
5
|
export * from './research';
|
|
3
6
|
export * from './session';
|
|
7
|
+
export * from './templates';
|
|
4
8
|
export * from './types';
|
|
5
|
-
export * from './blueprint';
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { AiTool, AiToolkit } from '@effect/ai';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
import { CredentialsService } from '@dxos/functions';
|
|
4
|
+
declare const ExaToolkit_base: AiToolkit.AiToolkit<AiTool.AiTool<"exa_search", Schema.Struct<{
|
|
5
|
+
query: Schema.SchemaClass<string, string, never>;
|
|
6
|
+
}>, typeof Schema.Unknown, typeof Schema.Never, CredentialsService>>;
|
|
7
|
+
export declare class ExaToolkit extends ExaToolkit_base {
|
|
8
|
+
}
|
|
9
|
+
export declare const LiveExaHandler: import("effect/Layer").Layer<AiTool.Handler<"exa_search">, never, never>;
|
|
10
|
+
export declare const MockExaHandler: import("effect/Layer").Layer<AiTool.Handler<"exa_search">, never, never>;
|
|
6
11
|
export {};
|
|
7
12
|
//# sourceMappingURL=exa.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exa.d.ts","sourceRoot":"","sources":["../../../../src/research/exa.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exa.d.ts","sourceRoot":"","sources":["../../../../src/research/exa.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;;;;AAKrD,qBAAa,UAAW,SAAQ,eAS/B;CAAG;AAEJ,eAAO,MAAM,cAAc,0EAmBzB,CAAC;AAEH,eAAO,MAAM,cAAc,0EA2BzB,CAAC"}
|