@dxos/assistant 0.8.4-main.406dc2a → 0.8.4-main.43cb759274

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