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