@dxos/assistant 0.8.4-main.fd6878d → 0.8.4-staging.60fe92afc8

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 (183) hide show
  1. package/LICENSE +102 -5
  2. package/README.md +2 -1
  3. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  4. package/dist/lib/neutral/extraction/index.mjs +208 -0
  5. package/dist/lib/neutral/extraction/index.mjs.map +7 -0
  6. package/dist/lib/neutral/index.mjs +1886 -0
  7. package/dist/lib/neutral/index.mjs.map +7 -0
  8. package/dist/lib/neutral/meta.json +1 -0
  9. package/dist/types/src/extraction/extraction-ner-function/index.d.ts +0 -1
  10. package/dist/types/src/extraction/extraction-ner-function/index.d.ts.map +1 -1
  11. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
  12. package/dist/types/src/extraction/extraction.d.ts +1650 -281
  13. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  14. package/dist/types/src/extraction/index.d.ts +0 -1
  15. package/dist/types/src/extraction/index.d.ts.map +1 -1
  16. package/dist/types/src/extraction/quotes.d.ts +3 -3
  17. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  18. package/dist/types/src/functions/services.d.ts +16 -5
  19. package/dist/types/src/functions/services.d.ts.map +1 -1
  20. package/dist/types/src/index.d.ts +2 -3
  21. package/dist/types/src/index.d.ts.map +1 -1
  22. package/dist/types/src/request/AiRequest.d.ts +308 -0
  23. package/dist/types/src/request/AiRequest.d.ts.map +1 -0
  24. package/dist/types/src/{session → request}/artifact-diff.d.ts +5 -5
  25. package/dist/types/src/request/artifact-diff.d.ts.map +1 -0
  26. package/dist/types/src/request/format.d.ts +15 -0
  27. package/dist/types/src/request/format.d.ts.map +1 -0
  28. package/dist/types/src/request/index.d.ts +4 -0
  29. package/dist/types/src/request/index.d.ts.map +1 -0
  30. package/dist/types/src/request/observer.d.ts +23 -0
  31. package/dist/types/src/request/observer.d.ts.map +1 -0
  32. package/dist/types/src/{session → request}/version-pin.d.ts +6 -6
  33. package/dist/types/src/request/version-pin.d.ts.map +1 -0
  34. package/dist/types/src/session/AiContext.d.ts +178 -0
  35. package/dist/types/src/session/AiContext.d.ts.map +1 -0
  36. package/dist/types/src/session/AiContext.test.d.ts +2 -0
  37. package/dist/types/src/session/AiContext.test.d.ts.map +1 -0
  38. package/dist/types/src/session/AiSession.d.ts +79 -0
  39. package/dist/types/src/session/AiSession.d.ts.map +1 -0
  40. package/dist/types/src/session/AiSession.test.d.ts +2 -0
  41. package/dist/types/src/session/AiSession.test.d.ts.map +1 -0
  42. package/dist/types/src/session/SessionLink.d.ts +17 -0
  43. package/dist/types/src/session/SessionLink.d.ts.map +1 -0
  44. package/dist/types/src/session/SessionLoader.d.ts +15 -0
  45. package/dist/types/src/session/SessionLoader.d.ts.map +1 -0
  46. package/dist/types/src/session/SessionLoader.test.d.ts +2 -0
  47. package/dist/types/src/session/SessionLoader.test.d.ts.map +1 -0
  48. package/dist/types/src/session/index.d.ts +5 -3
  49. package/dist/types/src/session/index.d.ts.map +1 -1
  50. package/dist/types/src/session/toolkit.d.ts +16 -0
  51. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  52. package/dist/types/src/templates/system.d.ts +19 -14
  53. package/dist/types/src/templates/system.d.ts.map +1 -1
  54. package/dist/types/src/util/artifact.d.ts +18 -0
  55. package/dist/types/src/util/artifact.d.ts.map +1 -0
  56. package/dist/types/src/util/diff.d.ts +17 -0
  57. package/dist/types/src/util/diff.d.ts.map +1 -0
  58. package/dist/types/src/util/diff.test.d.ts +2 -0
  59. package/dist/types/src/util/diff.test.d.ts.map +1 -0
  60. package/dist/types/src/util/error-handling.d.ts +4 -0
  61. package/dist/types/src/util/error-handling.d.ts.map +1 -0
  62. package/dist/types/src/util/errors.d.ts +67 -0
  63. package/dist/types/src/util/errors.d.ts.map +1 -0
  64. package/dist/types/src/util/execution-graph.d.ts +85 -0
  65. package/dist/types/src/util/execution-graph.d.ts.map +1 -0
  66. package/dist/types/src/util/execution-graph.test.d.ts +2 -0
  67. package/dist/types/src/util/execution-graph.test.d.ts.map +1 -0
  68. package/dist/types/src/util/index.d.ts +7 -0
  69. package/dist/types/src/util/index.d.ts.map +1 -0
  70. package/dist/types/src/util/tracing.d.ts +296 -0
  71. package/dist/types/src/util/tracing.d.ts.map +1 -0
  72. package/dist/types/tsconfig.tsbuildinfo +1 -1
  73. package/package.json +37 -47
  74. package/src/extraction/extraction-ner-function/index.ts +0 -1
  75. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
  76. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +2 -0
  77. package/src/extraction/extraction.ts +49 -19
  78. package/src/extraction/index.ts +0 -1
  79. package/src/extraction/quotes.test.ts +2 -2
  80. package/src/extraction/quotes.ts +7 -9
  81. package/src/functions/services.ts +180 -66
  82. package/src/index.ts +2 -3
  83. package/src/request/AiRequest.ts +387 -0
  84. package/src/{session → request}/artifact-diff.ts +10 -6
  85. package/src/{session → request}/format.ts +45 -37
  86. package/src/request/index.ts +8 -0
  87. package/src/request/observer.ts +62 -0
  88. package/src/{session → request}/version-pin.ts +8 -8
  89. package/src/session/AiContext.test.ts +49 -0
  90. package/src/session/AiContext.ts +420 -0
  91. package/src/session/AiSession.test.ts +111 -0
  92. package/src/session/AiSession.ts +328 -0
  93. package/src/session/SessionLink.ts +23 -0
  94. package/src/session/SessionLoader.test.ts +115 -0
  95. package/src/session/SessionLoader.ts +55 -0
  96. package/src/session/index.ts +6 -3
  97. package/src/session/toolkit.ts +47 -0
  98. package/src/templates/{format.tpl → instructions/format.tpl} +6 -4
  99. package/src/templates/instructions/system.tpl +96 -0
  100. package/src/templates/system.ts +26 -16
  101. package/src/util/artifact.ts +96 -0
  102. package/src/util/diff.test.ts +74 -0
  103. package/src/util/diff.ts +93 -0
  104. package/src/util/error-handling.ts +42 -0
  105. package/src/util/errors.ts +15 -0
  106. package/src/util/execution-graph.test.ts +740 -0
  107. package/src/util/execution-graph.ts +520 -0
  108. package/src/util/index.ts +10 -0
  109. package/src/util/tracing.ts +60 -0
  110. package/dist/lib/browser/chunk-6WRGDEMH.mjs +0 -89
  111. package/dist/lib/browser/chunk-6WRGDEMH.mjs.map +0 -7
  112. package/dist/lib/browser/chunk-NZGGCEF3.mjs +0 -341
  113. package/dist/lib/browser/chunk-NZGGCEF3.mjs.map +0 -7
  114. package/dist/lib/browser/extraction/index.mjs +0 -269
  115. package/dist/lib/browser/extraction/index.mjs.map +0 -7
  116. package/dist/lib/browser/index.mjs +0 -354
  117. package/dist/lib/browser/index.mjs.map +0 -7
  118. package/dist/lib/browser/meta.json +0 -1
  119. package/dist/lib/browser/named-entity-recognition-O46UTCLR.mjs +0 -13
  120. package/dist/lib/node-esm/chunk-3UU5V4FS.mjs +0 -91
  121. package/dist/lib/node-esm/chunk-3UU5V4FS.mjs.map +0 -7
  122. package/dist/lib/node-esm/chunk-XOOPGSGW.mjs +0 -343
  123. package/dist/lib/node-esm/chunk-XOOPGSGW.mjs.map +0 -7
  124. package/dist/lib/node-esm/extraction/index.mjs +0 -270
  125. package/dist/lib/node-esm/extraction/index.mjs.map +0 -7
  126. package/dist/lib/node-esm/index.mjs +0 -355
  127. package/dist/lib/node-esm/index.mjs.map +0 -7
  128. package/dist/lib/node-esm/meta.json +0 -1
  129. package/dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs +0 -14
  130. package/dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs.map +0 -7
  131. package/dist/types/src/conversation/context.d.ts +0 -90
  132. package/dist/types/src/conversation/context.d.ts.map +0 -1
  133. package/dist/types/src/conversation/conversation.d.ts +0 -50
  134. package/dist/types/src/conversation/conversation.d.ts.map +0 -1
  135. package/dist/types/src/conversation/index.d.ts +0 -3
  136. package/dist/types/src/conversation/index.d.ts.map +0 -1
  137. package/dist/types/src/errors.d.ts +0 -39
  138. package/dist/types/src/errors.d.ts.map +0 -1
  139. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +0 -4
  140. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +0 -1
  141. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +0 -2
  142. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +0 -1
  143. package/dist/types/src/extraction/extraction-llm-function/index.d.ts +0 -2
  144. package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +0 -1
  145. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +0 -306
  146. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +0 -1
  147. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +0 -2
  148. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +0 -1
  149. package/dist/types/src/session/artifact-diff.d.ts.map +0 -1
  150. package/dist/types/src/session/format.d.ts +0 -168
  151. package/dist/types/src/session/format.d.ts.map +0 -1
  152. package/dist/types/src/session/format.test.d.ts +0 -2
  153. package/dist/types/src/session/format.test.d.ts.map +0 -1
  154. package/dist/types/src/session/session.d.ts +0 -167
  155. package/dist/types/src/session/session.d.ts.map +0 -1
  156. package/dist/types/src/session/session.test.d.ts +0 -2
  157. package/dist/types/src/session/session.test.d.ts.map +0 -1
  158. package/dist/types/src/session/version-pin.d.ts.map +0 -1
  159. package/dist/types/src/session/version-pin.test.d.ts +0 -2
  160. package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
  161. package/dist/types/src/summarization/summarization.test.d.ts +0 -2
  162. package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
  163. package/dist/types/src/types.d.ts +0 -16
  164. package/dist/types/src/types.d.ts.map +0 -1
  165. package/src/conversation/context.ts +0 -133
  166. package/src/conversation/conversation.ts +0 -125
  167. package/src/conversation/index.ts +0 -6
  168. package/src/errors.ts +0 -10
  169. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +0 -84
  170. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +0 -71
  171. package/src/extraction/extraction-llm-function/index.ts +0 -5
  172. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +0 -116
  173. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +0 -57
  174. package/src/session/__snapshots__/session.test.ts.snap +0 -32
  175. package/src/session/format.test.ts +0 -60
  176. package/src/session/session.test.ts +0 -305
  177. package/src/session/session.ts +0 -279
  178. package/src/session/version-pin.test.ts +0 -7
  179. package/src/summarization/summarization.test.ts +0 -197
  180. package/src/templates/system.tpl +0 -47
  181. package/src/types.ts +0 -52
  182. /package/dist/lib/{browser/named-entity-recognition-O46UTCLR.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  183. /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
@@ -1,292 +1,827 @@
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 { Operation } from '@dxos/compute';
3
+ import { Obj } from '@dxos/echo';
4
4
  export declare const ExtractionInput: Schema.Struct<{
5
- message: import("@dxos/echo/Type").obj<Schema.Struct<{
6
- id: import("@dxos/keys").ObjectIdClass;
7
- parentMessage: import("effect/Schema").optional<import("@dxos/keys").ObjectIdClass>;
8
- created: import("effect/Schema").SchemaClass<string, string, never>;
9
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
10
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
11
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
12
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
13
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
14
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
15
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
16
- id: string;
17
- name?: string | undefined;
18
- description?: string | undefined;
19
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
20
- image?: string | undefined;
21
- website?: string | undefined;
22
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
23
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
24
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
25
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
26
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
27
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
28
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
29
- }>>>>;
30
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
31
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
32
- value: typeof import("effect/Schema").String;
33
- }>>>>;
34
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
35
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
36
- value: typeof import("effect/Schema").String;
37
- }>>>>;
38
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
39
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
40
- value: import("effect/Schema").Struct<{
41
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
42
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
43
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
44
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
45
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
46
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
47
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
48
- }>;
49
- }>>>>;
50
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
51
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
52
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
53
- }>>>>;
54
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
55
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
56
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
57
- label: typeof import("effect/Schema").String;
58
- value: typeof import("effect/Schema").String;
59
- }>>>>;
60
- }>>>>;
61
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
62
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
63
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
64
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
65
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
66
- }>>;
67
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
68
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
69
- objectId: import("@dxos/keys").ObjectIdClass;
70
- version: typeof import("effect/Schema").Unknown;
71
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
72
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
73
- url: typeof import("effect/Schema").String;
74
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
75
- mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
76
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
77
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
78
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
79
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
80
- type: import("effect/Schema").Literal<["base64"]>;
81
- mediaType: typeof import("effect/Schema").String;
82
- data: typeof import("effect/Schema").String;
83
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
84
- type: import("effect/Schema").Literal<["http"]>;
85
- url: typeof import("effect/Schema").String;
86
- }>>]>>;
87
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
88
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
89
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
90
- data: typeof import("effect/Schema").String;
91
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
92
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
93
- text: typeof import("effect/Schema").String;
94
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
95
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
96
- reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
97
- redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
98
- signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
99
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
100
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
101
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
102
- [x: string]: any;
103
- id: string;
104
- }, never>>;
105
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
106
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
107
- options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
108
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
109
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
110
- statusText: typeof import("effect/Schema").String;
111
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
112
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
113
- text: typeof import("effect/Schema").String;
114
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
115
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
116
- mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
117
- text: typeof import("effect/Schema").String;
118
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
119
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolkit", {
120
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
121
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
122
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
123
- toolCallId: typeof import("effect/Schema").String;
124
- name: typeof import("effect/Schema").String;
125
- input: typeof import("effect/Schema").Unknown;
126
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
127
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
128
- toolCallId: typeof import("effect/Schema").String;
129
- name: typeof import("effect/Schema").String;
130
- result: typeof import("effect/Schema").Unknown;
131
- error: import("effect/Schema").optional<typeof import("effect/Schema").String>;
132
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
133
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
134
- started: typeof import("effect/Schema").String;
135
- text: typeof import("effect/Schema").String;
136
- }>>]>>>;
137
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
138
- }>>;
139
- objects: Schema.optional<Schema.Array$<Schema.Schema<Expando, Expando, never>>>;
5
+ message: Schema.Schema<{
6
+ readonly id: string;
7
+ readonly parentMessage?: string | undefined;
8
+ readonly threadId?: string | undefined;
9
+ readonly created: string;
10
+ readonly sender: {
11
+ readonly role?: "assistant" | "tool" | "user" | undefined;
12
+ readonly contact?: import("@dxos/echo/internal").Ref<{
13
+ readonly fullName?: string | undefined;
14
+ readonly preferredName?: string | undefined;
15
+ readonly nickname?: string | undefined;
16
+ readonly image?: string | undefined;
17
+ readonly organization?: import("@dxos/echo/internal").Ref<{
18
+ readonly name?: string | undefined;
19
+ readonly description?: string | undefined;
20
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
21
+ readonly image?: string | undefined;
22
+ readonly website?: string | undefined;
23
+ } & {
24
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
25
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
26
+ readonly jobTitle?: string | undefined;
27
+ readonly department?: string | undefined;
28
+ readonly notes?: string | undefined;
29
+ readonly emails?: readonly {
30
+ readonly label?: string | undefined;
31
+ readonly value: string;
32
+ }[] | undefined;
33
+ readonly identities?: readonly {
34
+ readonly label?: string | undefined;
35
+ readonly value: string;
36
+ }[] | undefined;
37
+ readonly phoneNumbers?: readonly {
38
+ readonly label?: string | undefined;
39
+ readonly value: string;
40
+ }[] | undefined;
41
+ readonly addresses?: readonly {
42
+ readonly label?: string | undefined;
43
+ readonly value: {
44
+ readonly street?: string | undefined;
45
+ readonly extended?: string | undefined;
46
+ readonly locality?: string | undefined;
47
+ readonly region?: string | undefined;
48
+ readonly postalCode?: string | undefined;
49
+ readonly postOfficeBoxNumber?: string | undefined;
50
+ readonly country?: string | undefined;
51
+ };
52
+ }[] | undefined;
53
+ readonly urls?: readonly {
54
+ readonly label?: string | undefined;
55
+ readonly value: string;
56
+ }[] | undefined;
57
+ readonly birthday?: string | undefined;
58
+ readonly fields?: readonly {
59
+ readonly category?: string | undefined;
60
+ readonly label: string;
61
+ readonly value: string;
62
+ }[] | undefined;
63
+ } & {
64
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
65
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
66
+ readonly identityDid?: string | undefined;
67
+ readonly identityKey?: string | undefined;
68
+ readonly email?: string | undefined;
69
+ readonly name?: string | undefined;
70
+ };
71
+ readonly blocks: readonly ({
72
+ readonly _tag: "anchor";
73
+ readonly pending?: boolean | undefined;
74
+ readonly objectId: string;
75
+ readonly version: unknown;
76
+ } | {
77
+ readonly _tag: "file";
78
+ readonly pending?: boolean | undefined;
79
+ readonly url: string;
80
+ readonly name?: string | undefined;
81
+ readonly mediaType?: string | undefined;
82
+ } | {
83
+ readonly _tag: "image";
84
+ readonly pending?: boolean | undefined;
85
+ readonly id?: string | undefined;
86
+ readonly source?: {
87
+ readonly type: "base64";
88
+ readonly mediaType: string;
89
+ readonly data: string;
90
+ } | {
91
+ readonly type: "http";
92
+ readonly url: string;
93
+ } | undefined;
94
+ } | {
95
+ readonly _tag: "json";
96
+ readonly pending?: boolean | undefined;
97
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
98
+ readonly data: string;
99
+ } | {
100
+ readonly _tag: "proposal";
101
+ readonly pending?: boolean | undefined;
102
+ readonly text: string;
103
+ } | {
104
+ readonly _tag: "reasoning";
105
+ readonly pending?: boolean | undefined;
106
+ readonly reasoningText?: string | undefined;
107
+ readonly redactedText?: string | undefined;
108
+ readonly signature?: string | undefined;
109
+ } | {
110
+ readonly _tag: "reference";
111
+ readonly pending?: boolean | undefined;
112
+ readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
113
+ } | {
114
+ readonly _tag: "select";
115
+ readonly pending?: boolean | undefined;
116
+ readonly options: string[];
117
+ } | {
118
+ readonly _tag: "status";
119
+ readonly pending?: boolean | undefined;
120
+ readonly statusText: string;
121
+ } | {
122
+ readonly _tag: "suggestion";
123
+ readonly pending?: boolean | undefined;
124
+ readonly text: string;
125
+ } | {
126
+ readonly _tag: "stats";
127
+ readonly pending?: boolean | undefined;
128
+ readonly mimeType?: string | undefined;
129
+ readonly message?: string | undefined;
130
+ readonly model?: string | undefined;
131
+ readonly usage?: {
132
+ readonly inputTokens?: number | undefined;
133
+ readonly outputTokens?: number | undefined;
134
+ readonly totalTokens?: number | undefined;
135
+ } | undefined;
136
+ readonly toolCalls?: number | undefined;
137
+ readonly errors?: number | undefined;
138
+ readonly duration?: number | undefined;
139
+ } | {
140
+ readonly _tag: "text";
141
+ readonly pending?: boolean | undefined;
142
+ readonly mimeType?: string | undefined;
143
+ readonly text: string;
144
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
145
+ } | {
146
+ readonly _tag: "summary";
147
+ readonly pending?: boolean | undefined;
148
+ readonly content: string;
149
+ } | {
150
+ readonly _tag: "toolkit";
151
+ readonly pending?: boolean | undefined;
152
+ } | {
153
+ readonly _tag: "toolCall";
154
+ readonly pending?: boolean | undefined;
155
+ readonly toolCallId: string;
156
+ readonly name: string;
157
+ readonly input: string;
158
+ readonly providerExecuted: boolean;
159
+ readonly operationKey?: string | undefined;
160
+ readonly operationName?: string | undefined;
161
+ readonly operationIcon?: string | undefined;
162
+ } | {
163
+ readonly _tag: "toolResult";
164
+ readonly pending?: boolean | undefined;
165
+ readonly toolCallId: string;
166
+ readonly name: string;
167
+ readonly result?: string | {
168
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
169
+ readonly content: readonly ({
170
+ readonly _tag: "file";
171
+ readonly pending?: boolean | undefined;
172
+ readonly url: string;
173
+ readonly name?: string | undefined;
174
+ readonly mediaType?: string | undefined;
175
+ } | {
176
+ readonly _tag: "image";
177
+ readonly pending?: boolean | undefined;
178
+ readonly id?: string | undefined;
179
+ readonly source?: {
180
+ readonly type: "base64";
181
+ readonly mediaType: string;
182
+ readonly data: string;
183
+ } | {
184
+ readonly type: "http";
185
+ readonly url: string;
186
+ } | undefined;
187
+ } | {
188
+ readonly _tag: "text";
189
+ readonly pending?: boolean | undefined;
190
+ readonly mimeType?: string | undefined;
191
+ readonly text: string;
192
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
193
+ })[];
194
+ } | undefined;
195
+ readonly error?: string | undefined;
196
+ readonly providerExecuted: boolean;
197
+ } | {
198
+ readonly _tag: "transcript";
199
+ readonly pending?: boolean | undefined;
200
+ readonly started: string;
201
+ readonly text: string;
202
+ })[];
203
+ readonly properties?: {
204
+ readonly [x: string]: any;
205
+ } | undefined;
206
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, {
207
+ readonly id: string;
208
+ readonly parentMessage?: string | undefined;
209
+ readonly threadId?: string | undefined;
210
+ readonly created: string;
211
+ readonly sender: {
212
+ readonly role?: "assistant" | "tool" | "user" | undefined;
213
+ readonly contact?: import("@dxos/echo/internal").Ref<{
214
+ readonly fullName?: string | undefined;
215
+ readonly preferredName?: string | undefined;
216
+ readonly nickname?: string | undefined;
217
+ readonly image?: string | undefined;
218
+ readonly organization?: import("@dxos/echo/internal").Ref<{
219
+ readonly name?: string | undefined;
220
+ readonly description?: string | undefined;
221
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
222
+ readonly image?: string | undefined;
223
+ readonly website?: string | undefined;
224
+ } & {
225
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
226
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
227
+ readonly jobTitle?: string | undefined;
228
+ readonly department?: string | undefined;
229
+ readonly notes?: string | undefined;
230
+ readonly emails?: readonly {
231
+ readonly label?: string | undefined;
232
+ readonly value: string;
233
+ }[] | undefined;
234
+ readonly identities?: readonly {
235
+ readonly label?: string | undefined;
236
+ readonly value: string;
237
+ }[] | undefined;
238
+ readonly phoneNumbers?: readonly {
239
+ readonly label?: string | undefined;
240
+ readonly value: string;
241
+ }[] | undefined;
242
+ readonly addresses?: readonly {
243
+ readonly label?: string | undefined;
244
+ readonly value: {
245
+ readonly street?: string | undefined;
246
+ readonly extended?: string | undefined;
247
+ readonly locality?: string | undefined;
248
+ readonly region?: string | undefined;
249
+ readonly postalCode?: string | undefined;
250
+ readonly postOfficeBoxNumber?: string | undefined;
251
+ readonly country?: string | undefined;
252
+ };
253
+ }[] | undefined;
254
+ readonly urls?: readonly {
255
+ readonly label?: string | undefined;
256
+ readonly value: string;
257
+ }[] | undefined;
258
+ readonly birthday?: string | undefined;
259
+ readonly fields?: readonly {
260
+ readonly category?: string | undefined;
261
+ readonly label: string;
262
+ readonly value: string;
263
+ }[] | undefined;
264
+ } & {
265
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
266
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
267
+ readonly identityDid?: string | undefined;
268
+ readonly identityKey?: string | undefined;
269
+ readonly email?: string | undefined;
270
+ readonly name?: string | undefined;
271
+ };
272
+ readonly blocks: readonly ({
273
+ readonly _tag: "anchor";
274
+ readonly pending?: boolean | undefined;
275
+ readonly objectId: string;
276
+ readonly version: unknown;
277
+ } | {
278
+ readonly _tag: "file";
279
+ readonly pending?: boolean | undefined;
280
+ readonly url: string;
281
+ readonly name?: string | undefined;
282
+ readonly mediaType?: string | undefined;
283
+ } | {
284
+ readonly _tag: "image";
285
+ readonly pending?: boolean | undefined;
286
+ readonly id?: string | undefined;
287
+ readonly source?: {
288
+ readonly type: "base64";
289
+ readonly mediaType: string;
290
+ readonly data: string;
291
+ } | {
292
+ readonly type: "http";
293
+ readonly url: string;
294
+ } | undefined;
295
+ } | {
296
+ readonly _tag: "json";
297
+ readonly pending?: boolean | undefined;
298
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
299
+ readonly data: string;
300
+ } | {
301
+ readonly _tag: "proposal";
302
+ readonly pending?: boolean | undefined;
303
+ readonly text: string;
304
+ } | {
305
+ readonly _tag: "reasoning";
306
+ readonly pending?: boolean | undefined;
307
+ readonly reasoningText?: string | undefined;
308
+ readonly redactedText?: string | undefined;
309
+ readonly signature?: string | undefined;
310
+ } | {
311
+ readonly _tag: "reference";
312
+ readonly pending?: boolean | undefined;
313
+ readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
314
+ } | {
315
+ readonly _tag: "select";
316
+ readonly pending?: boolean | undefined;
317
+ readonly options: string[];
318
+ } | {
319
+ readonly _tag: "status";
320
+ readonly pending?: boolean | undefined;
321
+ readonly statusText: string;
322
+ } | {
323
+ readonly _tag: "suggestion";
324
+ readonly pending?: boolean | undefined;
325
+ readonly text: string;
326
+ } | {
327
+ readonly _tag: "stats";
328
+ readonly pending?: boolean | undefined;
329
+ readonly mimeType?: string | undefined;
330
+ readonly message?: string | undefined;
331
+ readonly model?: string | undefined;
332
+ readonly usage?: {
333
+ readonly inputTokens?: number | undefined;
334
+ readonly outputTokens?: number | undefined;
335
+ readonly totalTokens?: number | undefined;
336
+ } | undefined;
337
+ readonly toolCalls?: number | undefined;
338
+ readonly errors?: number | undefined;
339
+ readonly duration?: number | undefined;
340
+ } | {
341
+ readonly _tag: "text";
342
+ readonly pending?: boolean | undefined;
343
+ readonly mimeType?: string | undefined;
344
+ readonly text: string;
345
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
346
+ } | {
347
+ readonly _tag: "summary";
348
+ readonly pending?: boolean | undefined;
349
+ readonly content: string;
350
+ } | {
351
+ readonly _tag: "toolkit";
352
+ readonly pending?: boolean | undefined;
353
+ } | {
354
+ readonly _tag: "toolCall";
355
+ readonly pending?: boolean | undefined;
356
+ readonly toolCallId: string;
357
+ readonly name: string;
358
+ readonly input: string;
359
+ readonly providerExecuted: boolean;
360
+ readonly operationKey?: string | undefined;
361
+ readonly operationName?: string | undefined;
362
+ readonly operationIcon?: string | undefined;
363
+ } | {
364
+ readonly _tag: "toolResult";
365
+ readonly pending?: boolean | undefined;
366
+ readonly toolCallId: string;
367
+ readonly name: string;
368
+ readonly result?: string | {
369
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
370
+ readonly content: readonly ({
371
+ readonly _tag: "file";
372
+ readonly pending?: boolean | undefined;
373
+ readonly url: string;
374
+ readonly name?: string | undefined;
375
+ readonly mediaType?: string | undefined;
376
+ } | {
377
+ readonly _tag: "image";
378
+ readonly pending?: boolean | undefined;
379
+ readonly id?: string | undefined;
380
+ readonly source?: {
381
+ readonly type: "base64";
382
+ readonly mediaType: string;
383
+ readonly data: string;
384
+ } | {
385
+ readonly type: "http";
386
+ readonly url: string;
387
+ } | undefined;
388
+ } | {
389
+ readonly _tag: "text";
390
+ readonly pending?: boolean | undefined;
391
+ readonly mimeType?: string | undefined;
392
+ readonly text: string;
393
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
394
+ })[];
395
+ } | undefined;
396
+ readonly error?: string | undefined;
397
+ readonly providerExecuted: boolean;
398
+ } | {
399
+ readonly _tag: "transcript";
400
+ readonly pending?: boolean | undefined;
401
+ readonly started: string;
402
+ readonly text: string;
403
+ })[];
404
+ readonly properties?: {
405
+ readonly [x: string]: any;
406
+ } | undefined;
407
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, never>;
408
+ objects: Schema.optional<Schema.Array$<import("@dxos/echo/internal").UnknownTypeSchema<Obj.Unknown, import("@dxos/echo/internal").EntityKind.Object>>>;
140
409
  options: Schema.optional<Schema.Struct<{
141
410
  timeout: Schema.optional<typeof Schema.Number>;
142
411
  fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
143
412
  }>>;
144
413
  }>;
145
- export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInput> {
146
- }
414
+ export type ExtractionInput = Schema.Schema.Type<typeof ExtractionInput>;
147
415
  export declare const ExtractionOutput: Schema.Struct<{
148
- message: import("@dxos/echo/Type").obj<Schema.Struct<{
149
- id: import("@dxos/keys").ObjectIdClass;
150
- parentMessage: import("effect/Schema").optional<import("@dxos/keys").ObjectIdClass>;
151
- created: import("effect/Schema").SchemaClass<string, string, never>;
152
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
153
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
154
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
155
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
156
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
157
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
158
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
159
- id: string;
160
- name?: string | undefined;
161
- description?: string | undefined;
162
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
163
- image?: string | undefined;
164
- website?: string | undefined;
165
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
166
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
167
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
168
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
169
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
170
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
171
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
172
- }>>>>;
173
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
174
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
175
- value: typeof import("effect/Schema").String;
176
- }>>>>;
177
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
178
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
179
- value: typeof import("effect/Schema").String;
180
- }>>>>;
181
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
182
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
183
- value: import("effect/Schema").Struct<{
184
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
185
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
186
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
187
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
188
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
189
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
190
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
191
- }>;
192
- }>>>>;
193
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
194
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
195
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
196
- }>>>>;
197
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
198
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
199
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
200
- label: typeof import("effect/Schema").String;
201
- value: typeof import("effect/Schema").String;
202
- }>>>>;
203
- }>>>>;
204
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
205
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
206
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
207
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
208
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
209
- }>>;
210
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
211
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
212
- objectId: import("@dxos/keys").ObjectIdClass;
213
- version: typeof import("effect/Schema").Unknown;
214
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
215
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
216
- url: typeof import("effect/Schema").String;
217
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
218
- mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
219
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
220
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
221
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
222
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
223
- type: import("effect/Schema").Literal<["base64"]>;
224
- mediaType: typeof import("effect/Schema").String;
225
- data: typeof import("effect/Schema").String;
226
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
227
- type: import("effect/Schema").Literal<["http"]>;
228
- url: typeof import("effect/Schema").String;
229
- }>>]>>;
230
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
231
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
232
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
233
- data: typeof import("effect/Schema").String;
234
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
235
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
236
- text: typeof import("effect/Schema").String;
237
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
238
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
239
- reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
240
- redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
241
- signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
242
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
243
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
244
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
245
- [x: string]: any;
246
- id: string;
247
- }, never>>;
248
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
249
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
250
- options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
251
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
252
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
253
- statusText: typeof import("effect/Schema").String;
254
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
255
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
256
- text: typeof import("effect/Schema").String;
257
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
258
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
259
- mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
260
- text: typeof import("effect/Schema").String;
261
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
262
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolkit", {
263
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
264
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
265
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
266
- toolCallId: typeof import("effect/Schema").String;
267
- name: typeof import("effect/Schema").String;
268
- input: typeof import("effect/Schema").Unknown;
269
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
270
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
271
- toolCallId: typeof import("effect/Schema").String;
272
- name: typeof import("effect/Schema").String;
273
- result: typeof import("effect/Schema").Unknown;
274
- error: import("effect/Schema").optional<typeof import("effect/Schema").String>;
275
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
276
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
277
- started: typeof import("effect/Schema").String;
278
- text: typeof import("effect/Schema").String;
279
- }>>]>>>;
280
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
281
- }>>;
416
+ message: Schema.Schema<{
417
+ readonly id: string;
418
+ readonly parentMessage?: string | undefined;
419
+ readonly threadId?: string | undefined;
420
+ readonly created: string;
421
+ readonly sender: {
422
+ readonly role?: "assistant" | "tool" | "user" | undefined;
423
+ readonly contact?: import("@dxos/echo/internal").Ref<{
424
+ readonly fullName?: string | undefined;
425
+ readonly preferredName?: string | undefined;
426
+ readonly nickname?: string | undefined;
427
+ readonly image?: string | undefined;
428
+ readonly organization?: import("@dxos/echo/internal").Ref<{
429
+ readonly name?: string | undefined;
430
+ readonly description?: string | undefined;
431
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
432
+ readonly image?: string | undefined;
433
+ readonly website?: string | undefined;
434
+ } & {
435
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
436
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
437
+ readonly jobTitle?: string | undefined;
438
+ readonly department?: string | undefined;
439
+ readonly notes?: string | undefined;
440
+ readonly emails?: readonly {
441
+ readonly label?: string | undefined;
442
+ readonly value: string;
443
+ }[] | undefined;
444
+ readonly identities?: readonly {
445
+ readonly label?: string | undefined;
446
+ readonly value: string;
447
+ }[] | undefined;
448
+ readonly phoneNumbers?: readonly {
449
+ readonly label?: string | undefined;
450
+ readonly value: string;
451
+ }[] | undefined;
452
+ readonly addresses?: readonly {
453
+ readonly label?: string | undefined;
454
+ readonly value: {
455
+ readonly street?: string | undefined;
456
+ readonly extended?: string | undefined;
457
+ readonly locality?: string | undefined;
458
+ readonly region?: string | undefined;
459
+ readonly postalCode?: string | undefined;
460
+ readonly postOfficeBoxNumber?: string | undefined;
461
+ readonly country?: string | undefined;
462
+ };
463
+ }[] | undefined;
464
+ readonly urls?: readonly {
465
+ readonly label?: string | undefined;
466
+ readonly value: string;
467
+ }[] | undefined;
468
+ readonly birthday?: string | undefined;
469
+ readonly fields?: readonly {
470
+ readonly category?: string | undefined;
471
+ readonly label: string;
472
+ readonly value: string;
473
+ }[] | undefined;
474
+ } & {
475
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
476
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
477
+ readonly identityDid?: string | undefined;
478
+ readonly identityKey?: string | undefined;
479
+ readonly email?: string | undefined;
480
+ readonly name?: string | undefined;
481
+ };
482
+ readonly blocks: readonly ({
483
+ readonly _tag: "anchor";
484
+ readonly pending?: boolean | undefined;
485
+ readonly objectId: string;
486
+ readonly version: unknown;
487
+ } | {
488
+ readonly _tag: "file";
489
+ readonly pending?: boolean | undefined;
490
+ readonly url: string;
491
+ readonly name?: string | undefined;
492
+ readonly mediaType?: string | undefined;
493
+ } | {
494
+ readonly _tag: "image";
495
+ readonly pending?: boolean | undefined;
496
+ readonly id?: string | undefined;
497
+ readonly source?: {
498
+ readonly type: "base64";
499
+ readonly mediaType: string;
500
+ readonly data: string;
501
+ } | {
502
+ readonly type: "http";
503
+ readonly url: string;
504
+ } | undefined;
505
+ } | {
506
+ readonly _tag: "json";
507
+ readonly pending?: boolean | undefined;
508
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
509
+ readonly data: string;
510
+ } | {
511
+ readonly _tag: "proposal";
512
+ readonly pending?: boolean | undefined;
513
+ readonly text: string;
514
+ } | {
515
+ readonly _tag: "reasoning";
516
+ readonly pending?: boolean | undefined;
517
+ readonly reasoningText?: string | undefined;
518
+ readonly redactedText?: string | undefined;
519
+ readonly signature?: string | undefined;
520
+ } | {
521
+ readonly _tag: "reference";
522
+ readonly pending?: boolean | undefined;
523
+ readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
524
+ } | {
525
+ readonly _tag: "select";
526
+ readonly pending?: boolean | undefined;
527
+ readonly options: string[];
528
+ } | {
529
+ readonly _tag: "status";
530
+ readonly pending?: boolean | undefined;
531
+ readonly statusText: string;
532
+ } | {
533
+ readonly _tag: "suggestion";
534
+ readonly pending?: boolean | undefined;
535
+ readonly text: string;
536
+ } | {
537
+ readonly _tag: "stats";
538
+ readonly pending?: boolean | undefined;
539
+ readonly mimeType?: string | undefined;
540
+ readonly message?: string | undefined;
541
+ readonly model?: string | undefined;
542
+ readonly usage?: {
543
+ readonly inputTokens?: number | undefined;
544
+ readonly outputTokens?: number | undefined;
545
+ readonly totalTokens?: number | undefined;
546
+ } | undefined;
547
+ readonly toolCalls?: number | undefined;
548
+ readonly errors?: number | undefined;
549
+ readonly duration?: number | undefined;
550
+ } | {
551
+ readonly _tag: "text";
552
+ readonly pending?: boolean | undefined;
553
+ readonly mimeType?: string | undefined;
554
+ readonly text: string;
555
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
556
+ } | {
557
+ readonly _tag: "summary";
558
+ readonly pending?: boolean | undefined;
559
+ readonly content: string;
560
+ } | {
561
+ readonly _tag: "toolkit";
562
+ readonly pending?: boolean | undefined;
563
+ } | {
564
+ readonly _tag: "toolCall";
565
+ readonly pending?: boolean | undefined;
566
+ readonly toolCallId: string;
567
+ readonly name: string;
568
+ readonly input: string;
569
+ readonly providerExecuted: boolean;
570
+ readonly operationKey?: string | undefined;
571
+ readonly operationName?: string | undefined;
572
+ readonly operationIcon?: string | undefined;
573
+ } | {
574
+ readonly _tag: "toolResult";
575
+ readonly pending?: boolean | undefined;
576
+ readonly toolCallId: string;
577
+ readonly name: string;
578
+ readonly result?: string | {
579
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
580
+ readonly content: readonly ({
581
+ readonly _tag: "file";
582
+ readonly pending?: boolean | undefined;
583
+ readonly url: string;
584
+ readonly name?: string | undefined;
585
+ readonly mediaType?: string | undefined;
586
+ } | {
587
+ readonly _tag: "image";
588
+ readonly pending?: boolean | undefined;
589
+ readonly id?: string | undefined;
590
+ readonly source?: {
591
+ readonly type: "base64";
592
+ readonly mediaType: string;
593
+ readonly data: string;
594
+ } | {
595
+ readonly type: "http";
596
+ readonly url: string;
597
+ } | undefined;
598
+ } | {
599
+ readonly _tag: "text";
600
+ readonly pending?: boolean | undefined;
601
+ readonly mimeType?: string | undefined;
602
+ readonly text: string;
603
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
604
+ })[];
605
+ } | undefined;
606
+ readonly error?: string | undefined;
607
+ readonly providerExecuted: boolean;
608
+ } | {
609
+ readonly _tag: "transcript";
610
+ readonly pending?: boolean | undefined;
611
+ readonly started: string;
612
+ readonly text: string;
613
+ })[];
614
+ readonly properties?: {
615
+ readonly [x: string]: any;
616
+ } | undefined;
617
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, {
618
+ readonly id: string;
619
+ readonly parentMessage?: string | undefined;
620
+ readonly threadId?: string | undefined;
621
+ readonly created: string;
622
+ readonly sender: {
623
+ readonly role?: "assistant" | "tool" | "user" | undefined;
624
+ readonly contact?: import("@dxos/echo/internal").Ref<{
625
+ readonly fullName?: string | undefined;
626
+ readonly preferredName?: string | undefined;
627
+ readonly nickname?: string | undefined;
628
+ readonly image?: string | undefined;
629
+ readonly organization?: import("@dxos/echo/internal").Ref<{
630
+ readonly name?: string | undefined;
631
+ readonly description?: string | undefined;
632
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
633
+ readonly image?: string | undefined;
634
+ readonly website?: string | undefined;
635
+ } & {
636
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
637
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
638
+ readonly jobTitle?: string | undefined;
639
+ readonly department?: string | undefined;
640
+ readonly notes?: string | undefined;
641
+ readonly emails?: readonly {
642
+ readonly label?: string | undefined;
643
+ readonly value: string;
644
+ }[] | undefined;
645
+ readonly identities?: readonly {
646
+ readonly label?: string | undefined;
647
+ readonly value: string;
648
+ }[] | undefined;
649
+ readonly phoneNumbers?: readonly {
650
+ readonly label?: string | undefined;
651
+ readonly value: string;
652
+ }[] | undefined;
653
+ readonly addresses?: readonly {
654
+ readonly label?: string | undefined;
655
+ readonly value: {
656
+ readonly street?: string | undefined;
657
+ readonly extended?: string | undefined;
658
+ readonly locality?: string | undefined;
659
+ readonly region?: string | undefined;
660
+ readonly postalCode?: string | undefined;
661
+ readonly postOfficeBoxNumber?: string | undefined;
662
+ readonly country?: string | undefined;
663
+ };
664
+ }[] | undefined;
665
+ readonly urls?: readonly {
666
+ readonly label?: string | undefined;
667
+ readonly value: string;
668
+ }[] | undefined;
669
+ readonly birthday?: string | undefined;
670
+ readonly fields?: readonly {
671
+ readonly category?: string | undefined;
672
+ readonly label: string;
673
+ readonly value: string;
674
+ }[] | undefined;
675
+ } & {
676
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
677
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
678
+ readonly identityDid?: string | undefined;
679
+ readonly identityKey?: string | undefined;
680
+ readonly email?: string | undefined;
681
+ readonly name?: string | undefined;
682
+ };
683
+ readonly blocks: readonly ({
684
+ readonly _tag: "anchor";
685
+ readonly pending?: boolean | undefined;
686
+ readonly objectId: string;
687
+ readonly version: unknown;
688
+ } | {
689
+ readonly _tag: "file";
690
+ readonly pending?: boolean | undefined;
691
+ readonly url: string;
692
+ readonly name?: string | undefined;
693
+ readonly mediaType?: string | undefined;
694
+ } | {
695
+ readonly _tag: "image";
696
+ readonly pending?: boolean | undefined;
697
+ readonly id?: string | undefined;
698
+ readonly source?: {
699
+ readonly type: "base64";
700
+ readonly mediaType: string;
701
+ readonly data: string;
702
+ } | {
703
+ readonly type: "http";
704
+ readonly url: string;
705
+ } | undefined;
706
+ } | {
707
+ readonly _tag: "json";
708
+ readonly pending?: boolean | undefined;
709
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
710
+ readonly data: string;
711
+ } | {
712
+ readonly _tag: "proposal";
713
+ readonly pending?: boolean | undefined;
714
+ readonly text: string;
715
+ } | {
716
+ readonly _tag: "reasoning";
717
+ readonly pending?: boolean | undefined;
718
+ readonly reasoningText?: string | undefined;
719
+ readonly redactedText?: string | undefined;
720
+ readonly signature?: string | undefined;
721
+ } | {
722
+ readonly _tag: "reference";
723
+ readonly pending?: boolean | undefined;
724
+ readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
725
+ } | {
726
+ readonly _tag: "select";
727
+ readonly pending?: boolean | undefined;
728
+ readonly options: string[];
729
+ } | {
730
+ readonly _tag: "status";
731
+ readonly pending?: boolean | undefined;
732
+ readonly statusText: string;
733
+ } | {
734
+ readonly _tag: "suggestion";
735
+ readonly pending?: boolean | undefined;
736
+ readonly text: string;
737
+ } | {
738
+ readonly _tag: "stats";
739
+ readonly pending?: boolean | undefined;
740
+ readonly mimeType?: string | undefined;
741
+ readonly message?: string | undefined;
742
+ readonly model?: string | undefined;
743
+ readonly usage?: {
744
+ readonly inputTokens?: number | undefined;
745
+ readonly outputTokens?: number | undefined;
746
+ readonly totalTokens?: number | undefined;
747
+ } | undefined;
748
+ readonly toolCalls?: number | undefined;
749
+ readonly errors?: number | undefined;
750
+ readonly duration?: number | undefined;
751
+ } | {
752
+ readonly _tag: "text";
753
+ readonly pending?: boolean | undefined;
754
+ readonly mimeType?: string | undefined;
755
+ readonly text: string;
756
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
757
+ } | {
758
+ readonly _tag: "summary";
759
+ readonly pending?: boolean | undefined;
760
+ readonly content: string;
761
+ } | {
762
+ readonly _tag: "toolkit";
763
+ readonly pending?: boolean | undefined;
764
+ } | {
765
+ readonly _tag: "toolCall";
766
+ readonly pending?: boolean | undefined;
767
+ readonly toolCallId: string;
768
+ readonly name: string;
769
+ readonly input: string;
770
+ readonly providerExecuted: boolean;
771
+ readonly operationKey?: string | undefined;
772
+ readonly operationName?: string | undefined;
773
+ readonly operationIcon?: string | undefined;
774
+ } | {
775
+ readonly _tag: "toolResult";
776
+ readonly pending?: boolean | undefined;
777
+ readonly toolCallId: string;
778
+ readonly name: string;
779
+ readonly result?: string | {
780
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
781
+ readonly content: readonly ({
782
+ readonly _tag: "file";
783
+ readonly pending?: boolean | undefined;
784
+ readonly url: string;
785
+ readonly name?: string | undefined;
786
+ readonly mediaType?: string | undefined;
787
+ } | {
788
+ readonly _tag: "image";
789
+ readonly pending?: boolean | undefined;
790
+ readonly id?: string | undefined;
791
+ readonly source?: {
792
+ readonly type: "base64";
793
+ readonly mediaType: string;
794
+ readonly data: string;
795
+ } | {
796
+ readonly type: "http";
797
+ readonly url: string;
798
+ } | undefined;
799
+ } | {
800
+ readonly _tag: "text";
801
+ readonly pending?: boolean | undefined;
802
+ readonly mimeType?: string | undefined;
803
+ readonly text: string;
804
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
805
+ })[];
806
+ } | undefined;
807
+ readonly error?: string | undefined;
808
+ readonly providerExecuted: boolean;
809
+ } | {
810
+ readonly _tag: "transcript";
811
+ readonly pending?: boolean | undefined;
812
+ readonly started: string;
813
+ readonly text: string;
814
+ })[];
815
+ readonly properties?: {
816
+ readonly [x: string]: any;
817
+ } | undefined;
818
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, never>;
282
819
  timeElapsed: typeof Schema.Number;
283
820
  }>;
284
- export interface ExtractionOutput extends Schema.Schema.Type<typeof ExtractionOutput> {
285
- }
286
- export type ProcessTranscriptMessageParams = {
821
+ export type ExtractionOutput = Schema.Schema.Type<typeof ExtractionOutput>;
822
+ export type ProcessTranscriptMessageProps = {
287
823
  input: ExtractionInput;
288
- function: FunctionDefinition<ExtractionInput, ExtractionOutput>;
289
- executor: FunctionExecutor;
824
+ function: Operation.Definition<ExtractionInput, ExtractionOutput>;
290
825
  options?: {
291
826
  /**
292
827
  * Timeout for the entity extraction.
@@ -300,9 +835,843 @@ export type ProcessTranscriptMessageParams = {
300
835
  fallbackToRaw?: boolean;
301
836
  };
302
837
  };
303
- export type ExtractionFunction = FunctionDefinition<ExtractionInput, ExtractionOutput>;
838
+ export type ExtractionFunction = Operation.Definition<ExtractionInput, ExtractionOutput>;
839
+ /**
840
+ * Placeholder for Anthropic-based entity extraction.
841
+ * Implementation is currently disabled pending restoration of extraction logic.
842
+ */
843
+ export declare const extractionAnthropicFunction: Operation.Definition<{
844
+ readonly message: {
845
+ readonly id: string;
846
+ readonly parentMessage?: string | undefined;
847
+ readonly threadId?: string | undefined;
848
+ readonly created: string;
849
+ readonly sender: {
850
+ readonly role?: "assistant" | "tool" | "user" | undefined;
851
+ readonly contact?: import("@dxos/echo/internal").Ref<{
852
+ readonly fullName?: string | undefined;
853
+ readonly preferredName?: string | undefined;
854
+ readonly nickname?: string | undefined;
855
+ readonly image?: string | undefined;
856
+ readonly organization?: import("@dxos/echo/internal").Ref<{
857
+ readonly name?: string | undefined;
858
+ readonly description?: string | undefined;
859
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
860
+ readonly image?: string | undefined;
861
+ readonly website?: string | undefined;
862
+ } & {
863
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
864
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
865
+ readonly jobTitle?: string | undefined;
866
+ readonly department?: string | undefined;
867
+ readonly notes?: string | undefined;
868
+ readonly emails?: readonly {
869
+ readonly label?: string | undefined;
870
+ readonly value: string;
871
+ }[] | undefined;
872
+ readonly identities?: readonly {
873
+ readonly label?: string | undefined;
874
+ readonly value: string;
875
+ }[] | undefined;
876
+ readonly phoneNumbers?: readonly {
877
+ readonly label?: string | undefined;
878
+ readonly value: string;
879
+ }[] | undefined;
880
+ readonly addresses?: readonly {
881
+ readonly label?: string | undefined;
882
+ readonly value: {
883
+ readonly street?: string | undefined;
884
+ readonly extended?: string | undefined;
885
+ readonly locality?: string | undefined;
886
+ readonly region?: string | undefined;
887
+ readonly postalCode?: string | undefined;
888
+ readonly postOfficeBoxNumber?: string | undefined;
889
+ readonly country?: string | undefined;
890
+ };
891
+ }[] | undefined;
892
+ readonly urls?: readonly {
893
+ readonly label?: string | undefined;
894
+ readonly value: string;
895
+ }[] | undefined;
896
+ readonly birthday?: string | undefined;
897
+ readonly fields?: readonly {
898
+ readonly category?: string | undefined;
899
+ readonly label: string;
900
+ readonly value: string;
901
+ }[] | undefined;
902
+ } & {
903
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
904
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
905
+ readonly identityDid?: string | undefined;
906
+ readonly identityKey?: string | undefined;
907
+ readonly email?: string | undefined;
908
+ readonly name?: string | undefined;
909
+ };
910
+ readonly blocks: readonly ({
911
+ readonly _tag: "anchor";
912
+ readonly pending?: boolean | undefined;
913
+ readonly objectId: string;
914
+ readonly version: unknown;
915
+ } | {
916
+ readonly _tag: "file";
917
+ readonly pending?: boolean | undefined;
918
+ readonly url: string;
919
+ readonly name?: string | undefined;
920
+ readonly mediaType?: string | undefined;
921
+ } | {
922
+ readonly _tag: "image";
923
+ readonly pending?: boolean | undefined;
924
+ readonly id?: string | undefined;
925
+ readonly source?: {
926
+ readonly type: "base64";
927
+ readonly mediaType: string;
928
+ readonly data: string;
929
+ } | {
930
+ readonly type: "http";
931
+ readonly url: string;
932
+ } | undefined;
933
+ } | {
934
+ readonly _tag: "json";
935
+ readonly pending?: boolean | undefined;
936
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
937
+ readonly data: string;
938
+ } | {
939
+ readonly _tag: "proposal";
940
+ readonly pending?: boolean | undefined;
941
+ readonly text: string;
942
+ } | {
943
+ readonly _tag: "reasoning";
944
+ readonly pending?: boolean | undefined;
945
+ readonly reasoningText?: string | undefined;
946
+ readonly redactedText?: string | undefined;
947
+ readonly signature?: string | undefined;
948
+ } | {
949
+ readonly _tag: "reference";
950
+ readonly pending?: boolean | undefined;
951
+ readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
952
+ } | {
953
+ readonly _tag: "select";
954
+ readonly pending?: boolean | undefined;
955
+ readonly options: string[];
956
+ } | {
957
+ readonly _tag: "status";
958
+ readonly pending?: boolean | undefined;
959
+ readonly statusText: string;
960
+ } | {
961
+ readonly _tag: "suggestion";
962
+ readonly pending?: boolean | undefined;
963
+ readonly text: string;
964
+ } | {
965
+ readonly _tag: "stats";
966
+ readonly pending?: boolean | undefined;
967
+ readonly mimeType?: string | undefined;
968
+ readonly message?: string | undefined;
969
+ readonly model?: string | undefined;
970
+ readonly usage?: {
971
+ readonly inputTokens?: number | undefined;
972
+ readonly outputTokens?: number | undefined;
973
+ readonly totalTokens?: number | undefined;
974
+ } | undefined;
975
+ readonly toolCalls?: number | undefined;
976
+ readonly errors?: number | undefined;
977
+ readonly duration?: number | undefined;
978
+ } | {
979
+ readonly _tag: "text";
980
+ readonly pending?: boolean | undefined;
981
+ readonly mimeType?: string | undefined;
982
+ readonly text: string;
983
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
984
+ } | {
985
+ readonly _tag: "summary";
986
+ readonly pending?: boolean | undefined;
987
+ readonly content: string;
988
+ } | {
989
+ readonly _tag: "toolkit";
990
+ readonly pending?: boolean | undefined;
991
+ } | {
992
+ readonly _tag: "toolCall";
993
+ readonly pending?: boolean | undefined;
994
+ readonly toolCallId: string;
995
+ readonly name: string;
996
+ readonly input: string;
997
+ readonly providerExecuted: boolean;
998
+ readonly operationKey?: string | undefined;
999
+ readonly operationName?: string | undefined;
1000
+ readonly operationIcon?: string | undefined;
1001
+ } | {
1002
+ readonly _tag: "toolResult";
1003
+ readonly pending?: boolean | undefined;
1004
+ readonly toolCallId: string;
1005
+ readonly name: string;
1006
+ readonly result?: string | {
1007
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
1008
+ readonly content: readonly ({
1009
+ readonly _tag: "file";
1010
+ readonly pending?: boolean | undefined;
1011
+ readonly url: string;
1012
+ readonly name?: string | undefined;
1013
+ readonly mediaType?: string | undefined;
1014
+ } | {
1015
+ readonly _tag: "image";
1016
+ readonly pending?: boolean | undefined;
1017
+ readonly id?: string | undefined;
1018
+ readonly source?: {
1019
+ readonly type: "base64";
1020
+ readonly mediaType: string;
1021
+ readonly data: string;
1022
+ } | {
1023
+ readonly type: "http";
1024
+ readonly url: string;
1025
+ } | undefined;
1026
+ } | {
1027
+ readonly _tag: "text";
1028
+ readonly pending?: boolean | undefined;
1029
+ readonly mimeType?: string | undefined;
1030
+ readonly text: string;
1031
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1032
+ })[];
1033
+ } | undefined;
1034
+ readonly error?: string | undefined;
1035
+ readonly providerExecuted: boolean;
1036
+ } | {
1037
+ readonly _tag: "transcript";
1038
+ readonly pending?: boolean | undefined;
1039
+ readonly started: string;
1040
+ readonly text: string;
1041
+ })[];
1042
+ readonly properties?: {
1043
+ readonly [x: string]: any;
1044
+ } | undefined;
1045
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
1046
+ readonly objects?: readonly Obj.Unknown[] | undefined;
1047
+ readonly options?: {
1048
+ readonly timeout?: number | undefined;
1049
+ readonly fallbackToRaw?: boolean | undefined;
1050
+ } | undefined;
1051
+ }, {
1052
+ readonly message: {
1053
+ readonly id: string;
1054
+ readonly parentMessage?: string | undefined;
1055
+ readonly threadId?: string | undefined;
1056
+ readonly created: string;
1057
+ readonly sender: {
1058
+ readonly role?: "assistant" | "tool" | "user" | undefined;
1059
+ readonly contact?: import("@dxos/echo/internal").Ref<{
1060
+ readonly fullName?: string | undefined;
1061
+ readonly preferredName?: string | undefined;
1062
+ readonly nickname?: string | undefined;
1063
+ readonly image?: string | undefined;
1064
+ readonly organization?: import("@dxos/echo/internal").Ref<{
1065
+ readonly name?: string | undefined;
1066
+ readonly description?: string | undefined;
1067
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
1068
+ readonly image?: string | undefined;
1069
+ readonly website?: string | undefined;
1070
+ } & {
1071
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1072
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
1073
+ readonly jobTitle?: string | undefined;
1074
+ readonly department?: string | undefined;
1075
+ readonly notes?: string | undefined;
1076
+ readonly emails?: readonly {
1077
+ readonly label?: string | undefined;
1078
+ readonly value: string;
1079
+ }[] | undefined;
1080
+ readonly identities?: readonly {
1081
+ readonly label?: string | undefined;
1082
+ readonly value: string;
1083
+ }[] | undefined;
1084
+ readonly phoneNumbers?: readonly {
1085
+ readonly label?: string | undefined;
1086
+ readonly value: string;
1087
+ }[] | undefined;
1088
+ readonly addresses?: readonly {
1089
+ readonly label?: string | undefined;
1090
+ readonly value: {
1091
+ readonly street?: string | undefined;
1092
+ readonly extended?: string | undefined;
1093
+ readonly locality?: string | undefined;
1094
+ readonly region?: string | undefined;
1095
+ readonly postalCode?: string | undefined;
1096
+ readonly postOfficeBoxNumber?: string | undefined;
1097
+ readonly country?: string | undefined;
1098
+ };
1099
+ }[] | undefined;
1100
+ readonly urls?: readonly {
1101
+ readonly label?: string | undefined;
1102
+ readonly value: string;
1103
+ }[] | undefined;
1104
+ readonly birthday?: string | undefined;
1105
+ readonly fields?: readonly {
1106
+ readonly category?: string | undefined;
1107
+ readonly label: string;
1108
+ readonly value: string;
1109
+ }[] | undefined;
1110
+ } & {
1111
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1112
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
1113
+ readonly identityDid?: string | undefined;
1114
+ readonly identityKey?: string | undefined;
1115
+ readonly email?: string | undefined;
1116
+ readonly name?: string | undefined;
1117
+ };
1118
+ readonly blocks: readonly ({
1119
+ readonly _tag: "anchor";
1120
+ readonly pending?: boolean | undefined;
1121
+ readonly objectId: string;
1122
+ readonly version: unknown;
1123
+ } | {
1124
+ readonly _tag: "file";
1125
+ readonly pending?: boolean | undefined;
1126
+ readonly url: string;
1127
+ readonly name?: string | undefined;
1128
+ readonly mediaType?: string | undefined;
1129
+ } | {
1130
+ readonly _tag: "image";
1131
+ readonly pending?: boolean | undefined;
1132
+ readonly id?: string | undefined;
1133
+ readonly source?: {
1134
+ readonly type: "base64";
1135
+ readonly mediaType: string;
1136
+ readonly data: string;
1137
+ } | {
1138
+ readonly type: "http";
1139
+ readonly url: string;
1140
+ } | undefined;
1141
+ } | {
1142
+ readonly _tag: "json";
1143
+ readonly pending?: boolean | undefined;
1144
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1145
+ readonly data: string;
1146
+ } | {
1147
+ readonly _tag: "proposal";
1148
+ readonly pending?: boolean | undefined;
1149
+ readonly text: string;
1150
+ } | {
1151
+ readonly _tag: "reasoning";
1152
+ readonly pending?: boolean | undefined;
1153
+ readonly reasoningText?: string | undefined;
1154
+ readonly redactedText?: string | undefined;
1155
+ readonly signature?: string | undefined;
1156
+ } | {
1157
+ readonly _tag: "reference";
1158
+ readonly pending?: boolean | undefined;
1159
+ readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
1160
+ } | {
1161
+ readonly _tag: "select";
1162
+ readonly pending?: boolean | undefined;
1163
+ readonly options: string[];
1164
+ } | {
1165
+ readonly _tag: "status";
1166
+ readonly pending?: boolean | undefined;
1167
+ readonly statusText: string;
1168
+ } | {
1169
+ readonly _tag: "suggestion";
1170
+ readonly pending?: boolean | undefined;
1171
+ readonly text: string;
1172
+ } | {
1173
+ readonly _tag: "stats";
1174
+ readonly pending?: boolean | undefined;
1175
+ readonly mimeType?: string | undefined;
1176
+ readonly message?: string | undefined;
1177
+ readonly model?: string | undefined;
1178
+ readonly usage?: {
1179
+ readonly inputTokens?: number | undefined;
1180
+ readonly outputTokens?: number | undefined;
1181
+ readonly totalTokens?: number | undefined;
1182
+ } | undefined;
1183
+ readonly toolCalls?: number | undefined;
1184
+ readonly errors?: number | undefined;
1185
+ readonly duration?: number | undefined;
1186
+ } | {
1187
+ readonly _tag: "text";
1188
+ readonly pending?: boolean | undefined;
1189
+ readonly mimeType?: string | undefined;
1190
+ readonly text: string;
1191
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1192
+ } | {
1193
+ readonly _tag: "summary";
1194
+ readonly pending?: boolean | undefined;
1195
+ readonly content: string;
1196
+ } | {
1197
+ readonly _tag: "toolkit";
1198
+ readonly pending?: boolean | undefined;
1199
+ } | {
1200
+ readonly _tag: "toolCall";
1201
+ readonly pending?: boolean | undefined;
1202
+ readonly toolCallId: string;
1203
+ readonly name: string;
1204
+ readonly input: string;
1205
+ readonly providerExecuted: boolean;
1206
+ readonly operationKey?: string | undefined;
1207
+ readonly operationName?: string | undefined;
1208
+ readonly operationIcon?: string | undefined;
1209
+ } | {
1210
+ readonly _tag: "toolResult";
1211
+ readonly pending?: boolean | undefined;
1212
+ readonly toolCallId: string;
1213
+ readonly name: string;
1214
+ readonly result?: string | {
1215
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
1216
+ readonly content: readonly ({
1217
+ readonly _tag: "file";
1218
+ readonly pending?: boolean | undefined;
1219
+ readonly url: string;
1220
+ readonly name?: string | undefined;
1221
+ readonly mediaType?: string | undefined;
1222
+ } | {
1223
+ readonly _tag: "image";
1224
+ readonly pending?: boolean | undefined;
1225
+ readonly id?: string | undefined;
1226
+ readonly source?: {
1227
+ readonly type: "base64";
1228
+ readonly mediaType: string;
1229
+ readonly data: string;
1230
+ } | {
1231
+ readonly type: "http";
1232
+ readonly url: string;
1233
+ } | undefined;
1234
+ } | {
1235
+ readonly _tag: "text";
1236
+ readonly pending?: boolean | undefined;
1237
+ readonly mimeType?: string | undefined;
1238
+ readonly text: string;
1239
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1240
+ })[];
1241
+ } | undefined;
1242
+ readonly error?: string | undefined;
1243
+ readonly providerExecuted: boolean;
1244
+ } | {
1245
+ readonly _tag: "transcript";
1246
+ readonly pending?: boolean | undefined;
1247
+ readonly started: string;
1248
+ readonly text: string;
1249
+ })[];
1250
+ readonly properties?: {
1251
+ readonly [x: string]: any;
1252
+ } | undefined;
1253
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
1254
+ readonly timeElapsed: number;
1255
+ }, never>;
1256
+ /**
1257
+ * Placeholder for NER-based entity extraction.
1258
+ * Implementation is currently disabled pending restoration of extraction logic.
1259
+ */
1260
+ export declare const extractionNerFunction: Operation.Definition<{
1261
+ readonly message: {
1262
+ readonly id: string;
1263
+ readonly parentMessage?: string | undefined;
1264
+ readonly threadId?: string | undefined;
1265
+ readonly created: string;
1266
+ readonly sender: {
1267
+ readonly role?: "assistant" | "tool" | "user" | undefined;
1268
+ readonly contact?: import("@dxos/echo/internal").Ref<{
1269
+ readonly fullName?: string | undefined;
1270
+ readonly preferredName?: string | undefined;
1271
+ readonly nickname?: string | undefined;
1272
+ readonly image?: string | undefined;
1273
+ readonly organization?: import("@dxos/echo/internal").Ref<{
1274
+ readonly name?: string | undefined;
1275
+ readonly description?: string | undefined;
1276
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
1277
+ readonly image?: string | undefined;
1278
+ readonly website?: string | undefined;
1279
+ } & {
1280
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1281
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
1282
+ readonly jobTitle?: string | undefined;
1283
+ readonly department?: string | undefined;
1284
+ readonly notes?: string | undefined;
1285
+ readonly emails?: readonly {
1286
+ readonly label?: string | undefined;
1287
+ readonly value: string;
1288
+ }[] | undefined;
1289
+ readonly identities?: readonly {
1290
+ readonly label?: string | undefined;
1291
+ readonly value: string;
1292
+ }[] | undefined;
1293
+ readonly phoneNumbers?: readonly {
1294
+ readonly label?: string | undefined;
1295
+ readonly value: string;
1296
+ }[] | undefined;
1297
+ readonly addresses?: readonly {
1298
+ readonly label?: string | undefined;
1299
+ readonly value: {
1300
+ readonly street?: string | undefined;
1301
+ readonly extended?: string | undefined;
1302
+ readonly locality?: string | undefined;
1303
+ readonly region?: string | undefined;
1304
+ readonly postalCode?: string | undefined;
1305
+ readonly postOfficeBoxNumber?: string | undefined;
1306
+ readonly country?: string | undefined;
1307
+ };
1308
+ }[] | undefined;
1309
+ readonly urls?: readonly {
1310
+ readonly label?: string | undefined;
1311
+ readonly value: string;
1312
+ }[] | undefined;
1313
+ readonly birthday?: string | undefined;
1314
+ readonly fields?: readonly {
1315
+ readonly category?: string | undefined;
1316
+ readonly label: string;
1317
+ readonly value: string;
1318
+ }[] | undefined;
1319
+ } & {
1320
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1321
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
1322
+ readonly identityDid?: string | undefined;
1323
+ readonly identityKey?: string | undefined;
1324
+ readonly email?: string | undefined;
1325
+ readonly name?: string | undefined;
1326
+ };
1327
+ readonly blocks: readonly ({
1328
+ readonly _tag: "anchor";
1329
+ readonly pending?: boolean | undefined;
1330
+ readonly objectId: string;
1331
+ readonly version: unknown;
1332
+ } | {
1333
+ readonly _tag: "file";
1334
+ readonly pending?: boolean | undefined;
1335
+ readonly url: string;
1336
+ readonly name?: string | undefined;
1337
+ readonly mediaType?: string | undefined;
1338
+ } | {
1339
+ readonly _tag: "image";
1340
+ readonly pending?: boolean | undefined;
1341
+ readonly id?: string | undefined;
1342
+ readonly source?: {
1343
+ readonly type: "base64";
1344
+ readonly mediaType: string;
1345
+ readonly data: string;
1346
+ } | {
1347
+ readonly type: "http";
1348
+ readonly url: string;
1349
+ } | undefined;
1350
+ } | {
1351
+ readonly _tag: "json";
1352
+ readonly pending?: boolean | undefined;
1353
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1354
+ readonly data: string;
1355
+ } | {
1356
+ readonly _tag: "proposal";
1357
+ readonly pending?: boolean | undefined;
1358
+ readonly text: string;
1359
+ } | {
1360
+ readonly _tag: "reasoning";
1361
+ readonly pending?: boolean | undefined;
1362
+ readonly reasoningText?: string | undefined;
1363
+ readonly redactedText?: string | undefined;
1364
+ readonly signature?: string | undefined;
1365
+ } | {
1366
+ readonly _tag: "reference";
1367
+ readonly pending?: boolean | undefined;
1368
+ readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
1369
+ } | {
1370
+ readonly _tag: "select";
1371
+ readonly pending?: boolean | undefined;
1372
+ readonly options: string[];
1373
+ } | {
1374
+ readonly _tag: "status";
1375
+ readonly pending?: boolean | undefined;
1376
+ readonly statusText: string;
1377
+ } | {
1378
+ readonly _tag: "suggestion";
1379
+ readonly pending?: boolean | undefined;
1380
+ readonly text: string;
1381
+ } | {
1382
+ readonly _tag: "stats";
1383
+ readonly pending?: boolean | undefined;
1384
+ readonly mimeType?: string | undefined;
1385
+ readonly message?: string | undefined;
1386
+ readonly model?: string | undefined;
1387
+ readonly usage?: {
1388
+ readonly inputTokens?: number | undefined;
1389
+ readonly outputTokens?: number | undefined;
1390
+ readonly totalTokens?: number | undefined;
1391
+ } | undefined;
1392
+ readonly toolCalls?: number | undefined;
1393
+ readonly errors?: number | undefined;
1394
+ readonly duration?: number | undefined;
1395
+ } | {
1396
+ readonly _tag: "text";
1397
+ readonly pending?: boolean | undefined;
1398
+ readonly mimeType?: string | undefined;
1399
+ readonly text: string;
1400
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1401
+ } | {
1402
+ readonly _tag: "summary";
1403
+ readonly pending?: boolean | undefined;
1404
+ readonly content: string;
1405
+ } | {
1406
+ readonly _tag: "toolkit";
1407
+ readonly pending?: boolean | undefined;
1408
+ } | {
1409
+ readonly _tag: "toolCall";
1410
+ readonly pending?: boolean | undefined;
1411
+ readonly toolCallId: string;
1412
+ readonly name: string;
1413
+ readonly input: string;
1414
+ readonly providerExecuted: boolean;
1415
+ readonly operationKey?: string | undefined;
1416
+ readonly operationName?: string | undefined;
1417
+ readonly operationIcon?: string | undefined;
1418
+ } | {
1419
+ readonly _tag: "toolResult";
1420
+ readonly pending?: boolean | undefined;
1421
+ readonly toolCallId: string;
1422
+ readonly name: string;
1423
+ readonly result?: string | {
1424
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
1425
+ readonly content: readonly ({
1426
+ readonly _tag: "file";
1427
+ readonly pending?: boolean | undefined;
1428
+ readonly url: string;
1429
+ readonly name?: string | undefined;
1430
+ readonly mediaType?: string | undefined;
1431
+ } | {
1432
+ readonly _tag: "image";
1433
+ readonly pending?: boolean | undefined;
1434
+ readonly id?: string | undefined;
1435
+ readonly source?: {
1436
+ readonly type: "base64";
1437
+ readonly mediaType: string;
1438
+ readonly data: string;
1439
+ } | {
1440
+ readonly type: "http";
1441
+ readonly url: string;
1442
+ } | undefined;
1443
+ } | {
1444
+ readonly _tag: "text";
1445
+ readonly pending?: boolean | undefined;
1446
+ readonly mimeType?: string | undefined;
1447
+ readonly text: string;
1448
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1449
+ })[];
1450
+ } | undefined;
1451
+ readonly error?: string | undefined;
1452
+ readonly providerExecuted: boolean;
1453
+ } | {
1454
+ readonly _tag: "transcript";
1455
+ readonly pending?: boolean | undefined;
1456
+ readonly started: string;
1457
+ readonly text: string;
1458
+ })[];
1459
+ readonly properties?: {
1460
+ readonly [x: string]: any;
1461
+ } | undefined;
1462
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
1463
+ readonly objects?: readonly Obj.Unknown[] | undefined;
1464
+ readonly options?: {
1465
+ readonly timeout?: number | undefined;
1466
+ readonly fallbackToRaw?: boolean | undefined;
1467
+ } | undefined;
1468
+ }, {
1469
+ readonly message: {
1470
+ readonly id: string;
1471
+ readonly parentMessage?: string | undefined;
1472
+ readonly threadId?: string | undefined;
1473
+ readonly created: string;
1474
+ readonly sender: {
1475
+ readonly role?: "assistant" | "tool" | "user" | undefined;
1476
+ readonly contact?: import("@dxos/echo/internal").Ref<{
1477
+ readonly fullName?: string | undefined;
1478
+ readonly preferredName?: string | undefined;
1479
+ readonly nickname?: string | undefined;
1480
+ readonly image?: string | undefined;
1481
+ readonly organization?: import("@dxos/echo/internal").Ref<{
1482
+ readonly name?: string | undefined;
1483
+ readonly description?: string | undefined;
1484
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
1485
+ readonly image?: string | undefined;
1486
+ readonly website?: string | undefined;
1487
+ } & {
1488
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1489
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
1490
+ readonly jobTitle?: string | undefined;
1491
+ readonly department?: string | undefined;
1492
+ readonly notes?: string | undefined;
1493
+ readonly emails?: readonly {
1494
+ readonly label?: string | undefined;
1495
+ readonly value: string;
1496
+ }[] | undefined;
1497
+ readonly identities?: readonly {
1498
+ readonly label?: string | undefined;
1499
+ readonly value: string;
1500
+ }[] | undefined;
1501
+ readonly phoneNumbers?: readonly {
1502
+ readonly label?: string | undefined;
1503
+ readonly value: string;
1504
+ }[] | undefined;
1505
+ readonly addresses?: readonly {
1506
+ readonly label?: string | undefined;
1507
+ readonly value: {
1508
+ readonly street?: string | undefined;
1509
+ readonly extended?: string | undefined;
1510
+ readonly locality?: string | undefined;
1511
+ readonly region?: string | undefined;
1512
+ readonly postalCode?: string | undefined;
1513
+ readonly postOfficeBoxNumber?: string | undefined;
1514
+ readonly country?: string | undefined;
1515
+ };
1516
+ }[] | undefined;
1517
+ readonly urls?: readonly {
1518
+ readonly label?: string | undefined;
1519
+ readonly value: string;
1520
+ }[] | undefined;
1521
+ readonly birthday?: string | undefined;
1522
+ readonly fields?: readonly {
1523
+ readonly category?: string | undefined;
1524
+ readonly label: string;
1525
+ readonly value: string;
1526
+ }[] | undefined;
1527
+ } & {
1528
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1529
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
1530
+ readonly identityDid?: string | undefined;
1531
+ readonly identityKey?: string | undefined;
1532
+ readonly email?: string | undefined;
1533
+ readonly name?: string | undefined;
1534
+ };
1535
+ readonly blocks: readonly ({
1536
+ readonly _tag: "anchor";
1537
+ readonly pending?: boolean | undefined;
1538
+ readonly objectId: string;
1539
+ readonly version: unknown;
1540
+ } | {
1541
+ readonly _tag: "file";
1542
+ readonly pending?: boolean | undefined;
1543
+ readonly url: string;
1544
+ readonly name?: string | undefined;
1545
+ readonly mediaType?: string | undefined;
1546
+ } | {
1547
+ readonly _tag: "image";
1548
+ readonly pending?: boolean | undefined;
1549
+ readonly id?: string | undefined;
1550
+ readonly source?: {
1551
+ readonly type: "base64";
1552
+ readonly mediaType: string;
1553
+ readonly data: string;
1554
+ } | {
1555
+ readonly type: "http";
1556
+ readonly url: string;
1557
+ } | undefined;
1558
+ } | {
1559
+ readonly _tag: "json";
1560
+ readonly pending?: boolean | undefined;
1561
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1562
+ readonly data: string;
1563
+ } | {
1564
+ readonly _tag: "proposal";
1565
+ readonly pending?: boolean | undefined;
1566
+ readonly text: string;
1567
+ } | {
1568
+ readonly _tag: "reasoning";
1569
+ readonly pending?: boolean | undefined;
1570
+ readonly reasoningText?: string | undefined;
1571
+ readonly redactedText?: string | undefined;
1572
+ readonly signature?: string | undefined;
1573
+ } | {
1574
+ readonly _tag: "reference";
1575
+ readonly pending?: boolean | undefined;
1576
+ readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
1577
+ } | {
1578
+ readonly _tag: "select";
1579
+ readonly pending?: boolean | undefined;
1580
+ readonly options: string[];
1581
+ } | {
1582
+ readonly _tag: "status";
1583
+ readonly pending?: boolean | undefined;
1584
+ readonly statusText: string;
1585
+ } | {
1586
+ readonly _tag: "suggestion";
1587
+ readonly pending?: boolean | undefined;
1588
+ readonly text: string;
1589
+ } | {
1590
+ readonly _tag: "stats";
1591
+ readonly pending?: boolean | undefined;
1592
+ readonly mimeType?: string | undefined;
1593
+ readonly message?: string | undefined;
1594
+ readonly model?: string | undefined;
1595
+ readonly usage?: {
1596
+ readonly inputTokens?: number | undefined;
1597
+ readonly outputTokens?: number | undefined;
1598
+ readonly totalTokens?: number | undefined;
1599
+ } | undefined;
1600
+ readonly toolCalls?: number | undefined;
1601
+ readonly errors?: number | undefined;
1602
+ readonly duration?: number | undefined;
1603
+ } | {
1604
+ readonly _tag: "text";
1605
+ readonly pending?: boolean | undefined;
1606
+ readonly mimeType?: string | undefined;
1607
+ readonly text: string;
1608
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1609
+ } | {
1610
+ readonly _tag: "summary";
1611
+ readonly pending?: boolean | undefined;
1612
+ readonly content: string;
1613
+ } | {
1614
+ readonly _tag: "toolkit";
1615
+ readonly pending?: boolean | undefined;
1616
+ } | {
1617
+ readonly _tag: "toolCall";
1618
+ readonly pending?: boolean | undefined;
1619
+ readonly toolCallId: string;
1620
+ readonly name: string;
1621
+ readonly input: string;
1622
+ readonly providerExecuted: boolean;
1623
+ readonly operationKey?: string | undefined;
1624
+ readonly operationName?: string | undefined;
1625
+ readonly operationIcon?: string | undefined;
1626
+ } | {
1627
+ readonly _tag: "toolResult";
1628
+ readonly pending?: boolean | undefined;
1629
+ readonly toolCallId: string;
1630
+ readonly name: string;
1631
+ readonly result?: string | {
1632
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
1633
+ readonly content: readonly ({
1634
+ readonly _tag: "file";
1635
+ readonly pending?: boolean | undefined;
1636
+ readonly url: string;
1637
+ readonly name?: string | undefined;
1638
+ readonly mediaType?: string | undefined;
1639
+ } | {
1640
+ readonly _tag: "image";
1641
+ readonly pending?: boolean | undefined;
1642
+ readonly id?: string | undefined;
1643
+ readonly source?: {
1644
+ readonly type: "base64";
1645
+ readonly mediaType: string;
1646
+ readonly data: string;
1647
+ } | {
1648
+ readonly type: "http";
1649
+ readonly url: string;
1650
+ } | undefined;
1651
+ } | {
1652
+ readonly _tag: "text";
1653
+ readonly pending?: boolean | undefined;
1654
+ readonly mimeType?: string | undefined;
1655
+ readonly text: string;
1656
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
1657
+ })[];
1658
+ } | undefined;
1659
+ readonly error?: string | undefined;
1660
+ readonly providerExecuted: boolean;
1661
+ } | {
1662
+ readonly _tag: "transcript";
1663
+ readonly pending?: boolean | undefined;
1664
+ readonly started: string;
1665
+ readonly text: string;
1666
+ })[];
1667
+ readonly properties?: {
1668
+ readonly [x: string]: any;
1669
+ } | undefined;
1670
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
1671
+ readonly timeElapsed: number;
1672
+ }, never>;
304
1673
  /**
305
1674
  * Extract entities from the transcript message and add them to the message.
306
1675
  */
307
- export declare const processTranscriptMessage: (params: ProcessTranscriptMessageParams) => Promise<ExtractionOutput>;
1676
+ export declare const processTranscriptMessage: (params: ProcessTranscriptMessageProps) => Promise<ExtractionOutput>;
308
1677
  //# sourceMappingURL=extraction.d.ts.map