@dxos/assistant 0.8.3 → 0.8.4-main.28f8d3d

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.
Files changed (152) hide show
  1. package/dist/lib/browser/chunk-6WRGDEMH.mjs +89 -0
  2. package/dist/lib/browser/chunk-6WRGDEMH.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-NZGGCEF3.mjs +341 -0
  4. package/dist/lib/browser/chunk-NZGGCEF3.mjs.map +7 -0
  5. package/dist/lib/browser/extraction/index.mjs +269 -0
  6. package/dist/lib/browser/extraction/index.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +306 -2110
  8. package/dist/lib/browser/index.mjs.map +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/named-entity-recognition-O46UTCLR.mjs +13 -0
  11. package/dist/lib/browser/named-entity-recognition-O46UTCLR.mjs.map +7 -0
  12. package/dist/lib/node-esm/chunk-3UU5V4FS.mjs +91 -0
  13. package/dist/lib/node-esm/chunk-3UU5V4FS.mjs.map +7 -0
  14. package/dist/lib/node-esm/chunk-XOOPGSGW.mjs +343 -0
  15. package/dist/lib/node-esm/chunk-XOOPGSGW.mjs.map +7 -0
  16. package/dist/lib/node-esm/extraction/index.mjs +270 -0
  17. package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
  18. package/dist/lib/node-esm/index.mjs +305 -2110
  19. package/dist/lib/node-esm/index.mjs.map +4 -4
  20. package/dist/lib/node-esm/meta.json +1 -1
  21. package/dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs +14 -0
  22. package/dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs.map +7 -0
  23. package/dist/types/src/conversation/context.d.ts +90 -0
  24. package/dist/types/src/conversation/context.d.ts.map +1 -0
  25. package/dist/types/src/conversation/conversation.d.ts +50 -0
  26. package/dist/types/src/conversation/conversation.d.ts.map +1 -0
  27. package/dist/types/src/conversation/index.d.ts +3 -0
  28. package/dist/types/src/conversation/index.d.ts.map +1 -0
  29. package/dist/types/src/errors.d.ts +39 -0
  30. package/dist/types/src/errors.d.ts.map +1 -0
  31. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
  32. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +151 -53
  33. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
  34. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +1 -1
  35. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
  36. package/dist/types/src/extraction/extraction.d.ts +106 -44
  37. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  38. package/dist/types/src/functions/index.d.ts +2 -0
  39. package/dist/types/src/functions/index.d.ts.map +1 -0
  40. package/dist/types/src/functions/services.d.ts +7 -0
  41. package/dist/types/src/functions/services.d.ts.map +1 -0
  42. package/dist/types/src/index.d.ts +4 -3
  43. package/dist/types/src/index.d.ts.map +1 -1
  44. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  45. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  46. package/dist/types/src/session/format.d.ts +168 -0
  47. package/dist/types/src/session/format.d.ts.map +1 -0
  48. package/dist/types/src/session/format.test.d.ts +2 -0
  49. package/dist/types/src/session/format.test.d.ts.map +1 -0
  50. package/dist/types/src/session/index.d.ts +1 -0
  51. package/dist/types/src/session/index.d.ts.map +1 -1
  52. package/dist/types/src/session/session.d.ts +125 -219
  53. package/dist/types/src/session/session.d.ts.map +1 -1
  54. package/dist/types/src/session/version-pin.d.ts +4 -4
  55. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  56. package/dist/types/src/templates/index.d.ts +2 -0
  57. package/dist/types/src/templates/index.d.ts.map +1 -0
  58. package/dist/types/src/templates/system.d.ts +22 -0
  59. package/dist/types/src/templates/system.d.ts.map +1 -0
  60. package/dist/types/src/types.d.ts +13 -0
  61. package/dist/types/src/types.d.ts.map +1 -1
  62. package/dist/types/tsconfig.tsbuildinfo +1 -1
  63. package/package.json +46 -31
  64. package/src/conversation/context.ts +133 -0
  65. package/src/conversation/conversation.ts +125 -0
  66. package/src/conversation/index.ts +6 -0
  67. package/src/errors.ts +10 -0
  68. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +7 -18
  69. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +23 -17
  70. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +4 -3
  71. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +7 -4
  72. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +2 -2
  73. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +1 -1
  74. package/src/extraction/quotes.test.ts +1 -1
  75. package/src/extraction/quotes.ts +1 -1
  76. package/src/functions/index.ts +5 -0
  77. package/src/functions/services.ts +114 -0
  78. package/src/index.ts +4 -3
  79. package/src/session/__snapshots__/session.test.ts.snap +32 -0
  80. package/src/session/artifact-diff.ts +37 -0
  81. package/src/session/format.test.ts +60 -0
  82. package/src/session/format.ts +139 -0
  83. package/src/session/index.ts +1 -0
  84. package/src/session/session.test.ts +95 -19
  85. package/src/session/session.ts +224 -494
  86. package/src/session/version-pin.test.ts +2 -21
  87. package/src/session/version-pin.ts +9 -9
  88. package/src/summarization/summarization.test.ts +82 -106
  89. package/src/templates/format.tpl +55 -0
  90. package/src/templates/index.ts +5 -0
  91. package/src/templates/system.tpl +47 -0
  92. package/src/templates/system.ts +32 -0
  93. package/src/types.ts +45 -1
  94. package/src/typings.d.ts +5 -0
  95. package/dist/lib/node/index.cjs +0 -2178
  96. package/dist/lib/node/index.cjs.map +0 -7
  97. package/dist/lib/node/meta.json +0 -1
  98. package/dist/types/bin/chat.d.ts +0 -2
  99. package/dist/types/bin/chat.d.ts.map +0 -1
  100. package/dist/types/src/blueprint/ai.test.d.ts +0 -2
  101. package/dist/types/src/blueprint/ai.test.d.ts.map +0 -1
  102. package/dist/types/src/blueprint/blueprint.d.ts +0 -55
  103. package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
  104. package/dist/types/src/blueprint/blueprint.test.d.ts +0 -2
  105. package/dist/types/src/blueprint/blueprint.test.d.ts.map +0 -1
  106. package/dist/types/src/blueprint/index.d.ts +0 -4
  107. package/dist/types/src/blueprint/index.d.ts.map +0 -1
  108. package/dist/types/src/blueprint/logger.d.ts +0 -25
  109. package/dist/types/src/blueprint/logger.d.ts.map +0 -1
  110. package/dist/types/src/blueprint/machine.d.ts +0 -143
  111. package/dist/types/src/blueprint/machine.d.ts.map +0 -1
  112. package/dist/types/src/blueprint/test-data.d.ts +0 -3
  113. package/dist/types/src/blueprint/test-data.d.ts.map +0 -1
  114. package/dist/types/src/research/exa.d.ts +0 -7
  115. package/dist/types/src/research/exa.d.ts.map +0 -1
  116. package/dist/types/src/research/graph.d.ts +0 -41
  117. package/dist/types/src/research/graph.d.ts.map +0 -1
  118. package/dist/types/src/research/graph.test.d.ts +0 -2
  119. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  120. package/dist/types/src/research/index.d.ts +0 -4
  121. package/dist/types/src/research/index.d.ts.map +0 -1
  122. package/dist/types/src/research/research.d.ts +0 -10
  123. package/dist/types/src/research/research.d.ts.map +0 -1
  124. package/dist/types/src/research/research.test.d.ts +0 -2
  125. package/dist/types/src/research/research.test.d.ts.map +0 -1
  126. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  127. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  128. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  129. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  130. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  131. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  132. package/dist/types/src/testing/index.d.ts +0 -3
  133. package/dist/types/src/testing/index.d.ts.map +0 -1
  134. package/src/blueprint/ai.test.ts +0 -156
  135. package/src/blueprint/blueprint.test.ts +0 -151
  136. package/src/blueprint/blueprint.ts +0 -75
  137. package/src/blueprint/index.ts +0 -7
  138. package/src/blueprint/logger.ts +0 -155
  139. package/src/blueprint/machine.ts +0 -251
  140. package/src/blueprint/test-data.ts +0 -55
  141. package/src/research/exa.ts +0 -100
  142. package/src/research/graph.test.ts +0 -15
  143. package/src/research/graph.ts +0 -337
  144. package/src/research/index.ts +0 -7
  145. package/src/research/instructions-research.tpl +0 -97
  146. package/src/research/research.test.ts +0 -190
  147. package/src/research/research.ts +0 -89
  148. package/src/testing/exa-search-1748337321991.ts +0 -131
  149. package/src/testing/exa-search-1748337331526.ts +0 -144
  150. package/src/testing/exa-search-1748337344119.ts +0 -133
  151. package/src/testing/index.ts +0 -11
  152. package/src/typedefs.d.ts +0 -8
@@ -1,20 +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> & {
14
+ fields?: {
15
+ readonly value: string;
16
+ readonly category?: string | undefined;
17
+ readonly label: string;
18
+ }[] | undefined;
10
19
  image?: string | undefined;
11
20
  fullName?: string | undefined;
12
21
  preferredName?: string | undefined;
13
22
  nickname?: string | undefined;
14
23
  organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
15
- description?: string | undefined;
16
24
  id: string;
17
25
  name?: string | undefined;
26
+ description?: string | undefined;
18
27
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
19
28
  image?: string | undefined;
20
29
  website?: string | undefined;
@@ -51,73 +60,119 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
51
60
  readonly label?: string | undefined;
52
61
  }[] | undefined;
53
62
  birthday?: string | undefined;
54
- fields?: {
55
- readonly value: string;
56
- readonly label: string;
57
- readonly category?: string | undefined;
58
- }[] | undefined;
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
- type: "text";
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
- type: "json";
71
- disposition?: string | undefined;
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;
92
+ } | {
93
+ _tag: "json";
94
+ pending?: boolean | undefined;
95
+ data: string;
96
+ disposition?: string | undefined;
85
97
  } | {
98
+ text: string;
99
+ _tag: "proposal";
86
100
  pending?: boolean | undefined;
87
- type: "reference";
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;
89
119
  } | {
120
+ text: string;
121
+ _tag: "suggest";
90
122
  pending?: boolean | undefined;
91
- type: "transcription";
123
+ } | {
92
124
  text: string;
125
+ _tag: "text";
126
+ pending?: boolean | undefined;
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
+ } | {
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: Omit<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
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> & {
163
+ fields?: {
164
+ readonly value: string;
165
+ readonly category?: string | undefined;
166
+ readonly label: string;
167
+ }[] | undefined;
113
168
  image?: string | undefined;
114
169
  fullName?: string | undefined;
115
170
  preferredName?: string | undefined;
116
171
  nickname?: string | undefined;
117
172
  organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
118
- description?: string | undefined;
119
173
  id: string;
120
174
  name?: string | undefined;
175
+ description?: string | undefined;
121
176
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
122
177
  image?: string | undefined;
123
178
  website?: string | undefined;
@@ -154,55 +209,98 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
154
209
  readonly label?: string | undefined;
155
210
  }[] | undefined;
156
211
  birthday?: string | undefined;
157
- fields?: {
158
- readonly value: string;
159
- readonly label: string;
160
- readonly category?: string | undefined;
161
- }[] | undefined;
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
- type: "text";
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
- type: "json";
174
- disposition?: string | undefined;
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;
241
+ } | {
242
+ _tag: "json";
243
+ pending?: boolean | undefined;
244
+ data: string;
245
+ disposition?: string | undefined;
188
246
  } | {
247
+ text: string;
248
+ _tag: "proposal";
189
249
  pending?: boolean | undefined;
190
- type: "reference";
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;
192
268
  } | {
269
+ text: string;
270
+ _tag: "suggest";
193
271
  pending?: boolean | undefined;
194
- type: "transcription";
272
+ } | {
195
273
  text: string;
274
+ _tag: "text";
275
+ pending?: boolean | undefined;
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
+ } | {
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":"AAgBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC1B,CAAC"}
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 TokenClassificationSingle, type TokenClassificationPipelineType } from '@xenova/transformers';
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,yBAAyB,EAE9B,KAAK,+BAA+B,EACrC,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"}
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").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
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").extend<import("effect/Schema").Struct<{
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
- }>, import("effect/Schema").Struct<{
69
- type: import("effect/Schema").Literal<["text"]>;
70
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
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
- }>, import("effect/Schema").Struct<{
75
- type: import("effect/Schema").Literal<["json"]>;
76
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
77
- data: typeof import("effect/Schema").String;
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
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
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
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
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").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
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").extend<import("effect/Schema").Struct<{
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
- }>, import("effect/Schema").Struct<{
181
- type: import("effect/Schema").Literal<["text"]>;
182
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
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
- }>, import("effect/Schema").Struct<{
187
- type: import("effect/Schema").Literal<["json"]>;
188
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
189
- data: typeof import("effect/Schema").String;
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
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
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
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
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;;;;;;;;;;;+BA+Dq4iB,CAAC;;wBAA8E,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAtDrrjB,CAAC;AACH,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC;CAAG;AAEtF,eAAO,MAAM,gBAAgB;;;;;;;;;;;+BAmDo4iB,CAAC;;wBAA8E,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAhDrrjB,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"}
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,2 @@
1
+ export * from './services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 +1,7 @@
1
- export * from './extraction';
2
- export * from './research';
1
+ export * from './conversation';
2
+ export * from './functions';
3
3
  export * from './session';
4
+ export * from './templates';
4
5
  export * from './types';
5
- export * from './blueprint';
6
+ export * from './errors';
6
7
  //# 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,SAAS,CAAC;AACxB,cAAc,aAAa,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"}