@dxos/assistant 0.8.4-main.84f28bd → 0.8.4-main.8baae0fced

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