@dxos/assistant 0.8.4-main.ae835ea → 0.8.4-main.bc2380dfbc

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