@dxos/assistant 0.8.3 → 0.8.4-main.1c7ec43d41

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 (198) hide show
  1. package/README.md +1 -0
  2. package/dist/lib/neutral/extraction/index.mjs +202 -0
  3. package/dist/lib/neutral/extraction/index.mjs.map +7 -0
  4. package/dist/lib/neutral/index.mjs +1736 -0
  5. package/dist/lib/neutral/index.mjs.map +7 -0
  6. package/dist/lib/neutral/meta.json +1 -0
  7. package/dist/types/src/conversation/context.d.ts +156 -0
  8. package/dist/types/src/conversation/context.d.ts.map +1 -0
  9. package/dist/types/src/conversation/context.test.d.ts +2 -0
  10. package/dist/types/src/conversation/context.test.d.ts.map +1 -0
  11. package/dist/types/src/conversation/index.d.ts +3 -0
  12. package/dist/types/src/conversation/index.d.ts.map +1 -0
  13. package/dist/types/src/conversation/session.d.ts +73 -0
  14. package/dist/types/src/conversation/session.d.ts.map +1 -0
  15. package/dist/types/src/diff.d.ts +17 -0
  16. package/dist/types/src/diff.d.ts.map +1 -0
  17. package/dist/types/src/diff.test.d.ts +2 -0
  18. package/dist/types/src/diff.test.d.ts.map +1 -0
  19. package/dist/types/src/errors.d.ts +67 -0
  20. package/dist/types/src/errors.d.ts.map +1 -0
  21. package/dist/types/src/execution-graph.d.ts +85 -0
  22. package/dist/types/src/execution-graph.d.ts.map +1 -0
  23. package/dist/types/src/execution-graph.test.d.ts +2 -0
  24. package/dist/types/src/execution-graph.test.d.ts.map +1 -0
  25. package/dist/types/src/extraction/extraction-ner-function/index.d.ts +0 -1
  26. package/dist/types/src/extraction/extraction-ner-function/index.d.ts.map +1 -1
  27. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +1 -1
  28. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
  29. package/dist/types/src/extraction/extraction.d.ts +1066 -215
  30. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  31. package/dist/types/src/extraction/index.d.ts +0 -1
  32. package/dist/types/src/extraction/index.d.ts.map +1 -1
  33. package/dist/types/src/extraction/quotes.d.ts +3 -3
  34. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  35. package/dist/types/src/functions/index.d.ts +2 -0
  36. package/dist/types/src/functions/index.d.ts.map +1 -0
  37. package/dist/types/src/functions/services.d.ts +17 -0
  38. package/dist/types/src/functions/services.d.ts.map +1 -0
  39. package/dist/types/src/index.d.ts +7 -3
  40. package/dist/types/src/index.d.ts.map +1 -1
  41. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  42. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  43. package/dist/types/src/session/error-handling.d.ts +4 -0
  44. package/dist/types/src/session/error-handling.d.ts.map +1 -0
  45. package/dist/types/src/session/format.d.ts +15 -0
  46. package/dist/types/src/session/format.d.ts.map +1 -0
  47. package/dist/types/src/session/index.d.ts +5 -1
  48. package/dist/types/src/session/index.d.ts.map +1 -1
  49. package/dist/types/src/session/observer.d.ts +23 -0
  50. package/dist/types/src/session/observer.d.ts.map +1 -0
  51. package/dist/types/src/session/request.d.ts +104 -0
  52. package/dist/types/src/session/request.d.ts.map +1 -0
  53. package/dist/types/src/session/toolkit.d.ts +16 -0
  54. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  55. package/dist/types/src/session/version-pin.d.ts +5 -5
  56. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  57. package/dist/types/src/templates/index.d.ts +2 -0
  58. package/dist/types/src/templates/index.d.ts.map +1 -0
  59. package/dist/types/src/templates/system.d.ts +17 -0
  60. package/dist/types/src/templates/system.d.ts.map +1 -0
  61. package/dist/types/src/tracing.d.ts +233 -0
  62. package/dist/types/src/tracing.d.ts.map +1 -0
  63. package/dist/types/src/types/artifact.d.ts +28 -0
  64. package/dist/types/src/types/artifact.d.ts.map +1 -0
  65. package/dist/types/src/types/index.d.ts +2 -0
  66. package/dist/types/src/types/index.d.ts.map +1 -0
  67. package/dist/types/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +43 -38
  69. package/src/conversation/context.test.ts +52 -0
  70. package/src/conversation/context.ts +403 -0
  71. package/src/conversation/index.ts +6 -0
  72. package/src/conversation/session.ts +323 -0
  73. package/src/diff.test.ts +74 -0
  74. package/src/diff.ts +93 -0
  75. package/src/errors.ts +15 -0
  76. package/src/execution-graph.test.ts +740 -0
  77. package/src/execution-graph.ts +519 -0
  78. package/src/extraction/extraction-ner-function/index.ts +0 -1
  79. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
  80. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +3 -1
  81. package/src/extraction/extraction.ts +44 -15
  82. package/src/extraction/index.ts +0 -1
  83. package/src/extraction/quotes.test.ts +3 -3
  84. package/src/extraction/quotes.ts +6 -7
  85. package/src/functions/index.ts +5 -0
  86. package/src/functions/services.ts +214 -0
  87. package/src/index.ts +7 -3
  88. package/src/session/artifact-diff.ts +41 -0
  89. package/src/session/error-handling.ts +41 -0
  90. package/src/session/format.ts +147 -0
  91. package/src/session/index.ts +5 -1
  92. package/src/session/observer.ts +62 -0
  93. package/src/session/request.ts +347 -0
  94. package/src/session/toolkit.ts +47 -0
  95. package/src/session/version-pin.ts +12 -12
  96. package/src/templates/index.ts +5 -0
  97. package/src/templates/instructions/format.tpl +57 -0
  98. package/src/templates/instructions/system.tpl +96 -0
  99. package/src/templates/system.ts +42 -0
  100. package/src/tracing.ts +57 -0
  101. package/src/types/artifact.ts +89 -0
  102. package/src/types/index.ts +5 -0
  103. package/src/typings.d.ts +5 -0
  104. package/dist/lib/browser/index.mjs +0 -2158
  105. package/dist/lib/browser/index.mjs.map +0 -7
  106. package/dist/lib/browser/meta.json +0 -1
  107. package/dist/lib/node/index.cjs +0 -2178
  108. package/dist/lib/node/index.cjs.map +0 -7
  109. package/dist/lib/node/meta.json +0 -1
  110. package/dist/lib/node-esm/index.mjs +0 -2160
  111. package/dist/lib/node-esm/index.mjs.map +0 -7
  112. package/dist/lib/node-esm/meta.json +0 -1
  113. package/dist/types/bin/chat.d.ts +0 -2
  114. package/dist/types/bin/chat.d.ts.map +0 -1
  115. package/dist/types/src/blueprint/ai.test.d.ts +0 -2
  116. package/dist/types/src/blueprint/ai.test.d.ts.map +0 -1
  117. package/dist/types/src/blueprint/blueprint.d.ts +0 -55
  118. package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
  119. package/dist/types/src/blueprint/blueprint.test.d.ts +0 -2
  120. package/dist/types/src/blueprint/blueprint.test.d.ts.map +0 -1
  121. package/dist/types/src/blueprint/index.d.ts +0 -4
  122. package/dist/types/src/blueprint/index.d.ts.map +0 -1
  123. package/dist/types/src/blueprint/logger.d.ts +0 -25
  124. package/dist/types/src/blueprint/logger.d.ts.map +0 -1
  125. package/dist/types/src/blueprint/machine.d.ts +0 -143
  126. package/dist/types/src/blueprint/machine.d.ts.map +0 -1
  127. package/dist/types/src/blueprint/test-data.d.ts +0 -3
  128. package/dist/types/src/blueprint/test-data.d.ts.map +0 -1
  129. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +0 -4
  130. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +0 -1
  131. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +0 -2
  132. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +0 -1
  133. package/dist/types/src/extraction/extraction-llm-function/index.d.ts +0 -2
  134. package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +0 -1
  135. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +0 -208
  136. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +0 -1
  137. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +0 -2
  138. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +0 -1
  139. package/dist/types/src/research/exa.d.ts +0 -7
  140. package/dist/types/src/research/exa.d.ts.map +0 -1
  141. package/dist/types/src/research/graph.d.ts +0 -41
  142. package/dist/types/src/research/graph.d.ts.map +0 -1
  143. package/dist/types/src/research/graph.test.d.ts +0 -2
  144. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  145. package/dist/types/src/research/index.d.ts +0 -4
  146. package/dist/types/src/research/index.d.ts.map +0 -1
  147. package/dist/types/src/research/research.d.ts +0 -10
  148. package/dist/types/src/research/research.d.ts.map +0 -1
  149. package/dist/types/src/research/research.test.d.ts +0 -2
  150. package/dist/types/src/research/research.test.d.ts.map +0 -1
  151. package/dist/types/src/session/session.d.ts +0 -261
  152. package/dist/types/src/session/session.d.ts.map +0 -1
  153. package/dist/types/src/session/session.test.d.ts +0 -2
  154. package/dist/types/src/session/session.test.d.ts.map +0 -1
  155. package/dist/types/src/session/version-pin.test.d.ts +0 -2
  156. package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
  157. package/dist/types/src/summarization/summarization.test.d.ts +0 -2
  158. package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
  159. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  160. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  161. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  162. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  163. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  164. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  165. package/dist/types/src/testing/index.d.ts +0 -3
  166. package/dist/types/src/testing/index.d.ts.map +0 -1
  167. package/dist/types/src/types.d.ts +0 -3
  168. package/dist/types/src/types.d.ts.map +0 -1
  169. package/src/blueprint/ai.test.ts +0 -156
  170. package/src/blueprint/blueprint.test.ts +0 -151
  171. package/src/blueprint/blueprint.ts +0 -75
  172. package/src/blueprint/index.ts +0 -7
  173. package/src/blueprint/logger.ts +0 -155
  174. package/src/blueprint/machine.ts +0 -251
  175. package/src/blueprint/test-data.ts +0 -55
  176. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +0 -95
  177. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +0 -65
  178. package/src/extraction/extraction-llm-function/index.ts +0 -5
  179. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +0 -115
  180. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +0 -54
  181. package/src/research/exa.ts +0 -100
  182. package/src/research/graph.test.ts +0 -15
  183. package/src/research/graph.ts +0 -337
  184. package/src/research/index.ts +0 -7
  185. package/src/research/instructions-research.tpl +0 -97
  186. package/src/research/research.test.ts +0 -190
  187. package/src/research/research.ts +0 -89
  188. package/src/session/session.test.ts +0 -229
  189. package/src/session/session.ts +0 -549
  190. package/src/session/version-pin.test.ts +0 -26
  191. package/src/summarization/summarization.test.ts +0 -221
  192. package/src/testing/exa-search-1748337321991.ts +0 -131
  193. package/src/testing/exa-search-1748337331526.ts +0 -144
  194. package/src/testing/exa-search-1748337344119.ts +0 -133
  195. package/src/testing/index.ts +0 -11
  196. package/src/typedefs.d.ts +0 -8
  197. package/src/types.ts +0 -8
  198. /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
@@ -1,111 +1,180 @@
1
- import { Schema } from 'effect';
2
- import { Expando } from '@dxos/echo-schema';
3
- import { type FunctionDefinition, type FunctionExecutor } from '@dxos/functions';
1
+ import * as Schema from 'effect/Schema';
2
+ import { Operation } from '@dxos/compute';
3
+ import { Obj } from '@dxos/echo';
4
4
  export declare const ExtractionInput: Schema.Struct<{
5
- message: import("@dxos/echo/Type").obj<Schema.Struct<{
6
- id: import("@dxos/keys").ObjectIdClass;
7
- created: import("effect/Schema").SchemaClass<string, string, never>;
8
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
9
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
10
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
11
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
12
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
13
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
14
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
15
- description?: string | undefined;
16
- id: string;
17
- name?: string | undefined;
18
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
19
- image?: string | undefined;
20
- website?: string | undefined;
21
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
22
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
23
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
24
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
25
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
26
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
27
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
28
- }>>>>;
29
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
30
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
31
- value: typeof import("effect/Schema").String;
32
- }>>>>;
33
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
34
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
35
- value: typeof import("effect/Schema").String;
36
- }>>>>;
37
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
38
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
39
- value: import("effect/Schema").Struct<{
40
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
41
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
42
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
43
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
44
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
45
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
46
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
47
- }>;
48
- }>>>>;
49
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
50
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
51
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
52
- }>>>>;
53
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
54
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
55
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
56
- label: typeof import("effect/Schema").String;
57
- value: typeof import("effect/Schema").String;
58
- }>>>>;
59
- }>>>>;
60
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
61
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
62
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
63
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
64
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
65
- }>>;
66
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
67
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
68
- }>, import("effect/Schema").Struct<{
69
- type: import("effect/Schema").Literal<["text"]>;
70
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
71
- text: typeof import("effect/Schema").String;
72
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
73
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
74
- }>, import("effect/Schema").Struct<{
75
- type: import("effect/Schema").Literal<["json"]>;
76
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
77
- data: typeof import("effect/Schema").String;
78
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
79
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
80
- }>, import("effect/Schema").Struct<{
81
- type: import("effect/Schema").Literal<["image"]>;
82
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
83
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
84
- type: import("effect/Schema").Literal<["base64"]>;
85
- mediaType: typeof import("effect/Schema").String;
86
- data: typeof import("effect/Schema").String;
87
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
88
- type: import("effect/Schema").Literal<["http"]>;
89
- url: typeof import("effect/Schema").String;
90
- }>>]>>;
91
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
92
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
93
- }>, import("effect/Schema").Struct<{
94
- type: import("effect/Schema").Literal<["reference"]>;
95
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
96
- [x: string]: any;
97
- id: string;
98
- }, never>>;
99
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
100
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
101
- }>, import("effect/Schema").Struct<{
102
- type: import("effect/Schema").Literal<["transcription"]>;
103
- started: typeof import("effect/Schema").String;
104
- text: typeof import("effect/Schema").String;
105
- }>>>]>>>;
106
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
107
- }>>;
108
- 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>>>;
109
178
  options: Schema.optional<Schema.Struct<{
110
179
  timeout: Schema.optional<typeof Schema.Number>;
111
180
  fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
@@ -114,117 +183,185 @@ export declare const ExtractionInput: Schema.Struct<{
114
183
  export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInput> {
115
184
  }
116
185
  export declare const ExtractionOutput: Schema.Struct<{
117
- message: import("@dxos/echo/Type").obj<Schema.Struct<{
118
- id: import("@dxos/keys").ObjectIdClass;
119
- created: import("effect/Schema").SchemaClass<string, string, never>;
120
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
121
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
122
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
123
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
124
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
125
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
126
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
127
- description?: string | undefined;
128
- id: string;
129
- name?: string | undefined;
130
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
131
- image?: string | undefined;
132
- website?: string | undefined;
133
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
134
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
135
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
136
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
137
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
138
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
139
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
140
- }>>>>;
141
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
142
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
143
- value: typeof import("effect/Schema").String;
144
- }>>>>;
145
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
146
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
147
- value: typeof import("effect/Schema").String;
148
- }>>>>;
149
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
150
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
151
- value: import("effect/Schema").Struct<{
152
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
153
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
154
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
155
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
156
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
157
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
158
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
159
- }>;
160
- }>>>>;
161
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
162
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
163
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
164
- }>>>>;
165
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
166
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
167
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
168
- label: typeof import("effect/Schema").String;
169
- value: typeof import("effect/Schema").String;
170
- }>>>>;
171
- }>>>>;
172
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
173
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
174
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
175
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
176
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
177
- }>>;
178
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
179
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
180
- }>, import("effect/Schema").Struct<{
181
- type: import("effect/Schema").Literal<["text"]>;
182
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
183
- text: typeof import("effect/Schema").String;
184
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
185
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
186
- }>, import("effect/Schema").Struct<{
187
- type: import("effect/Schema").Literal<["json"]>;
188
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
189
- data: typeof import("effect/Schema").String;
190
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
191
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
192
- }>, import("effect/Schema").Struct<{
193
- type: import("effect/Schema").Literal<["image"]>;
194
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
195
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
196
- type: import("effect/Schema").Literal<["base64"]>;
197
- mediaType: typeof import("effect/Schema").String;
198
- data: typeof import("effect/Schema").String;
199
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
200
- type: import("effect/Schema").Literal<["http"]>;
201
- url: typeof import("effect/Schema").String;
202
- }>>]>>;
203
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
204
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
205
- }>, import("effect/Schema").Struct<{
206
- type: import("effect/Schema").Literal<["reference"]>;
207
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
208
- [x: string]: any;
209
- id: string;
210
- }, never>>;
211
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
212
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
213
- }>, import("effect/Schema").Struct<{
214
- type: import("effect/Schema").Literal<["transcription"]>;
215
- started: typeof import("effect/Schema").String;
216
- text: typeof import("effect/Schema").String;
217
- }>>>]>>>;
218
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
219
- }>>;
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>;
220
358
  timeElapsed: typeof Schema.Number;
221
359
  }>;
222
360
  export interface ExtractionOutput extends Schema.Schema.Type<typeof ExtractionOutput> {
223
361
  }
224
- export type ProcessTranscriptMessageParams = {
362
+ export type ProcessTranscriptMessageProps = {
225
363
  input: ExtractionInput;
226
- function: FunctionDefinition<ExtractionInput, ExtractionOutput>;
227
- executor: FunctionExecutor;
364
+ function: Operation.Definition<ExtractionInput, ExtractionOutput>;
228
365
  options?: {
229
366
  /**
230
367
  * Timeout for the entity extraction.
@@ -238,9 +375,723 @@ export type ProcessTranscriptMessageParams = {
238
375
  fallbackToRaw?: boolean;
239
376
  };
240
377
  };
241
- 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>;
242
1093
  /**
243
1094
  * Extract entities from the transcript message and add them to the message.
244
1095
  */
245
- export declare const processTranscriptMessage: (params: ProcessTranscriptMessageParams) => Promise<ExtractionOutput>;
1096
+ export declare const processTranscriptMessage: (params: ProcessTranscriptMessageProps) => Promise<ExtractionOutput>;
246
1097
  //# sourceMappingURL=extraction.d.ts.map