@dxos/assistant 0.8.4-main.f9ba587 → 0.8.4-main.fcfe5033a5

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 (233) hide show
  1. package/README.md +1 -0
  2. package/dist/lib/neutral/chunk-2TBLG3XY.mjs +1793 -0
  3. package/dist/lib/neutral/chunk-2TBLG3XY.mjs.map +7 -0
  4. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  5. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
  6. package/dist/lib/neutral/extraction/index.mjs +219 -0
  7. package/dist/lib/neutral/extraction/index.mjs.map +7 -0
  8. package/dist/lib/neutral/index.mjs +537 -0
  9. package/dist/lib/neutral/index.mjs.map +7 -0
  10. package/dist/lib/neutral/meta.json +1 -0
  11. package/dist/lib/neutral/testing/index.mjs +111 -0
  12. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  13. package/dist/types/src/conversation/context.d.ts +155 -0
  14. package/dist/types/src/conversation/context.d.ts.map +1 -0
  15. package/dist/types/src/conversation/context.test.d.ts +2 -0
  16. package/dist/types/src/conversation/context.test.d.ts.map +1 -0
  17. package/dist/types/src/conversation/index.d.ts +2 -1
  18. package/dist/types/src/conversation/index.d.ts.map +1 -1
  19. package/dist/types/src/conversation/session.d.ts +78 -0
  20. package/dist/types/src/conversation/session.d.ts.map +1 -0
  21. package/dist/types/src/conversation/session.test.d.ts.map +1 -0
  22. package/dist/types/src/diff.d.ts +17 -0
  23. package/dist/types/src/diff.d.ts.map +1 -0
  24. package/dist/types/src/diff.test.d.ts +2 -0
  25. package/dist/types/src/diff.test.d.ts.map +1 -0
  26. package/dist/types/src/errors.d.ts +67 -0
  27. package/dist/types/src/errors.d.ts.map +1 -0
  28. package/dist/types/src/execution-graph.d.ts +85 -0
  29. package/dist/types/src/execution-graph.d.ts.map +1 -0
  30. package/dist/types/src/execution-graph.test.d.ts +2 -0
  31. package/dist/types/src/execution-graph.test.d.ts.map +1 -0
  32. package/dist/types/src/extraction/extraction-ner-function/index.d.ts +0 -1
  33. package/dist/types/src/extraction/extraction-ner-function/index.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 +1066 -215
  37. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  38. package/dist/types/src/extraction/index.d.ts +0 -1
  39. package/dist/types/src/extraction/index.d.ts.map +1 -1
  40. package/dist/types/src/extraction/quotes.d.ts +3 -3
  41. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  42. package/dist/types/src/functions/index.d.ts +2 -0
  43. package/dist/types/src/functions/index.d.ts.map +1 -0
  44. package/dist/types/src/functions/services.d.ts +17 -0
  45. package/dist/types/src/functions/services.d.ts.map +1 -0
  46. package/dist/types/src/functions.test.d.ts +2 -0
  47. package/dist/types/src/functions.test.d.ts.map +1 -0
  48. package/dist/types/src/index.d.ts +7 -5
  49. package/dist/types/src/index.d.ts.map +1 -1
  50. package/dist/types/src/service/AgentService.d.ts +75 -0
  51. package/dist/types/src/service/AgentService.d.ts.map +1 -0
  52. package/dist/types/src/service/AgentService.test.d.ts +2 -0
  53. package/dist/types/src/service/AgentService.test.d.ts.map +1 -0
  54. package/dist/types/src/service/agent-process.d.ts +21 -0
  55. package/dist/types/src/service/agent-process.d.ts.map +1 -0
  56. package/dist/types/src/service/index.d.ts +3 -0
  57. package/dist/types/src/service/index.d.ts.map +1 -0
  58. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  59. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  60. package/dist/types/src/session/error-handling.d.ts +4 -0
  61. package/dist/types/src/session/error-handling.d.ts.map +1 -0
  62. package/dist/types/src/session/format.d.ts +16 -0
  63. package/dist/types/src/session/format.d.ts.map +1 -0
  64. package/dist/types/src/session/format.test.d.ts +2 -0
  65. package/dist/types/src/session/format.test.d.ts.map +1 -0
  66. package/dist/types/src/session/index.d.ts +5 -1
  67. package/dist/types/src/session/index.d.ts.map +1 -1
  68. package/dist/types/src/session/observer.d.ts +23 -0
  69. package/dist/types/src/session/observer.d.ts.map +1 -0
  70. package/dist/types/src/session/request.d.ts +106 -0
  71. package/dist/types/src/session/request.d.ts.map +1 -0
  72. package/dist/types/src/session/request.test.d.ts +2 -0
  73. package/dist/types/src/session/request.test.d.ts.map +1 -0
  74. package/dist/types/src/session/session-ollama.test.d.ts +2 -0
  75. package/dist/types/src/session/session-ollama.test.d.ts.map +1 -0
  76. package/dist/types/src/session/toolkit.d.ts +16 -0
  77. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  78. package/dist/types/src/session/version-pin.d.ts +5 -5
  79. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  80. package/dist/types/src/templates/index.d.ts +2 -0
  81. package/dist/types/src/templates/index.d.ts.map +1 -0
  82. package/dist/types/src/templates/system.d.ts +17 -0
  83. package/dist/types/src/templates/system.d.ts.map +1 -0
  84. package/dist/types/src/testing/index.d.ts +1 -2
  85. package/dist/types/src/testing/index.d.ts.map +1 -1
  86. package/dist/types/src/testing/layer.d.ts +40 -0
  87. package/dist/types/src/testing/layer.d.ts.map +1 -0
  88. package/dist/types/src/tracing.d.ts +223 -0
  89. package/dist/types/src/tracing.d.ts.map +1 -0
  90. package/dist/types/src/types/artifact.d.ts +28 -0
  91. package/dist/types/src/types/artifact.d.ts.map +1 -0
  92. package/dist/types/src/types/index.d.ts +2 -0
  93. package/dist/types/src/types/index.d.ts.map +1 -0
  94. package/dist/types/tsconfig.tsbuildinfo +1 -1
  95. package/package.json +60 -29
  96. package/src/conversation/context.test.ts +52 -0
  97. package/src/conversation/context.ts +403 -0
  98. package/src/conversation/index.ts +2 -1
  99. package/src/conversation/session.test.ts +58 -0
  100. package/src/conversation/session.ts +300 -0
  101. package/src/diff.test.ts +74 -0
  102. package/src/diff.ts +93 -0
  103. package/src/errors.ts +15 -0
  104. package/src/execution-graph.test.ts +740 -0
  105. package/src/execution-graph.ts +509 -0
  106. package/src/extraction/extraction-ner-function/index.ts +0 -1
  107. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
  108. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +3 -1
  109. package/src/extraction/extraction.ts +44 -15
  110. package/src/extraction/index.ts +0 -1
  111. package/src/extraction/quotes.test.ts +3 -3
  112. package/src/extraction/quotes.ts +6 -7
  113. package/src/functions/index.ts +5 -0
  114. package/src/functions/services.ts +214 -0
  115. package/src/functions.conversations.json +1 -0
  116. package/src/functions.test.ts +88 -0
  117. package/src/index.ts +7 -5
  118. package/src/service/AgentService.conversations.json +1 -0
  119. package/src/service/AgentService.test.ts +169 -0
  120. package/src/service/AgentService.ts +184 -0
  121. package/src/service/agent-process.ts +364 -0
  122. package/src/service/index.ts +6 -0
  123. package/src/session/artifact-diff.ts +41 -0
  124. package/src/session/error-handling.ts +41 -0
  125. package/src/session/format.test.ts +132 -0
  126. package/src/session/format.ts +149 -0
  127. package/src/session/index.ts +5 -1
  128. package/src/session/observer.ts +62 -0
  129. package/src/session/request.conversations.json +1 -0
  130. package/src/session/request.test.ts +195 -0
  131. package/src/session/request.ts +344 -0
  132. package/src/session/session-ollama.test.ts +81 -0
  133. package/src/session/toolkit.ts +47 -0
  134. package/src/session/version-pin.ts +12 -12
  135. package/src/templates/index.ts +5 -0
  136. package/src/templates/instructions/format.tpl +57 -0
  137. package/src/templates/instructions/system.tpl +85 -0
  138. package/src/templates/system.ts +42 -0
  139. package/src/testing/index.ts +2 -8
  140. package/src/testing/layer.ts +236 -0
  141. package/src/tracing.ts +43 -0
  142. package/src/types/artifact.ts +89 -0
  143. package/src/types/index.ts +5 -0
  144. package/src/typings.d.ts +5 -0
  145. package/dist/lib/browser/index.mjs +0 -2019
  146. package/dist/lib/browser/index.mjs.map +0 -7
  147. package/dist/lib/browser/meta.json +0 -1
  148. package/dist/lib/node-esm/index.mjs +0 -2021
  149. package/dist/lib/node-esm/index.mjs.map +0 -7
  150. package/dist/lib/node-esm/meta.json +0 -1
  151. package/dist/types/bin/chat.d.ts +0 -2
  152. package/dist/types/bin/chat.d.ts.map +0 -1
  153. package/dist/types/src/blueprint/blueprint.d.ts +0 -41
  154. package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
  155. package/dist/types/src/blueprint/index.d.ts +0 -3
  156. package/dist/types/src/blueprint/index.d.ts.map +0 -1
  157. package/dist/types/src/blueprint/registry.d.ts +0 -7
  158. package/dist/types/src/blueprint/registry.d.ts.map +0 -1
  159. package/dist/types/src/context/binder.d.ts +0 -34
  160. package/dist/types/src/context/binder.d.ts.map +0 -1
  161. package/dist/types/src/context/binding.d.ts +0 -38
  162. package/dist/types/src/context/binding.d.ts.map +0 -1
  163. package/dist/types/src/context/index.d.ts +0 -3
  164. package/dist/types/src/context/index.d.ts.map +0 -1
  165. package/dist/types/src/conversation/conversation.d.ts +0 -44
  166. package/dist/types/src/conversation/conversation.d.ts.map +0 -1
  167. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +0 -4
  168. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +0 -1
  169. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +0 -2
  170. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +0 -1
  171. package/dist/types/src/extraction/extraction-llm-function/index.d.ts +0 -2
  172. package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +0 -1
  173. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +0 -208
  174. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +0 -1
  175. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +0 -2
  176. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +0 -1
  177. package/dist/types/src/research/exa.d.ts +0 -7
  178. package/dist/types/src/research/exa.d.ts.map +0 -1
  179. package/dist/types/src/research/graph.d.ts +0 -41
  180. package/dist/types/src/research/graph.d.ts.map +0 -1
  181. package/dist/types/src/research/graph.test.d.ts +0 -2
  182. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  183. package/dist/types/src/research/index.d.ts +0 -4
  184. package/dist/types/src/research/index.d.ts.map +0 -1
  185. package/dist/types/src/research/research.d.ts +0 -10
  186. package/dist/types/src/research/research.d.ts.map +0 -1
  187. package/dist/types/src/research/research.test.d.ts +0 -2
  188. package/dist/types/src/research/research.test.d.ts.map +0 -1
  189. package/dist/types/src/session/session.d.ts +0 -283
  190. package/dist/types/src/session/session.d.ts.map +0 -1
  191. package/dist/types/src/session/session.test.d.ts.map +0 -1
  192. package/dist/types/src/session/version-pin.test.d.ts +0 -2
  193. package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
  194. package/dist/types/src/summarization/summarization.test.d.ts +0 -2
  195. package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
  196. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  197. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  198. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  199. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  200. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  201. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  202. package/dist/types/src/types.d.ts +0 -3
  203. package/dist/types/src/types.d.ts.map +0 -1
  204. package/src/blueprint/blueprint.ts +0 -75
  205. package/src/blueprint/index.ts +0 -6
  206. package/src/blueprint/registry.ts +0 -15
  207. package/src/context/binder.ts +0 -101
  208. package/src/context/binding.ts +0 -31
  209. package/src/context/index.ts +0 -6
  210. package/src/conversation/conversation.ts +0 -103
  211. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +0 -95
  212. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +0 -66
  213. package/src/extraction/extraction-llm-function/index.ts +0 -5
  214. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +0 -115
  215. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +0 -54
  216. package/src/research/exa.ts +0 -100
  217. package/src/research/graph.test.ts +0 -15
  218. package/src/research/graph.ts +0 -337
  219. package/src/research/index.ts +0 -7
  220. package/src/research/instructions-research.tpl +0 -97
  221. package/src/research/research.test.ts +0 -190
  222. package/src/research/research.ts +0 -90
  223. package/src/session/session.test.ts +0 -275
  224. package/src/session/session.ts +0 -582
  225. package/src/session/version-pin.test.ts +0 -26
  226. package/src/summarization/summarization.test.ts +0 -221
  227. package/src/testing/exa-search-1748337321991.ts +0 -131
  228. package/src/testing/exa-search-1748337331526.ts +0 -144
  229. package/src/testing/exa-search-1748337344119.ts +0 -133
  230. package/src/typedefs.d.ts +0 -8
  231. package/src/types.ts +0 -8
  232. /package/dist/types/src/{session → conversation}/session.test.d.ts +0 -0
  233. /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 { Obj } from '@dxos/echo';
3
+ import { Operation } from '@dxos/operation';
4
4
  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>>>;
5
+ message: import("@dxos/echo/Type").Obj<{
6
+ readonly id: string;
7
+ readonly parentMessage?: string | undefined;
8
+ readonly threadId?: string | undefined;
9
+ readonly created: string;
10
+ readonly sender: {
11
+ readonly name?: string | undefined;
12
+ readonly role?: "user" | "assistant" | "tool" | undefined;
13
+ readonly 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?: readonly {
31
+ readonly value: string;
32
+ readonly label?: string | undefined;
33
+ }[] | undefined;
34
+ readonly identities?: readonly {
35
+ readonly value: string;
36
+ readonly label?: string | undefined;
37
+ }[] | undefined;
38
+ readonly phoneNumbers?: readonly {
39
+ readonly value: string;
40
+ readonly label?: string | undefined;
41
+ }[] | undefined;
42
+ readonly fields?: readonly {
43
+ readonly value: string;
44
+ readonly label: string;
45
+ readonly category?: string | undefined;
46
+ }[] | undefined;
47
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
68
+ readonly identityKey?: string | undefined;
69
+ readonly email?: string | undefined;
70
+ };
71
+ readonly blocks: readonly ({
72
+ readonly pending?: boolean | undefined;
73
+ readonly text: string;
74
+ readonly mimeType?: string | undefined;
75
+ readonly disposition?: string | undefined;
76
+ readonly _tag: "text";
77
+ } | {
78
+ readonly pending?: boolean | undefined;
79
+ readonly _tag: "reasoning";
80
+ readonly reasoningText?: string | undefined;
81
+ readonly redactedText?: string | undefined;
82
+ readonly signature?: string | undefined;
83
+ } | {
84
+ readonly name: string;
85
+ readonly pending?: boolean | undefined;
86
+ readonly _tag: "toolCall";
87
+ readonly toolCallId: string;
88
+ readonly input: string;
89
+ readonly providerExecuted: boolean;
90
+ } | {
91
+ readonly name: string;
92
+ readonly pending?: boolean | undefined;
93
+ readonly _tag: "toolResult";
94
+ readonly toolCallId: string;
95
+ readonly providerExecuted: boolean;
96
+ readonly result?: string | undefined;
97
+ readonly error?: string | undefined;
98
+ } | {
99
+ readonly pending?: boolean | undefined;
100
+ readonly mimeType?: string | undefined;
101
+ readonly _tag: "stats";
102
+ readonly message?: string | undefined;
103
+ readonly model?: string | undefined;
104
+ readonly usage?: {
105
+ readonly inputTokens?: number | undefined;
106
+ readonly outputTokens?: number | undefined;
107
+ readonly totalTokens?: number | undefined;
108
+ } | undefined;
109
+ readonly toolCalls?: number | undefined;
110
+ readonly errors?: number | undefined;
111
+ readonly duration?: number | undefined;
112
+ } | {
113
+ readonly source?: {
114
+ readonly type: "base64";
115
+ readonly mediaType: string;
116
+ readonly data: string;
117
+ } | {
118
+ readonly type: "http";
119
+ readonly url: string;
120
+ } | undefined;
121
+ readonly id?: string | undefined;
122
+ readonly pending?: boolean | undefined;
123
+ readonly _tag: "image";
124
+ } | {
125
+ readonly name?: string | undefined;
126
+ readonly pending?: boolean | undefined;
127
+ readonly _tag: "file";
128
+ readonly mediaType?: string | undefined;
129
+ readonly url: string;
130
+ } | {
131
+ readonly pending?: boolean | undefined;
132
+ readonly _tag: "reference";
133
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
134
+ } | {
135
+ readonly pending?: boolean | undefined;
136
+ readonly text: string;
137
+ readonly _tag: "transcript";
138
+ readonly started: string;
139
+ } | {
140
+ readonly pending?: boolean | undefined;
141
+ readonly _tag: "status";
142
+ readonly statusText: string;
143
+ } | {
144
+ readonly pending?: boolean | undefined;
145
+ readonly text: string;
146
+ readonly _tag: "suggestion";
147
+ } | {
148
+ readonly pending?: boolean | undefined;
149
+ readonly _tag: "select";
150
+ readonly options: string[];
151
+ } | {
152
+ readonly version: unknown;
153
+ readonly pending?: boolean | undefined;
154
+ readonly _tag: "anchor";
155
+ readonly objectId: string;
156
+ } | {
157
+ readonly pending?: boolean | undefined;
158
+ readonly text: string;
159
+ readonly _tag: "proposal";
160
+ } | {
161
+ readonly pending?: boolean | undefined;
162
+ readonly _tag: "summary";
163
+ readonly content: string;
164
+ } | {
165
+ readonly pending?: boolean | undefined;
166
+ readonly _tag: "toolkit";
167
+ } | {
168
+ readonly pending?: boolean | undefined;
169
+ readonly disposition?: string | undefined;
170
+ readonly _tag: "json";
171
+ readonly data: string;
172
+ })[];
173
+ readonly properties?: {
174
+ readonly [x: string]: any;
175
+ } | undefined;
176
+ }, Schema.Struct.Fields>;
177
+ objects: Schema.optional<Schema.Array$<import("@dxos/echo/Type").Obj<Obj.Unknown, Schema.Struct.Fields>>>;
109
178
  options: Schema.optional<Schema.Struct<{
110
179
  timeout: Schema.optional<typeof Schema.Number>;
111
180
  fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
@@ -114,117 +183,185 @@ 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: import("@dxos/echo/Type").Obj<{
187
+ readonly id: string;
188
+ readonly parentMessage?: string | undefined;
189
+ readonly threadId?: string | undefined;
190
+ readonly created: string;
191
+ readonly sender: {
192
+ readonly name?: string | undefined;
193
+ readonly role?: "user" | "assistant" | "tool" | undefined;
194
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
195
+ readonly image?: string | undefined;
196
+ readonly fullName?: string | undefined;
197
+ readonly preferredName?: string | undefined;
198
+ readonly nickname?: string | undefined;
199
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
200
+ readonly description?: string | undefined;
201
+ readonly name?: string | undefined;
202
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
203
+ readonly image?: string | undefined;
204
+ readonly website?: string | undefined;
205
+ } & {
206
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
207
+ }> | undefined;
208
+ readonly jobTitle?: string | undefined;
209
+ readonly department?: string | undefined;
210
+ readonly notes?: string | undefined;
211
+ readonly emails?: readonly {
212
+ readonly value: string;
213
+ readonly label?: string | undefined;
214
+ }[] | undefined;
215
+ readonly identities?: readonly {
216
+ readonly value: string;
217
+ readonly label?: string | undefined;
218
+ }[] | undefined;
219
+ readonly phoneNumbers?: readonly {
220
+ readonly value: string;
221
+ readonly label?: string | undefined;
222
+ }[] | undefined;
223
+ readonly fields?: readonly {
224
+ readonly value: string;
225
+ readonly label: string;
226
+ readonly category?: string | undefined;
227
+ }[] | undefined;
228
+ readonly addresses?: readonly {
229
+ readonly value: {
230
+ readonly street?: string | undefined;
231
+ readonly extended?: string | undefined;
232
+ readonly locality?: string | undefined;
233
+ readonly region?: string | undefined;
234
+ readonly postalCode?: string | undefined;
235
+ readonly postOfficeBoxNumber?: string | undefined;
236
+ readonly country?: string | undefined;
237
+ };
238
+ readonly label?: string | undefined;
239
+ }[] | undefined;
240
+ readonly urls?: readonly {
241
+ readonly value: string;
242
+ readonly label?: string | undefined;
243
+ }[] | undefined;
244
+ readonly birthday?: string | undefined;
245
+ } & {
246
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
247
+ }> | undefined;
248
+ readonly identityDid?: string | undefined;
249
+ readonly identityKey?: string | undefined;
250
+ readonly email?: string | undefined;
251
+ };
252
+ readonly blocks: readonly ({
253
+ readonly pending?: boolean | undefined;
254
+ readonly text: string;
255
+ readonly mimeType?: string | undefined;
256
+ readonly disposition?: string | undefined;
257
+ readonly _tag: "text";
258
+ } | {
259
+ readonly pending?: boolean | undefined;
260
+ readonly _tag: "reasoning";
261
+ readonly reasoningText?: string | undefined;
262
+ readonly redactedText?: string | undefined;
263
+ readonly signature?: string | undefined;
264
+ } | {
265
+ readonly name: string;
266
+ readonly pending?: boolean | undefined;
267
+ readonly _tag: "toolCall";
268
+ readonly toolCallId: string;
269
+ readonly input: string;
270
+ readonly providerExecuted: boolean;
271
+ } | {
272
+ readonly name: string;
273
+ readonly pending?: boolean | undefined;
274
+ readonly _tag: "toolResult";
275
+ readonly toolCallId: string;
276
+ readonly providerExecuted: boolean;
277
+ readonly result?: string | undefined;
278
+ readonly error?: string | undefined;
279
+ } | {
280
+ readonly pending?: boolean | undefined;
281
+ readonly mimeType?: string | undefined;
282
+ readonly _tag: "stats";
283
+ readonly message?: string | undefined;
284
+ readonly model?: string | undefined;
285
+ readonly usage?: {
286
+ readonly inputTokens?: number | undefined;
287
+ readonly outputTokens?: number | undefined;
288
+ readonly totalTokens?: number | undefined;
289
+ } | undefined;
290
+ readonly toolCalls?: number | undefined;
291
+ readonly errors?: number | undefined;
292
+ readonly duration?: number | undefined;
293
+ } | {
294
+ readonly source?: {
295
+ readonly type: "base64";
296
+ readonly mediaType: string;
297
+ readonly data: string;
298
+ } | {
299
+ readonly type: "http";
300
+ readonly url: string;
301
+ } | undefined;
302
+ readonly id?: string | undefined;
303
+ readonly pending?: boolean | undefined;
304
+ readonly _tag: "image";
305
+ } | {
306
+ readonly name?: string | undefined;
307
+ readonly pending?: boolean | undefined;
308
+ readonly _tag: "file";
309
+ readonly mediaType?: string | undefined;
310
+ readonly url: string;
311
+ } | {
312
+ readonly pending?: boolean | undefined;
313
+ readonly _tag: "reference";
314
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
315
+ } | {
316
+ readonly pending?: boolean | undefined;
317
+ readonly text: string;
318
+ readonly _tag: "transcript";
319
+ readonly started: string;
320
+ } | {
321
+ readonly pending?: boolean | undefined;
322
+ readonly _tag: "status";
323
+ readonly statusText: string;
324
+ } | {
325
+ readonly pending?: boolean | undefined;
326
+ readonly text: string;
327
+ readonly _tag: "suggestion";
328
+ } | {
329
+ readonly pending?: boolean | undefined;
330
+ readonly _tag: "select";
331
+ readonly options: string[];
332
+ } | {
333
+ readonly version: unknown;
334
+ readonly pending?: boolean | undefined;
335
+ readonly _tag: "anchor";
336
+ readonly objectId: string;
337
+ } | {
338
+ readonly pending?: boolean | undefined;
339
+ readonly text: string;
340
+ readonly _tag: "proposal";
341
+ } | {
342
+ readonly pending?: boolean | undefined;
343
+ readonly _tag: "summary";
344
+ readonly content: string;
345
+ } | {
346
+ readonly pending?: boolean | undefined;
347
+ readonly _tag: "toolkit";
348
+ } | {
349
+ readonly pending?: boolean | undefined;
350
+ readonly disposition?: string | undefined;
351
+ readonly _tag: "json";
352
+ readonly data: string;
353
+ })[];
354
+ readonly properties?: {
355
+ readonly [x: string]: any;
356
+ } | undefined;
357
+ }, Schema.Struct.Fields>;
220
358
  timeElapsed: typeof Schema.Number;
221
359
  }>;
222
360
  export interface ExtractionOutput extends Schema.Schema.Type<typeof ExtractionOutput> {
223
361
  }
224
- export type ProcessTranscriptMessageParams = {
362
+ export type ProcessTranscriptMessageProps = {
225
363
  input: ExtractionInput;
226
- function: FunctionDefinition<ExtractionInput, ExtractionOutput>;
227
- executor: FunctionExecutor;
364
+ function: Operation.Definition<ExtractionInput, ExtractionOutput>;
228
365
  options?: {
229
366
  /**
230
367
  * Timeout for the entity extraction.
@@ -238,9 +375,723 @@ export type ProcessTranscriptMessageParams = {
238
375
  fallbackToRaw?: boolean;
239
376
  };
240
377
  };
241
- export type ExtractionFunction = FunctionDefinition<ExtractionInput, ExtractionOutput>;
378
+ export type ExtractionFunction = Operation.Definition<ExtractionInput, ExtractionOutput>;
379
+ /**
380
+ * Placeholder for Anthropic-based entity extraction.
381
+ * Implementation is currently disabled pending restoration of extraction logic.
382
+ */
383
+ export declare const extractionAnthropicFunction: Operation.Definition<{
384
+ readonly options?: {
385
+ readonly timeout?: number | undefined;
386
+ readonly fallbackToRaw?: boolean | undefined;
387
+ } | undefined;
388
+ readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
389
+ readonly id: string;
390
+ readonly parentMessage?: string | undefined;
391
+ readonly threadId?: string | undefined;
392
+ readonly created: string;
393
+ readonly sender: {
394
+ readonly name?: string | undefined;
395
+ readonly role?: "user" | "assistant" | "tool" | undefined;
396
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
397
+ readonly image?: string | undefined;
398
+ readonly fullName?: string | undefined;
399
+ readonly preferredName?: string | undefined;
400
+ readonly nickname?: string | undefined;
401
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
402
+ readonly description?: string | undefined;
403
+ readonly name?: string | undefined;
404
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
405
+ readonly image?: string | undefined;
406
+ readonly website?: string | undefined;
407
+ } & {
408
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
409
+ }> | undefined;
410
+ readonly jobTitle?: string | undefined;
411
+ readonly department?: string | undefined;
412
+ readonly notes?: string | undefined;
413
+ readonly emails?: readonly {
414
+ readonly value: string;
415
+ readonly label?: string | undefined;
416
+ }[] | undefined;
417
+ readonly identities?: readonly {
418
+ readonly value: string;
419
+ readonly label?: string | undefined;
420
+ }[] | undefined;
421
+ readonly phoneNumbers?: readonly {
422
+ readonly value: string;
423
+ readonly label?: string | undefined;
424
+ }[] | undefined;
425
+ readonly fields?: readonly {
426
+ readonly value: string;
427
+ readonly label: string;
428
+ readonly category?: string | undefined;
429
+ }[] | undefined;
430
+ readonly addresses?: readonly {
431
+ readonly value: {
432
+ readonly street?: string | undefined;
433
+ readonly extended?: string | undefined;
434
+ readonly locality?: string | undefined;
435
+ readonly region?: string | undefined;
436
+ readonly postalCode?: string | undefined;
437
+ readonly postOfficeBoxNumber?: string | undefined;
438
+ readonly country?: string | undefined;
439
+ };
440
+ readonly label?: string | undefined;
441
+ }[] | undefined;
442
+ readonly urls?: readonly {
443
+ readonly value: string;
444
+ readonly label?: string | undefined;
445
+ }[] | undefined;
446
+ readonly birthday?: string | undefined;
447
+ } & {
448
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
449
+ }> | undefined;
450
+ readonly identityDid?: string | undefined;
451
+ readonly identityKey?: string | undefined;
452
+ readonly email?: string | undefined;
453
+ };
454
+ readonly blocks: readonly ({
455
+ readonly pending?: boolean | undefined;
456
+ readonly text: string;
457
+ readonly mimeType?: string | undefined;
458
+ readonly disposition?: string | undefined;
459
+ readonly _tag: "text";
460
+ } | {
461
+ readonly pending?: boolean | undefined;
462
+ readonly _tag: "reasoning";
463
+ readonly reasoningText?: string | undefined;
464
+ readonly redactedText?: string | undefined;
465
+ readonly signature?: string | undefined;
466
+ } | {
467
+ readonly name: string;
468
+ readonly pending?: boolean | undefined;
469
+ readonly _tag: "toolCall";
470
+ readonly toolCallId: string;
471
+ readonly input: string;
472
+ readonly providerExecuted: boolean;
473
+ } | {
474
+ readonly name: string;
475
+ readonly pending?: boolean | undefined;
476
+ readonly _tag: "toolResult";
477
+ readonly toolCallId: string;
478
+ readonly providerExecuted: boolean;
479
+ readonly result?: string | undefined;
480
+ readonly error?: string | undefined;
481
+ } | {
482
+ readonly pending?: boolean | undefined;
483
+ readonly mimeType?: string | undefined;
484
+ readonly _tag: "stats";
485
+ readonly message?: string | undefined;
486
+ readonly model?: string | undefined;
487
+ readonly usage?: {
488
+ readonly inputTokens?: number | undefined;
489
+ readonly outputTokens?: number | undefined;
490
+ readonly totalTokens?: number | undefined;
491
+ } | undefined;
492
+ readonly toolCalls?: number | undefined;
493
+ readonly errors?: number | undefined;
494
+ readonly duration?: number | undefined;
495
+ } | {
496
+ readonly source?: {
497
+ readonly type: "base64";
498
+ readonly mediaType: string;
499
+ readonly data: string;
500
+ } | {
501
+ readonly type: "http";
502
+ readonly url: string;
503
+ } | undefined;
504
+ readonly id?: string | undefined;
505
+ readonly pending?: boolean | undefined;
506
+ readonly _tag: "image";
507
+ } | {
508
+ readonly name?: string | undefined;
509
+ readonly pending?: boolean | undefined;
510
+ readonly _tag: "file";
511
+ readonly mediaType?: string | undefined;
512
+ readonly url: string;
513
+ } | {
514
+ readonly pending?: boolean | undefined;
515
+ readonly _tag: "reference";
516
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
517
+ } | {
518
+ readonly pending?: boolean | undefined;
519
+ readonly text: string;
520
+ readonly _tag: "transcript";
521
+ readonly started: string;
522
+ } | {
523
+ readonly pending?: boolean | undefined;
524
+ readonly _tag: "status";
525
+ readonly statusText: string;
526
+ } | {
527
+ readonly pending?: boolean | undefined;
528
+ readonly text: string;
529
+ readonly _tag: "suggestion";
530
+ } | {
531
+ readonly pending?: boolean | undefined;
532
+ readonly _tag: "select";
533
+ readonly options: string[];
534
+ } | {
535
+ readonly version: unknown;
536
+ readonly pending?: boolean | undefined;
537
+ readonly _tag: "anchor";
538
+ readonly objectId: string;
539
+ } | {
540
+ readonly pending?: boolean | undefined;
541
+ readonly text: string;
542
+ readonly _tag: "proposal";
543
+ } | {
544
+ readonly pending?: boolean | undefined;
545
+ readonly _tag: "summary";
546
+ readonly content: string;
547
+ } | {
548
+ readonly pending?: boolean | undefined;
549
+ readonly _tag: "toolkit";
550
+ } | {
551
+ readonly pending?: boolean | undefined;
552
+ readonly disposition?: string | undefined;
553
+ readonly _tag: "json";
554
+ readonly data: string;
555
+ })[];
556
+ readonly properties?: {
557
+ readonly [x: string]: any;
558
+ } | undefined;
559
+ };
560
+ readonly objects?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown)[] | undefined;
561
+ }, {
562
+ readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
563
+ readonly id: string;
564
+ readonly parentMessage?: string | undefined;
565
+ readonly threadId?: string | undefined;
566
+ readonly created: string;
567
+ readonly sender: {
568
+ readonly name?: string | undefined;
569
+ readonly role?: "user" | "assistant" | "tool" | undefined;
570
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
571
+ readonly image?: string | undefined;
572
+ readonly fullName?: string | undefined;
573
+ readonly preferredName?: string | undefined;
574
+ readonly nickname?: string | undefined;
575
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
576
+ readonly description?: string | undefined;
577
+ readonly name?: string | undefined;
578
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
579
+ readonly image?: string | undefined;
580
+ readonly website?: string | undefined;
581
+ } & {
582
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
583
+ }> | undefined;
584
+ readonly jobTitle?: string | undefined;
585
+ readonly department?: string | undefined;
586
+ readonly notes?: string | undefined;
587
+ readonly emails?: readonly {
588
+ readonly value: string;
589
+ readonly label?: string | undefined;
590
+ }[] | undefined;
591
+ readonly identities?: readonly {
592
+ readonly value: string;
593
+ readonly label?: string | undefined;
594
+ }[] | undefined;
595
+ readonly phoneNumbers?: readonly {
596
+ readonly value: string;
597
+ readonly label?: string | undefined;
598
+ }[] | undefined;
599
+ readonly fields?: readonly {
600
+ readonly value: string;
601
+ readonly label: string;
602
+ readonly category?: string | undefined;
603
+ }[] | undefined;
604
+ readonly addresses?: readonly {
605
+ readonly value: {
606
+ readonly street?: string | undefined;
607
+ readonly extended?: string | undefined;
608
+ readonly locality?: string | undefined;
609
+ readonly region?: string | undefined;
610
+ readonly postalCode?: string | undefined;
611
+ readonly postOfficeBoxNumber?: string | undefined;
612
+ readonly country?: string | undefined;
613
+ };
614
+ readonly label?: string | undefined;
615
+ }[] | undefined;
616
+ readonly urls?: readonly {
617
+ readonly value: string;
618
+ readonly label?: string | undefined;
619
+ }[] | undefined;
620
+ readonly birthday?: string | undefined;
621
+ } & {
622
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
623
+ }> | undefined;
624
+ readonly identityDid?: string | undefined;
625
+ readonly identityKey?: string | undefined;
626
+ readonly email?: string | undefined;
627
+ };
628
+ readonly blocks: readonly ({
629
+ readonly pending?: boolean | undefined;
630
+ readonly text: string;
631
+ readonly mimeType?: string | undefined;
632
+ readonly disposition?: string | undefined;
633
+ readonly _tag: "text";
634
+ } | {
635
+ readonly pending?: boolean | undefined;
636
+ readonly _tag: "reasoning";
637
+ readonly reasoningText?: string | undefined;
638
+ readonly redactedText?: string | undefined;
639
+ readonly signature?: string | undefined;
640
+ } | {
641
+ readonly name: string;
642
+ readonly pending?: boolean | undefined;
643
+ readonly _tag: "toolCall";
644
+ readonly toolCallId: string;
645
+ readonly input: string;
646
+ readonly providerExecuted: boolean;
647
+ } | {
648
+ readonly name: string;
649
+ readonly pending?: boolean | undefined;
650
+ readonly _tag: "toolResult";
651
+ readonly toolCallId: string;
652
+ readonly providerExecuted: boolean;
653
+ readonly result?: string | undefined;
654
+ readonly error?: string | undefined;
655
+ } | {
656
+ readonly pending?: boolean | undefined;
657
+ readonly mimeType?: string | undefined;
658
+ readonly _tag: "stats";
659
+ readonly message?: string | undefined;
660
+ readonly model?: string | undefined;
661
+ readonly usage?: {
662
+ readonly inputTokens?: number | undefined;
663
+ readonly outputTokens?: number | undefined;
664
+ readonly totalTokens?: number | undefined;
665
+ } | undefined;
666
+ readonly toolCalls?: number | undefined;
667
+ readonly errors?: number | undefined;
668
+ readonly duration?: number | undefined;
669
+ } | {
670
+ readonly source?: {
671
+ readonly type: "base64";
672
+ readonly mediaType: string;
673
+ readonly data: string;
674
+ } | {
675
+ readonly type: "http";
676
+ readonly url: string;
677
+ } | undefined;
678
+ readonly id?: string | undefined;
679
+ readonly pending?: boolean | undefined;
680
+ readonly _tag: "image";
681
+ } | {
682
+ readonly name?: string | undefined;
683
+ readonly pending?: boolean | undefined;
684
+ readonly _tag: "file";
685
+ readonly mediaType?: string | undefined;
686
+ readonly url: string;
687
+ } | {
688
+ readonly pending?: boolean | undefined;
689
+ readonly _tag: "reference";
690
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
691
+ } | {
692
+ readonly pending?: boolean | undefined;
693
+ readonly text: string;
694
+ readonly _tag: "transcript";
695
+ readonly started: string;
696
+ } | {
697
+ readonly pending?: boolean | undefined;
698
+ readonly _tag: "status";
699
+ readonly statusText: string;
700
+ } | {
701
+ readonly pending?: boolean | undefined;
702
+ readonly text: string;
703
+ readonly _tag: "suggestion";
704
+ } | {
705
+ readonly pending?: boolean | undefined;
706
+ readonly _tag: "select";
707
+ readonly options: string[];
708
+ } | {
709
+ readonly version: unknown;
710
+ readonly pending?: boolean | undefined;
711
+ readonly _tag: "anchor";
712
+ readonly objectId: string;
713
+ } | {
714
+ readonly pending?: boolean | undefined;
715
+ readonly text: string;
716
+ readonly _tag: "proposal";
717
+ } | {
718
+ readonly pending?: boolean | undefined;
719
+ readonly _tag: "summary";
720
+ readonly content: string;
721
+ } | {
722
+ readonly pending?: boolean | undefined;
723
+ readonly _tag: "toolkit";
724
+ } | {
725
+ readonly pending?: boolean | undefined;
726
+ readonly disposition?: string | undefined;
727
+ readonly _tag: "json";
728
+ readonly data: string;
729
+ })[];
730
+ readonly properties?: {
731
+ readonly [x: string]: any;
732
+ } | undefined;
733
+ };
734
+ readonly timeElapsed: number;
735
+ }, never>;
736
+ /**
737
+ * Placeholder for NER-based entity extraction.
738
+ * Implementation is currently disabled pending restoration of extraction logic.
739
+ */
740
+ export declare const extractionNerFunction: Operation.Definition<{
741
+ readonly options?: {
742
+ readonly timeout?: number | undefined;
743
+ readonly fallbackToRaw?: boolean | undefined;
744
+ } | undefined;
745
+ readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
746
+ readonly id: string;
747
+ readonly parentMessage?: string | undefined;
748
+ readonly threadId?: string | undefined;
749
+ readonly created: string;
750
+ readonly sender: {
751
+ readonly name?: string | undefined;
752
+ readonly role?: "user" | "assistant" | "tool" | undefined;
753
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
754
+ readonly image?: string | undefined;
755
+ readonly fullName?: string | undefined;
756
+ readonly preferredName?: string | undefined;
757
+ readonly nickname?: string | undefined;
758
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
759
+ readonly description?: string | undefined;
760
+ readonly name?: string | undefined;
761
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
762
+ readonly image?: string | undefined;
763
+ readonly website?: string | undefined;
764
+ } & {
765
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
766
+ }> | undefined;
767
+ readonly jobTitle?: string | undefined;
768
+ readonly department?: string | undefined;
769
+ readonly notes?: string | undefined;
770
+ readonly emails?: readonly {
771
+ readonly value: string;
772
+ readonly label?: string | undefined;
773
+ }[] | undefined;
774
+ readonly identities?: readonly {
775
+ readonly value: string;
776
+ readonly label?: string | undefined;
777
+ }[] | undefined;
778
+ readonly phoneNumbers?: readonly {
779
+ readonly value: string;
780
+ readonly label?: string | undefined;
781
+ }[] | undefined;
782
+ readonly fields?: readonly {
783
+ readonly value: string;
784
+ readonly label: string;
785
+ readonly category?: string | undefined;
786
+ }[] | undefined;
787
+ readonly addresses?: readonly {
788
+ readonly value: {
789
+ readonly street?: string | undefined;
790
+ readonly extended?: string | undefined;
791
+ readonly locality?: string | undefined;
792
+ readonly region?: string | undefined;
793
+ readonly postalCode?: string | undefined;
794
+ readonly postOfficeBoxNumber?: string | undefined;
795
+ readonly country?: string | undefined;
796
+ };
797
+ readonly label?: string | undefined;
798
+ }[] | undefined;
799
+ readonly urls?: readonly {
800
+ readonly value: string;
801
+ readonly label?: string | undefined;
802
+ }[] | undefined;
803
+ readonly birthday?: string | undefined;
804
+ } & {
805
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
806
+ }> | undefined;
807
+ readonly identityDid?: string | undefined;
808
+ readonly identityKey?: string | undefined;
809
+ readonly email?: string | undefined;
810
+ };
811
+ readonly blocks: readonly ({
812
+ readonly pending?: boolean | undefined;
813
+ readonly text: string;
814
+ readonly mimeType?: string | undefined;
815
+ readonly disposition?: string | undefined;
816
+ readonly _tag: "text";
817
+ } | {
818
+ readonly pending?: boolean | undefined;
819
+ readonly _tag: "reasoning";
820
+ readonly reasoningText?: string | undefined;
821
+ readonly redactedText?: string | undefined;
822
+ readonly signature?: string | undefined;
823
+ } | {
824
+ readonly name: string;
825
+ readonly pending?: boolean | undefined;
826
+ readonly _tag: "toolCall";
827
+ readonly toolCallId: string;
828
+ readonly input: string;
829
+ readonly providerExecuted: boolean;
830
+ } | {
831
+ readonly name: string;
832
+ readonly pending?: boolean | undefined;
833
+ readonly _tag: "toolResult";
834
+ readonly toolCallId: string;
835
+ readonly providerExecuted: boolean;
836
+ readonly result?: string | undefined;
837
+ readonly error?: string | undefined;
838
+ } | {
839
+ readonly pending?: boolean | undefined;
840
+ readonly mimeType?: string | undefined;
841
+ readonly _tag: "stats";
842
+ readonly message?: string | undefined;
843
+ readonly model?: string | undefined;
844
+ readonly usage?: {
845
+ readonly inputTokens?: number | undefined;
846
+ readonly outputTokens?: number | undefined;
847
+ readonly totalTokens?: number | undefined;
848
+ } | undefined;
849
+ readonly toolCalls?: number | undefined;
850
+ readonly errors?: number | undefined;
851
+ readonly duration?: number | undefined;
852
+ } | {
853
+ readonly source?: {
854
+ readonly type: "base64";
855
+ readonly mediaType: string;
856
+ readonly data: string;
857
+ } | {
858
+ readonly type: "http";
859
+ readonly url: string;
860
+ } | undefined;
861
+ readonly id?: string | undefined;
862
+ readonly pending?: boolean | undefined;
863
+ readonly _tag: "image";
864
+ } | {
865
+ readonly name?: string | undefined;
866
+ readonly pending?: boolean | undefined;
867
+ readonly _tag: "file";
868
+ readonly mediaType?: string | undefined;
869
+ readonly url: string;
870
+ } | {
871
+ readonly pending?: boolean | undefined;
872
+ readonly _tag: "reference";
873
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
874
+ } | {
875
+ readonly pending?: boolean | undefined;
876
+ readonly text: string;
877
+ readonly _tag: "transcript";
878
+ readonly started: string;
879
+ } | {
880
+ readonly pending?: boolean | undefined;
881
+ readonly _tag: "status";
882
+ readonly statusText: string;
883
+ } | {
884
+ readonly pending?: boolean | undefined;
885
+ readonly text: string;
886
+ readonly _tag: "suggestion";
887
+ } | {
888
+ readonly pending?: boolean | undefined;
889
+ readonly _tag: "select";
890
+ readonly options: string[];
891
+ } | {
892
+ readonly version: unknown;
893
+ readonly pending?: boolean | undefined;
894
+ readonly _tag: "anchor";
895
+ readonly objectId: string;
896
+ } | {
897
+ readonly pending?: boolean | undefined;
898
+ readonly text: string;
899
+ readonly _tag: "proposal";
900
+ } | {
901
+ readonly pending?: boolean | undefined;
902
+ readonly _tag: "summary";
903
+ readonly content: string;
904
+ } | {
905
+ readonly pending?: boolean | undefined;
906
+ readonly _tag: "toolkit";
907
+ } | {
908
+ readonly pending?: boolean | undefined;
909
+ readonly disposition?: string | undefined;
910
+ readonly _tag: "json";
911
+ readonly data: string;
912
+ })[];
913
+ readonly properties?: {
914
+ readonly [x: string]: any;
915
+ } | undefined;
916
+ };
917
+ readonly objects?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown)[] | undefined;
918
+ }, {
919
+ readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
920
+ readonly id: string;
921
+ readonly parentMessage?: string | undefined;
922
+ readonly threadId?: string | undefined;
923
+ readonly created: string;
924
+ readonly sender: {
925
+ readonly name?: string | undefined;
926
+ readonly role?: "user" | "assistant" | "tool" | undefined;
927
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
928
+ readonly image?: string | undefined;
929
+ readonly fullName?: string | undefined;
930
+ readonly preferredName?: string | undefined;
931
+ readonly nickname?: string | undefined;
932
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
933
+ readonly description?: string | undefined;
934
+ readonly name?: string | undefined;
935
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
936
+ readonly image?: string | undefined;
937
+ readonly website?: string | undefined;
938
+ } & {
939
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
940
+ }> | undefined;
941
+ readonly jobTitle?: string | undefined;
942
+ readonly department?: string | undefined;
943
+ readonly notes?: string | undefined;
944
+ readonly emails?: readonly {
945
+ readonly value: string;
946
+ readonly label?: string | undefined;
947
+ }[] | undefined;
948
+ readonly identities?: readonly {
949
+ readonly value: string;
950
+ readonly label?: string | undefined;
951
+ }[] | undefined;
952
+ readonly phoneNumbers?: readonly {
953
+ readonly value: string;
954
+ readonly label?: string | undefined;
955
+ }[] | undefined;
956
+ readonly fields?: readonly {
957
+ readonly value: string;
958
+ readonly label: string;
959
+ readonly category?: string | undefined;
960
+ }[] | undefined;
961
+ readonly addresses?: readonly {
962
+ readonly value: {
963
+ readonly street?: string | undefined;
964
+ readonly extended?: string | undefined;
965
+ readonly locality?: string | undefined;
966
+ readonly region?: string | undefined;
967
+ readonly postalCode?: string | undefined;
968
+ readonly postOfficeBoxNumber?: string | undefined;
969
+ readonly country?: string | undefined;
970
+ };
971
+ readonly label?: string | undefined;
972
+ }[] | undefined;
973
+ readonly urls?: readonly {
974
+ readonly value: string;
975
+ readonly label?: string | undefined;
976
+ }[] | undefined;
977
+ readonly birthday?: string | undefined;
978
+ } & {
979
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
980
+ }> | undefined;
981
+ readonly identityDid?: string | undefined;
982
+ readonly identityKey?: string | undefined;
983
+ readonly email?: string | undefined;
984
+ };
985
+ readonly blocks: readonly ({
986
+ readonly pending?: boolean | undefined;
987
+ readonly text: string;
988
+ readonly mimeType?: string | undefined;
989
+ readonly disposition?: string | undefined;
990
+ readonly _tag: "text";
991
+ } | {
992
+ readonly pending?: boolean | undefined;
993
+ readonly _tag: "reasoning";
994
+ readonly reasoningText?: string | undefined;
995
+ readonly redactedText?: string | undefined;
996
+ readonly signature?: string | undefined;
997
+ } | {
998
+ readonly name: string;
999
+ readonly pending?: boolean | undefined;
1000
+ readonly _tag: "toolCall";
1001
+ readonly toolCallId: string;
1002
+ readonly input: string;
1003
+ readonly providerExecuted: boolean;
1004
+ } | {
1005
+ readonly name: string;
1006
+ readonly pending?: boolean | undefined;
1007
+ readonly _tag: "toolResult";
1008
+ readonly toolCallId: string;
1009
+ readonly providerExecuted: boolean;
1010
+ readonly result?: string | undefined;
1011
+ readonly error?: string | undefined;
1012
+ } | {
1013
+ readonly pending?: boolean | undefined;
1014
+ readonly mimeType?: string | undefined;
1015
+ readonly _tag: "stats";
1016
+ readonly message?: string | undefined;
1017
+ readonly model?: string | undefined;
1018
+ readonly usage?: {
1019
+ readonly inputTokens?: number | undefined;
1020
+ readonly outputTokens?: number | undefined;
1021
+ readonly totalTokens?: number | undefined;
1022
+ } | undefined;
1023
+ readonly toolCalls?: number | undefined;
1024
+ readonly errors?: number | undefined;
1025
+ readonly duration?: number | undefined;
1026
+ } | {
1027
+ readonly source?: {
1028
+ readonly type: "base64";
1029
+ readonly mediaType: string;
1030
+ readonly data: string;
1031
+ } | {
1032
+ readonly type: "http";
1033
+ readonly url: string;
1034
+ } | undefined;
1035
+ readonly id?: string | undefined;
1036
+ readonly pending?: boolean | undefined;
1037
+ readonly _tag: "image";
1038
+ } | {
1039
+ readonly name?: string | undefined;
1040
+ readonly pending?: boolean | undefined;
1041
+ readonly _tag: "file";
1042
+ readonly mediaType?: string | undefined;
1043
+ readonly url: string;
1044
+ } | {
1045
+ readonly pending?: boolean | undefined;
1046
+ readonly _tag: "reference";
1047
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
1048
+ } | {
1049
+ readonly pending?: boolean | undefined;
1050
+ readonly text: string;
1051
+ readonly _tag: "transcript";
1052
+ readonly started: string;
1053
+ } | {
1054
+ readonly pending?: boolean | undefined;
1055
+ readonly _tag: "status";
1056
+ readonly statusText: string;
1057
+ } | {
1058
+ readonly pending?: boolean | undefined;
1059
+ readonly text: string;
1060
+ readonly _tag: "suggestion";
1061
+ } | {
1062
+ readonly pending?: boolean | undefined;
1063
+ readonly _tag: "select";
1064
+ readonly options: string[];
1065
+ } | {
1066
+ readonly version: unknown;
1067
+ readonly pending?: boolean | undefined;
1068
+ readonly _tag: "anchor";
1069
+ readonly objectId: string;
1070
+ } | {
1071
+ readonly pending?: boolean | undefined;
1072
+ readonly text: string;
1073
+ readonly _tag: "proposal";
1074
+ } | {
1075
+ readonly pending?: boolean | undefined;
1076
+ readonly _tag: "summary";
1077
+ readonly content: string;
1078
+ } | {
1079
+ readonly pending?: boolean | undefined;
1080
+ readonly _tag: "toolkit";
1081
+ } | {
1082
+ readonly pending?: boolean | undefined;
1083
+ readonly disposition?: string | undefined;
1084
+ readonly _tag: "json";
1085
+ readonly data: string;
1086
+ })[];
1087
+ readonly properties?: {
1088
+ readonly [x: string]: any;
1089
+ } | undefined;
1090
+ };
1091
+ readonly timeElapsed: number;
1092
+ }, never>;
242
1093
  /**
243
1094
  * Extract entities from the transcript message and add them to the message.
244
1095
  */
245
- export declare const processTranscriptMessage: (params: ProcessTranscriptMessageParams) => Promise<ExtractionOutput>;
1096
+ export declare const processTranscriptMessage: (params: ProcessTranscriptMessageProps) => Promise<ExtractionOutput>;
246
1097
  //# sourceMappingURL=extraction.d.ts.map