@dxos/assistant 0.8.4-main.84f28bd → 0.8.4-main.937b3ca

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 (198) hide show
  1. package/dist/lib/browser/chunk-7CDDG6LL.mjs +578 -0
  2. package/dist/lib/browser/chunk-7CDDG6LL.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  4. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  5. package/dist/lib/browser/extraction/index.mjs +225 -0
  6. package/dist/lib/browser/extraction/index.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +723 -1892
  8. package/dist/lib/browser/index.mjs.map +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/testing/index.mjs +32 -0
  11. package/dist/lib/browser/testing/index.mjs.map +7 -0
  12. package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs +579 -0
  13. package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs.map +7 -0
  14. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  15. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  16. package/dist/lib/node-esm/extraction/index.mjs +226 -0
  17. package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
  18. package/dist/lib/node-esm/index.mjs +723 -1893
  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/testing/index.mjs +33 -0
  22. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  23. package/dist/types/src/conversation/context.d.ts +129 -0
  24. package/dist/types/src/conversation/context.d.ts.map +1 -0
  25. package/dist/types/src/conversation/context.test.d.ts +2 -0
  26. package/dist/types/src/conversation/context.test.d.ts.map +1 -0
  27. package/dist/types/src/conversation/conversation.d.ts +29 -32
  28. package/dist/types/src/conversation/conversation.d.ts.map +1 -1
  29. package/dist/types/src/conversation/conversation.test.d.ts +2 -0
  30. package/dist/types/src/conversation/conversation.test.d.ts.map +1 -0
  31. package/dist/types/src/conversation/index.d.ts +1 -0
  32. package/dist/types/src/conversation/index.d.ts.map +1 -1
  33. package/dist/types/src/diff.d.ts +15 -0
  34. package/dist/types/src/diff.d.ts.map +1 -0
  35. package/dist/types/src/diff.test.d.ts +2 -0
  36. package/dist/types/src/diff.test.d.ts.map +1 -0
  37. package/dist/types/src/errors.d.ts +67 -0
  38. package/dist/types/src/errors.d.ts.map +1 -0
  39. package/dist/types/src/execution-graph.d.ts +85 -0
  40. package/dist/types/src/execution-graph.d.ts.map +1 -0
  41. package/dist/types/src/execution-graph.test.d.ts +2 -0
  42. package/dist/types/src/execution-graph.test.d.ts.map +1 -0
  43. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +1 -1
  44. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
  45. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +239 -100
  46. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
  47. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +1 -1
  48. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
  49. package/dist/types/src/extraction/extraction.d.ts +345 -212
  50. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  51. package/dist/types/src/extraction/quotes.d.ts +3 -3
  52. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  53. package/dist/types/src/functions/index.d.ts +2 -0
  54. package/dist/types/src/functions/index.d.ts.map +1 -0
  55. package/dist/types/src/functions/services.d.ts +20 -0
  56. package/dist/types/src/functions/services.d.ts.map +1 -0
  57. package/dist/types/src/functions.test.d.ts +2 -0
  58. package/dist/types/src/functions.test.d.ts.map +1 -0
  59. package/dist/types/src/index.d.ts +5 -5
  60. package/dist/types/src/index.d.ts.map +1 -1
  61. package/dist/types/src/session/GenericToolkit.d.ts +85 -0
  62. package/dist/types/src/session/GenericToolkit.d.ts.map +1 -0
  63. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  64. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  65. package/dist/types/src/session/error-handling.d.ts +4 -0
  66. package/dist/types/src/session/error-handling.d.ts.map +1 -0
  67. package/dist/types/src/session/format.d.ts +12 -0
  68. package/dist/types/src/session/format.d.ts.map +1 -0
  69. package/dist/types/src/session/format.test.d.ts +2 -0
  70. package/dist/types/src/session/format.test.d.ts.map +1 -0
  71. package/dist/types/src/session/index.d.ts +4 -0
  72. package/dist/types/src/session/index.d.ts.map +1 -1
  73. package/dist/types/src/session/observer.d.ts +23 -0
  74. package/dist/types/src/session/observer.d.ts.map +1 -0
  75. package/dist/types/src/session/session.d.ts +41 -268
  76. package/dist/types/src/session/session.d.ts.map +1 -1
  77. package/dist/types/src/session/toolkit.d.ts +14 -0
  78. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  79. package/dist/types/src/session/version-pin.d.ts +5 -5
  80. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  81. package/dist/types/src/templates/index.d.ts +2 -0
  82. package/dist/types/src/templates/index.d.ts.map +1 -0
  83. package/dist/types/src/templates/system.d.ts +18 -0
  84. package/dist/types/src/templates/system.d.ts.map +1 -0
  85. package/dist/types/src/testing/index.d.ts +1 -2
  86. package/dist/types/src/testing/index.d.ts.map +1 -1
  87. package/dist/types/src/testing/layer.d.ts +21 -0
  88. package/dist/types/src/testing/layer.d.ts.map +1 -0
  89. package/dist/types/src/types/artifact.d.ts +28 -0
  90. package/dist/types/src/types/artifact.d.ts.map +1 -0
  91. package/dist/types/src/types/index.d.ts +2 -0
  92. package/dist/types/src/types/index.d.ts.map +1 -0
  93. package/dist/types/tsconfig.tsbuildinfo +1 -1
  94. package/package.json +58 -27
  95. package/src/conversation/context.test.ts +46 -0
  96. package/src/conversation/context.ts +303 -0
  97. package/src/conversation/conversation.test.ts +65 -0
  98. package/src/conversation/conversation.ts +98 -76
  99. package/src/conversation/index.ts +1 -0
  100. package/src/diff.test.ts +43 -0
  101. package/src/diff.ts +84 -0
  102. package/src/errors.ts +15 -0
  103. package/src/execution-graph.test.ts +740 -0
  104. package/src/execution-graph.ts +509 -0
  105. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +14 -25
  106. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +48 -52
  107. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +22 -21
  108. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +43 -41
  109. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
  110. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +3 -1
  111. package/src/extraction/extraction.ts +10 -9
  112. package/src/extraction/quotes.test.ts +3 -3
  113. package/src/extraction/quotes.ts +6 -7
  114. package/src/functions/index.ts +5 -0
  115. package/src/functions/services.ts +180 -0
  116. package/src/functions.conversations.json +1 -0
  117. package/src/functions.test.ts +74 -0
  118. package/src/index.ts +5 -5
  119. package/src/session/GenericToolkit.ts +131 -0
  120. package/src/session/artifact-diff.ts +41 -0
  121. package/src/session/error-handling.ts +41 -0
  122. package/src/session/format.test.ts +124 -0
  123. package/src/session/format.ts +143 -0
  124. package/src/session/index.ts +5 -0
  125. package/src/session/observer.ts +61 -0
  126. package/src/session/session.conversations.json +1 -0
  127. package/src/session/session.test.ts +83 -215
  128. package/src/session/session.ts +181 -529
  129. package/src/session/toolkit.ts +39 -0
  130. package/src/session/version-pin.ts +12 -12
  131. package/src/templates/index.ts +5 -0
  132. package/src/templates/instructions/format.tpl +61 -0
  133. package/src/templates/instructions/system.tpl +48 -0
  134. package/src/templates/system.ts +41 -0
  135. package/src/testing/index.ts +2 -8
  136. package/src/testing/layer.ts +78 -0
  137. package/src/types/artifact.ts +82 -0
  138. package/src/types/index.ts +5 -0
  139. package/src/typings.d.ts +5 -0
  140. package/dist/types/bin/chat.d.ts +0 -2
  141. package/dist/types/bin/chat.d.ts.map +0 -1
  142. package/dist/types/src/blueprint/blueprint.d.ts +0 -41
  143. package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
  144. package/dist/types/src/blueprint/index.d.ts +0 -3
  145. package/dist/types/src/blueprint/index.d.ts.map +0 -1
  146. package/dist/types/src/blueprint/registry.d.ts +0 -7
  147. package/dist/types/src/blueprint/registry.d.ts.map +0 -1
  148. package/dist/types/src/context/binder.d.ts +0 -34
  149. package/dist/types/src/context/binder.d.ts.map +0 -1
  150. package/dist/types/src/context/binding.d.ts +0 -38
  151. package/dist/types/src/context/binding.d.ts.map +0 -1
  152. package/dist/types/src/context/index.d.ts +0 -3
  153. package/dist/types/src/context/index.d.ts.map +0 -1
  154. package/dist/types/src/research/exa.d.ts +0 -7
  155. package/dist/types/src/research/exa.d.ts.map +0 -1
  156. package/dist/types/src/research/graph.d.ts +0 -41
  157. package/dist/types/src/research/graph.d.ts.map +0 -1
  158. package/dist/types/src/research/graph.test.d.ts +0 -2
  159. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  160. package/dist/types/src/research/index.d.ts +0 -4
  161. package/dist/types/src/research/index.d.ts.map +0 -1
  162. package/dist/types/src/research/research.d.ts +0 -10
  163. package/dist/types/src/research/research.d.ts.map +0 -1
  164. package/dist/types/src/research/research.test.d.ts +0 -2
  165. package/dist/types/src/research/research.test.d.ts.map +0 -1
  166. package/dist/types/src/session/version-pin.test.d.ts +0 -2
  167. package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
  168. package/dist/types/src/summarization/summarization.test.d.ts +0 -2
  169. package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
  170. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  171. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  172. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  173. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  174. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  175. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  176. package/dist/types/src/types.d.ts +0 -3
  177. package/dist/types/src/types.d.ts.map +0 -1
  178. package/src/blueprint/blueprint.ts +0 -75
  179. package/src/blueprint/index.ts +0 -6
  180. package/src/blueprint/registry.ts +0 -15
  181. package/src/context/binder.ts +0 -101
  182. package/src/context/binding.ts +0 -31
  183. package/src/context/index.ts +0 -6
  184. package/src/research/exa.ts +0 -100
  185. package/src/research/graph.test.ts +0 -15
  186. package/src/research/graph.ts +0 -337
  187. package/src/research/index.ts +0 -7
  188. package/src/research/instructions-research.tpl +0 -97
  189. package/src/research/research.test.ts +0 -190
  190. package/src/research/research.ts +0 -90
  191. package/src/session/version-pin.test.ts +0 -26
  192. package/src/summarization/summarization.test.ts +0 -221
  193. package/src/testing/exa-search-1748337321991.ts +0 -131
  194. package/src/testing/exa-search-1748337331526.ts +0 -144
  195. package/src/testing/exa-search-1748337344119.ts +0 -133
  196. package/src/typedefs.d.ts +0 -8
  197. package/src/types.ts +0 -8
  198. /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
@@ -1,111 +1,180 @@
1
- import { Schema } from 'effect';
2
- import { Expando } from '@dxos/echo-schema';
3
- import { type FunctionDefinition, type FunctionExecutor } from '@dxos/functions';
1
+ import * as Schema from 'effect/Schema';
2
+ import { Type } from '@dxos/echo';
3
+ import { type FunctionDefinition } from '@dxos/functions';
4
+ import { type FunctionExecutor } from '@dxos/functions-runtime';
4
5
  export declare const ExtractionInput: Schema.Struct<{
5
- message: import("@dxos/echo/Type").obj<Schema.Struct<{
6
- id: import("@dxos/keys").ObjectIdClass;
7
- created: import("effect/Schema").SchemaClass<string, string, never>;
8
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
9
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
10
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
11
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
12
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
13
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
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
- id: string;
17
- name?: string | undefined;
18
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
19
- image?: string | undefined;
20
- website?: string | undefined;
21
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
22
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
23
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
24
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
25
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
26
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
27
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
28
- }>>>>;
29
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
30
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
31
- value: typeof import("effect/Schema").String;
32
- }>>>>;
33
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
34
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
35
- value: typeof import("effect/Schema").String;
36
- }>>>>;
37
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
38
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
39
- value: import("effect/Schema").Struct<{
40
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
41
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
42
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
43
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
44
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
45
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
46
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
47
- }>;
48
- }>>>>;
49
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
50
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
51
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
52
- }>>>>;
53
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
54
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
55
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
56
- label: typeof import("effect/Schema").String;
57
- value: typeof import("effect/Schema").String;
58
- }>>>>;
59
- }>>>>;
60
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
61
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
62
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
63
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
64
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
65
- }>>;
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
- 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<{
73
- 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<{
79
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
80
- }>, import("effect/Schema").Struct<{
81
- type: import("effect/Schema").Literal<["image"]>;
82
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
83
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
84
- type: import("effect/Schema").Literal<["base64"]>;
85
- mediaType: typeof import("effect/Schema").String;
86
- data: typeof import("effect/Schema").String;
87
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
88
- type: import("effect/Schema").Literal<["http"]>;
89
- url: typeof import("effect/Schema").String;
90
- }>>]>>;
91
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
92
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
93
- }>, import("effect/Schema").Struct<{
94
- type: import("effect/Schema").Literal<["reference"]>;
95
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
96
- [x: string]: any;
97
- id: string;
98
- }, never>>;
99
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
100
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
101
- }>, import("effect/Schema").Struct<{
102
- type: import("effect/Schema").Literal<["transcription"]>;
103
- started: typeof import("effect/Schema").String;
104
- text: typeof import("effect/Schema").String;
105
- }>>>]>>>;
106
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
107
- }>>;
108
- objects: Schema.optional<Schema.Array$<Schema.Schema<Expando, Expando, never>>>;
6
+ message: Type.Obj<{
7
+ readonly id: string;
8
+ readonly parentMessage?: string | undefined;
9
+ readonly created: string;
10
+ readonly sender: {
11
+ name?: string | undefined;
12
+ role?: "user" | "assistant" | "tool" | undefined;
13
+ contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
14
+ readonly image?: string | undefined;
15
+ readonly fullName?: string | undefined;
16
+ readonly preferredName?: string | undefined;
17
+ readonly nickname?: string | undefined;
18
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
19
+ readonly description?: string | undefined;
20
+ readonly name?: string | undefined;
21
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
22
+ readonly image?: string | undefined;
23
+ readonly website?: string | undefined;
24
+ } & {
25
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
26
+ }> | undefined;
27
+ readonly jobTitle?: string | undefined;
28
+ readonly department?: string | undefined;
29
+ readonly notes?: string | undefined;
30
+ readonly emails?: {
31
+ readonly value: string;
32
+ readonly label?: string | undefined;
33
+ }[] | undefined;
34
+ readonly identities?: {
35
+ readonly value: string;
36
+ readonly label?: string | undefined;
37
+ }[] | undefined;
38
+ readonly phoneNumbers?: {
39
+ readonly value: string;
40
+ readonly label?: string | undefined;
41
+ }[] | undefined;
42
+ readonly fields?: {
43
+ readonly value: string;
44
+ readonly label: string;
45
+ readonly category?: string | undefined;
46
+ }[] | undefined;
47
+ readonly addresses?: {
48
+ readonly value: {
49
+ readonly street?: string | undefined;
50
+ readonly extended?: string | undefined;
51
+ readonly locality?: string | undefined;
52
+ readonly region?: string | undefined;
53
+ readonly postalCode?: string | undefined;
54
+ readonly postOfficeBoxNumber?: string | undefined;
55
+ readonly country?: string | undefined;
56
+ };
57
+ readonly label?: string | undefined;
58
+ }[] | undefined;
59
+ readonly urls?: {
60
+ readonly value: string;
61
+ readonly label?: string | undefined;
62
+ }[] | undefined;
63
+ readonly birthday?: string | undefined;
64
+ } & {
65
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
66
+ }> | undefined;
67
+ identityDid?: string | undefined;
68
+ identityKey?: string | undefined;
69
+ email?: string | undefined;
70
+ };
71
+ readonly blocks: ({
72
+ pending?: boolean | undefined;
73
+ text: string;
74
+ mimeType?: string | undefined;
75
+ disposition?: string | undefined;
76
+ _tag: "text";
77
+ } | {
78
+ pending?: boolean | undefined;
79
+ _tag: "reasoning";
80
+ reasoningText?: string | undefined;
81
+ redactedText?: string | undefined;
82
+ signature?: string | undefined;
83
+ } | {
84
+ name: string;
85
+ pending?: boolean | undefined;
86
+ _tag: "toolCall";
87
+ toolCallId: string;
88
+ input: string;
89
+ providerExecuted: boolean;
90
+ } | {
91
+ name: string;
92
+ pending?: boolean | undefined;
93
+ _tag: "toolResult";
94
+ toolCallId: string;
95
+ providerExecuted: boolean;
96
+ result?: string | undefined;
97
+ error?: string | undefined;
98
+ } | {
99
+ pending?: boolean | undefined;
100
+ mimeType?: string | undefined;
101
+ _tag: "summary";
102
+ message?: string | undefined;
103
+ model?: string | undefined;
104
+ usage?: {
105
+ readonly inputTokens?: number | undefined;
106
+ readonly outputTokens?: number | undefined;
107
+ readonly totalTokens?: number | undefined;
108
+ } | undefined;
109
+ toolCalls?: number | undefined;
110
+ errors?: number | undefined;
111
+ duration?: number | undefined;
112
+ } | {
113
+ source?: {
114
+ type: "base64";
115
+ mediaType: string;
116
+ data: string;
117
+ } | {
118
+ type: "http";
119
+ url: string;
120
+ } | undefined;
121
+ id?: string | undefined;
122
+ pending?: boolean | undefined;
123
+ _tag: "image";
124
+ } | {
125
+ name?: string | undefined;
126
+ pending?: boolean | undefined;
127
+ _tag: "file";
128
+ mediaType?: string | undefined;
129
+ url: string;
130
+ } | {
131
+ pending?: boolean | undefined;
132
+ _tag: "reference";
133
+ reference: import("@dxos/echo/internal").Ref<any>;
134
+ } | {
135
+ pending?: boolean | undefined;
136
+ text: string;
137
+ _tag: "transcript";
138
+ started: string;
139
+ } | {
140
+ pending?: boolean | undefined;
141
+ _tag: "status";
142
+ statusText: string;
143
+ } | {
144
+ pending?: boolean | undefined;
145
+ text: string;
146
+ _tag: "suggestion";
147
+ } | {
148
+ pending?: boolean | undefined;
149
+ _tag: "select";
150
+ options: string[];
151
+ } | {
152
+ version: unknown;
153
+ pending?: boolean | undefined;
154
+ _tag: "anchor";
155
+ objectId: string;
156
+ } | {
157
+ pending?: boolean | undefined;
158
+ text: string;
159
+ _tag: "proposal";
160
+ } | {
161
+ pending?: boolean | undefined;
162
+ _tag: "toolkit";
163
+ } | {
164
+ pending?: boolean | undefined;
165
+ disposition?: string | undefined;
166
+ _tag: "json";
167
+ data: string;
168
+ })[];
169
+ readonly properties?: {
170
+ [x: string]: any;
171
+ } | undefined;
172
+ }, Schema.Struct.Fields>;
173
+ objects: Schema.optional<Schema.Array$<Schema.Schema<any, {
174
+ id: string;
175
+ } & import("@dxos/echo/internal").AnyProperties, never> & {
176
+ readonly "~@dxos/echo/SchemaKind": import("@dxos/echo/internal").EntityKind.Object;
177
+ } & import("@dxos/echo/internal").TypeMeta>>;
109
178
  options: Schema.optional<Schema.Struct<{
110
179
  timeout: Schema.optional<typeof Schema.Number>;
111
180
  fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
@@ -114,114 +183,178 @@ export declare const ExtractionInput: Schema.Struct<{
114
183
  export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInput> {
115
184
  }
116
185
  export declare const ExtractionOutput: Schema.Struct<{
117
- message: import("@dxos/echo/Type").obj<Schema.Struct<{
118
- id: import("@dxos/keys").ObjectIdClass;
119
- created: import("effect/Schema").SchemaClass<string, string, never>;
120
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
121
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
122
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
123
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
124
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
125
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
126
- 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
- id: string;
129
- name?: string | undefined;
130
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
131
- image?: string | undefined;
132
- website?: string | undefined;
133
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
134
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
135
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
136
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
137
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
138
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
139
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
140
- }>>>>;
141
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
142
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
143
- value: typeof import("effect/Schema").String;
144
- }>>>>;
145
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
146
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
147
- value: typeof import("effect/Schema").String;
148
- }>>>>;
149
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
150
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
151
- value: import("effect/Schema").Struct<{
152
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
153
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
154
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
155
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
156
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
157
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
158
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
159
- }>;
160
- }>>>>;
161
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
162
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
163
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
164
- }>>>>;
165
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
166
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
167
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
168
- label: typeof import("effect/Schema").String;
169
- value: typeof import("effect/Schema").String;
170
- }>>>>;
171
- }>>>>;
172
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
173
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
174
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
175
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
176
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
177
- }>>;
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<{
179
- 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<{
185
- 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<{
191
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
192
- }>, import("effect/Schema").Struct<{
193
- type: import("effect/Schema").Literal<["image"]>;
194
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
195
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
196
- type: import("effect/Schema").Literal<["base64"]>;
197
- mediaType: typeof import("effect/Schema").String;
198
- data: typeof import("effect/Schema").String;
199
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
200
- type: import("effect/Schema").Literal<["http"]>;
201
- url: typeof import("effect/Schema").String;
202
- }>>]>>;
203
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
204
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
205
- }>, import("effect/Schema").Struct<{
206
- type: import("effect/Schema").Literal<["reference"]>;
207
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
208
- [x: string]: any;
209
- id: string;
210
- }, never>>;
211
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
212
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
213
- }>, import("effect/Schema").Struct<{
214
- type: import("effect/Schema").Literal<["transcription"]>;
215
- started: typeof import("effect/Schema").String;
216
- text: typeof import("effect/Schema").String;
217
- }>>>]>>>;
218
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
219
- }>>;
186
+ message: Type.Obj<{
187
+ readonly id: string;
188
+ readonly parentMessage?: string | undefined;
189
+ readonly created: string;
190
+ readonly sender: {
191
+ name?: string | undefined;
192
+ role?: "user" | "assistant" | "tool" | undefined;
193
+ contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
194
+ readonly image?: string | undefined;
195
+ readonly fullName?: string | undefined;
196
+ readonly preferredName?: string | undefined;
197
+ readonly nickname?: string | undefined;
198
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
199
+ readonly description?: string | undefined;
200
+ readonly name?: string | undefined;
201
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
202
+ readonly image?: string | undefined;
203
+ readonly website?: string | undefined;
204
+ } & {
205
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
206
+ }> | undefined;
207
+ readonly jobTitle?: string | undefined;
208
+ readonly department?: string | undefined;
209
+ readonly notes?: string | undefined;
210
+ readonly emails?: {
211
+ readonly value: string;
212
+ readonly label?: string | undefined;
213
+ }[] | undefined;
214
+ readonly identities?: {
215
+ readonly value: string;
216
+ readonly label?: string | undefined;
217
+ }[] | undefined;
218
+ readonly phoneNumbers?: {
219
+ readonly value: string;
220
+ readonly label?: string | undefined;
221
+ }[] | undefined;
222
+ readonly fields?: {
223
+ readonly value: string;
224
+ readonly label: string;
225
+ readonly category?: string | undefined;
226
+ }[] | undefined;
227
+ readonly addresses?: {
228
+ readonly value: {
229
+ readonly street?: string | undefined;
230
+ readonly extended?: string | undefined;
231
+ readonly locality?: string | undefined;
232
+ readonly region?: string | undefined;
233
+ readonly postalCode?: string | undefined;
234
+ readonly postOfficeBoxNumber?: string | undefined;
235
+ readonly country?: string | undefined;
236
+ };
237
+ readonly label?: string | undefined;
238
+ }[] | undefined;
239
+ readonly urls?: {
240
+ readonly value: string;
241
+ readonly label?: string | undefined;
242
+ }[] | undefined;
243
+ readonly birthday?: string | undefined;
244
+ } & {
245
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
246
+ }> | undefined;
247
+ identityDid?: string | undefined;
248
+ identityKey?: string | undefined;
249
+ email?: string | undefined;
250
+ };
251
+ readonly blocks: ({
252
+ pending?: boolean | undefined;
253
+ text: string;
254
+ mimeType?: string | undefined;
255
+ disposition?: string | undefined;
256
+ _tag: "text";
257
+ } | {
258
+ pending?: boolean | undefined;
259
+ _tag: "reasoning";
260
+ reasoningText?: string | undefined;
261
+ redactedText?: string | undefined;
262
+ signature?: string | undefined;
263
+ } | {
264
+ name: string;
265
+ pending?: boolean | undefined;
266
+ _tag: "toolCall";
267
+ toolCallId: string;
268
+ input: string;
269
+ providerExecuted: boolean;
270
+ } | {
271
+ name: string;
272
+ pending?: boolean | undefined;
273
+ _tag: "toolResult";
274
+ toolCallId: string;
275
+ providerExecuted: boolean;
276
+ result?: string | undefined;
277
+ error?: string | undefined;
278
+ } | {
279
+ pending?: boolean | undefined;
280
+ mimeType?: string | undefined;
281
+ _tag: "summary";
282
+ message?: string | undefined;
283
+ model?: string | undefined;
284
+ usage?: {
285
+ readonly inputTokens?: number | undefined;
286
+ readonly outputTokens?: number | undefined;
287
+ readonly totalTokens?: number | undefined;
288
+ } | undefined;
289
+ toolCalls?: number | undefined;
290
+ errors?: number | undefined;
291
+ duration?: number | undefined;
292
+ } | {
293
+ source?: {
294
+ type: "base64";
295
+ mediaType: string;
296
+ data: string;
297
+ } | {
298
+ type: "http";
299
+ url: string;
300
+ } | undefined;
301
+ id?: string | undefined;
302
+ pending?: boolean | undefined;
303
+ _tag: "image";
304
+ } | {
305
+ name?: string | undefined;
306
+ pending?: boolean | undefined;
307
+ _tag: "file";
308
+ mediaType?: string | undefined;
309
+ url: string;
310
+ } | {
311
+ pending?: boolean | undefined;
312
+ _tag: "reference";
313
+ reference: import("@dxos/echo/internal").Ref<any>;
314
+ } | {
315
+ pending?: boolean | undefined;
316
+ text: string;
317
+ _tag: "transcript";
318
+ started: string;
319
+ } | {
320
+ pending?: boolean | undefined;
321
+ _tag: "status";
322
+ statusText: string;
323
+ } | {
324
+ pending?: boolean | undefined;
325
+ text: string;
326
+ _tag: "suggestion";
327
+ } | {
328
+ pending?: boolean | undefined;
329
+ _tag: "select";
330
+ options: string[];
331
+ } | {
332
+ version: unknown;
333
+ pending?: boolean | undefined;
334
+ _tag: "anchor";
335
+ objectId: string;
336
+ } | {
337
+ pending?: boolean | undefined;
338
+ text: string;
339
+ _tag: "proposal";
340
+ } | {
341
+ pending?: boolean | undefined;
342
+ _tag: "toolkit";
343
+ } | {
344
+ pending?: boolean | undefined;
345
+ disposition?: string | undefined;
346
+ _tag: "json";
347
+ data: string;
348
+ })[];
349
+ readonly properties?: {
350
+ [x: string]: any;
351
+ } | undefined;
352
+ }, Schema.Struct.Fields>;
220
353
  timeElapsed: typeof Schema.Number;
221
354
  }>;
222
355
  export interface ExtractionOutput extends Schema.Schema.Type<typeof ExtractionOutput> {
223
356
  }
224
- export type ProcessTranscriptMessageParams = {
357
+ export type ProcessTranscriptMessageProps = {
225
358
  input: ExtractionInput;
226
359
  function: FunctionDefinition<ExtractionInput, ExtractionOutput>;
227
360
  executor: FunctionExecutor;
@@ -242,5 +375,5 @@ export type ExtractionFunction = FunctionDefinition<ExtractionInput, ExtractionO
242
375
  /**
243
376
  * Extract entities from the transcript message and add them to the message.
244
377
  */
245
- export declare const processTranscriptMessage: (params: ProcessTranscriptMessageParams) => Promise<ExtractionOutput>;
378
+ export declare const processTranscriptMessage: (params: ProcessTranscriptMessageProps) => Promise<ExtractionOutput>;
246
379
  //# sourceMappingURL=extraction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"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