@dxos/assistant 0.8.4-main.b97322e → 0.8.4-main.bcb3aa67d6

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