@dxos/assistant 0.8.4-main.3f58842 → 0.8.4-main.3fbcb4aa9b

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 (186) 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 +2 -1
  12. package/dist/types/src/conversation/index.d.ts.map +1 -1
  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 +49 -20
  20. package/dist/types/src/errors.d.ts.map +1 -1
  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.map +1 -1
  28. package/dist/types/src/extraction/extraction.d.ts +1066 -273
  29. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  30. package/dist/types/src/extraction/index.d.ts +0 -1
  31. package/dist/types/src/extraction/index.d.ts.map +1 -1
  32. package/dist/types/src/extraction/quotes.d.ts +3 -3
  33. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  34. package/dist/types/src/functions/services.d.ts +15 -4
  35. package/dist/types/src/functions/services.d.ts.map +1 -1
  36. package/dist/types/src/index.d.ts +4 -3
  37. package/dist/types/src/index.d.ts.map +1 -1
  38. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  39. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  40. package/dist/types/src/session/error-handling.d.ts +4 -0
  41. package/dist/types/src/session/error-handling.d.ts.map +1 -0
  42. package/dist/types/src/session/format.d.ts +15 -0
  43. package/dist/types/src/session/format.d.ts.map +1 -0
  44. package/dist/types/src/session/index.d.ts +5 -1
  45. package/dist/types/src/session/index.d.ts.map +1 -1
  46. package/dist/types/src/session/observer.d.ts +23 -0
  47. package/dist/types/src/session/observer.d.ts.map +1 -0
  48. package/dist/types/src/session/request.d.ts +104 -0
  49. package/dist/types/src/session/request.d.ts.map +1 -0
  50. package/dist/types/src/session/toolkit.d.ts +16 -0
  51. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  52. package/dist/types/src/session/version-pin.d.ts +4 -4
  53. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  54. package/dist/types/src/templates/index.d.ts +1 -1
  55. package/dist/types/src/templates/system.d.ts +17 -0
  56. package/dist/types/src/templates/system.d.ts.map +1 -0
  57. package/dist/types/src/tracing.d.ts +233 -0
  58. package/dist/types/src/tracing.d.ts.map +1 -0
  59. package/dist/types/src/types/artifact.d.ts +28 -0
  60. package/dist/types/src/types/artifact.d.ts.map +1 -0
  61. package/dist/types/src/types/index.d.ts +2 -0
  62. package/dist/types/src/types/index.d.ts.map +1 -0
  63. package/dist/types/tsconfig.tsbuildinfo +1 -1
  64. package/package.json +41 -35
  65. package/src/conversation/context.test.ts +52 -0
  66. package/src/conversation/context.ts +403 -0
  67. package/src/conversation/index.ts +2 -1
  68. package/src/conversation/session.ts +323 -0
  69. package/src/diff.test.ts +74 -0
  70. package/src/diff.ts +93 -0
  71. package/src/errors.ts +6 -1
  72. package/src/execution-graph.test.ts +740 -0
  73. package/src/execution-graph.ts +519 -0
  74. package/src/extraction/extraction-ner-function/index.ts +0 -1
  75. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
  76. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +2 -0
  77. package/src/extraction/extraction.ts +44 -15
  78. package/src/extraction/index.ts +0 -1
  79. package/src/extraction/quotes.test.ts +3 -3
  80. package/src/extraction/quotes.ts +6 -7
  81. package/src/functions/services.ts +173 -98
  82. package/src/index.ts +4 -3
  83. package/src/session/artifact-diff.ts +41 -0
  84. package/src/session/error-handling.ts +41 -0
  85. package/src/session/format.ts +147 -0
  86. package/src/session/index.ts +5 -1
  87. package/src/session/observer.ts +62 -0
  88. package/src/session/request.ts +347 -0
  89. package/src/session/toolkit.ts +47 -0
  90. package/src/session/version-pin.ts +8 -8
  91. package/src/templates/index.ts +1 -1
  92. package/src/templates/instructions/format.tpl +57 -0
  93. package/src/templates/instructions/system.tpl +96 -0
  94. package/src/templates/system.ts +42 -0
  95. package/src/tracing.ts +57 -0
  96. package/src/types/artifact.ts +89 -0
  97. package/src/types/index.ts +5 -0
  98. package/src/typings.d.ts +5 -0
  99. package/dist/lib/browser/index.mjs +0 -1831
  100. package/dist/lib/browser/index.mjs.map +0 -7
  101. package/dist/lib/browser/meta.json +0 -1
  102. package/dist/lib/node-esm/index.mjs +0 -1833
  103. package/dist/lib/node-esm/index.mjs.map +0 -7
  104. package/dist/lib/node-esm/meta.json +0 -1
  105. package/dist/types/bin/chat.d.ts +0 -2
  106. package/dist/types/bin/chat.d.ts.map +0 -1
  107. package/dist/types/src/context/binder.d.ts +0 -34
  108. package/dist/types/src/context/binder.d.ts.map +0 -1
  109. package/dist/types/src/context/binding.d.ts +0 -56
  110. package/dist/types/src/context/binding.d.ts.map +0 -1
  111. package/dist/types/src/context/index.d.ts +0 -3
  112. package/dist/types/src/context/index.d.ts.map +0 -1
  113. package/dist/types/src/conversation/conversation.d.ts +0 -38
  114. package/dist/types/src/conversation/conversation.d.ts.map +0 -1
  115. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +0 -4
  116. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +0 -1
  117. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +0 -2
  118. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +0 -1
  119. package/dist/types/src/extraction/extraction-llm-function/index.d.ts +0 -2
  120. package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +0 -1
  121. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +0 -302
  122. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +0 -1
  123. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +0 -2
  124. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +0 -1
  125. package/dist/types/src/research/exa.d.ts +0 -12
  126. package/dist/types/src/research/exa.d.ts.map +0 -1
  127. package/dist/types/src/research/graph.d.ts +0 -51
  128. package/dist/types/src/research/graph.d.ts.map +0 -1
  129. package/dist/types/src/research/graph.test.d.ts +0 -2
  130. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  131. package/dist/types/src/research/index.d.ts +0 -4
  132. package/dist/types/src/research/index.d.ts.map +0 -1
  133. package/dist/types/src/research/research.d.ts +0 -10
  134. package/dist/types/src/research/research.d.ts.map +0 -1
  135. package/dist/types/src/research/research.test.d.ts +0 -2
  136. package/dist/types/src/research/research.test.d.ts.map +0 -1
  137. package/dist/types/src/session/session.d.ts +0 -260
  138. package/dist/types/src/session/session.d.ts.map +0 -1
  139. package/dist/types/src/session/session.test.d.ts +0 -2
  140. package/dist/types/src/session/session.test.d.ts.map +0 -1
  141. package/dist/types/src/session/version-pin.test.d.ts +0 -2
  142. package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
  143. package/dist/types/src/summarization/summarization.test.d.ts +0 -2
  144. package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
  145. package/dist/types/src/templates/prompt.d.ts +0 -30
  146. package/dist/types/src/templates/prompt.d.ts.map +0 -1
  147. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  148. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  149. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  150. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  151. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  152. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  153. package/dist/types/src/testing/index.d.ts +0 -3
  154. package/dist/types/src/testing/index.d.ts.map +0 -1
  155. package/dist/types/src/types.d.ts +0 -13
  156. package/dist/types/src/types.d.ts.map +0 -1
  157. package/src/context/binder.ts +0 -103
  158. package/src/context/binding.ts +0 -32
  159. package/src/context/index.ts +0 -6
  160. package/src/conversation/conversation.ts +0 -96
  161. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +0 -95
  162. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +0 -70
  163. package/src/extraction/extraction-llm-function/index.ts +0 -5
  164. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +0 -115
  165. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +0 -57
  166. package/src/research/exa.ts +0 -97
  167. package/src/research/graph.test.ts +0 -64
  168. package/src/research/graph.ts +0 -369
  169. package/src/research/index.ts +0 -7
  170. package/src/research/instructions-research.tpl +0 -98
  171. package/src/research/research.test.ts +0 -190
  172. package/src/research/research.ts +0 -87
  173. package/src/session/__snapshots__/session.test.ts.snap +0 -32
  174. package/src/session/session.test.ts +0 -310
  175. package/src/session/session.ts +0 -336
  176. package/src/session/version-pin.test.ts +0 -7
  177. package/src/summarization/summarization.test.ts +0 -222
  178. package/src/templates/assistant.tpl +0 -111
  179. package/src/templates/prompt.ts +0 -45
  180. package/src/testing/exa-search-1748337321991.ts +0 -131
  181. package/src/testing/exa-search-1748337331526.ts +0 -144
  182. package/src/testing/exa-search-1748337344119.ts +0 -133
  183. package/src/testing/index.ts +0 -11
  184. package/src/typedefs.d.ts +0 -8
  185. package/src/types.ts +0 -47
  186. /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
@@ -1,140 +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
- id: string;
16
- name?: string | undefined;
17
- description?: 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").TaggedStruct<"anchor", {
67
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
68
- objectId: import("@dxos/keys").ObjectIdClass;
69
- version: typeof import("effect/Schema").Unknown;
70
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
71
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
72
- url: typeof import("effect/Schema").String;
73
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
74
- mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
75
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
76
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
77
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
78
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
79
- type: import("effect/Schema").Literal<["base64"]>;
80
- mediaType: typeof import("effect/Schema").String;
81
- data: typeof import("effect/Schema").String;
82
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
83
- type: import("effect/Schema").Literal<["http"]>;
84
- url: typeof import("effect/Schema").String;
85
- }>>]>>;
86
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
87
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
88
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
89
- data: typeof import("effect/Schema").String;
90
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
91
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
92
- text: typeof import("effect/Schema").String;
93
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
94
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
95
- reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
96
- redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
97
- signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
98
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
99
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
100
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
101
- [x: string]: any;
102
- id: string;
103
- }, never>>;
104
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
105
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
106
- options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
107
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
108
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
109
- statusText: typeof import("effect/Schema").String;
110
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
111
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
112
- text: typeof import("effect/Schema").String;
113
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
114
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
115
- mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
116
- text: typeof import("effect/Schema").String;
117
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
118
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
119
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
120
- toolCallId: typeof import("effect/Schema").String;
121
- name: typeof import("effect/Schema").String;
122
- input: typeof import("effect/Schema").Unknown;
123
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolList", {
124
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
125
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
126
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
127
- toolCallId: typeof import("effect/Schema").String;
128
- name: typeof import("effect/Schema").String;
129
- result: typeof import("effect/Schema").Unknown;
130
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
131
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
132
- started: typeof import("effect/Schema").String;
133
- text: typeof import("effect/Schema").String;
134
- }>>]>>>;
135
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
136
- }>>;
137
- 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>>>;
138
178
  options: Schema.optional<Schema.Struct<{
139
179
  timeout: Schema.optional<typeof Schema.Number>;
140
180
  fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
@@ -143,146 +183,185 @@ export declare const ExtractionInput: Schema.Struct<{
143
183
  export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInput> {
144
184
  }
145
185
  export declare const ExtractionOutput: Schema.Struct<{
146
- message: import("@dxos/echo/Type").obj<Schema.Struct<{
147
- id: import("@dxos/keys").ObjectIdClass;
148
- created: import("effect/Schema").SchemaClass<string, string, never>;
149
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
150
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
151
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
152
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
153
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
154
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
155
- 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> & {
156
- id: string;
157
- name?: string | undefined;
158
- description?: string | undefined;
159
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
160
- image?: string | undefined;
161
- website?: string | undefined;
162
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
163
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
164
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
165
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
166
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
167
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
168
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
169
- }>>>>;
170
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
171
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
172
- value: typeof import("effect/Schema").String;
173
- }>>>>;
174
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
175
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
176
- value: typeof import("effect/Schema").String;
177
- }>>>>;
178
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
179
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
180
- value: import("effect/Schema").Struct<{
181
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
182
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
183
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
184
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
185
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
186
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
187
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
188
- }>;
189
- }>>>>;
190
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
191
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
192
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
193
- }>>>>;
194
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
195
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
196
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
197
- label: typeof import("effect/Schema").String;
198
- value: typeof import("effect/Schema").String;
199
- }>>>>;
200
- }>>>>;
201
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
202
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
203
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
204
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
205
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
206
- }>>;
207
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
208
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
209
- objectId: import("@dxos/keys").ObjectIdClass;
210
- version: typeof import("effect/Schema").Unknown;
211
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
212
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
213
- url: typeof import("effect/Schema").String;
214
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
215
- mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
216
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
217
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
218
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
219
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
220
- type: import("effect/Schema").Literal<["base64"]>;
221
- mediaType: typeof import("effect/Schema").String;
222
- data: typeof import("effect/Schema").String;
223
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
224
- type: import("effect/Schema").Literal<["http"]>;
225
- url: typeof import("effect/Schema").String;
226
- }>>]>>;
227
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
228
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
229
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
230
- data: typeof import("effect/Schema").String;
231
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
232
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
233
- text: typeof import("effect/Schema").String;
234
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
235
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
236
- reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
237
- redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
238
- signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
239
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
240
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
241
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
242
- [x: string]: any;
243
- id: string;
244
- }, never>>;
245
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
246
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
247
- options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
248
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
249
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
250
- statusText: typeof import("effect/Schema").String;
251
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
252
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
253
- text: typeof import("effect/Schema").String;
254
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
255
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
256
- mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
257
- text: typeof import("effect/Schema").String;
258
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
259
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
260
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
261
- toolCallId: typeof import("effect/Schema").String;
262
- name: typeof import("effect/Schema").String;
263
- input: typeof import("effect/Schema").Unknown;
264
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolList", {
265
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
266
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
267
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
268
- toolCallId: typeof import("effect/Schema").String;
269
- name: typeof import("effect/Schema").String;
270
- result: typeof import("effect/Schema").Unknown;
271
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
272
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
273
- started: typeof import("effect/Schema").String;
274
- text: typeof import("effect/Schema").String;
275
- }>>]>>>;
276
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
277
- }>>;
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>;
278
358
  timeElapsed: typeof Schema.Number;
279
359
  }>;
280
360
  export interface ExtractionOutput extends Schema.Schema.Type<typeof ExtractionOutput> {
281
361
  }
282
- export type ProcessTranscriptMessageParams = {
362
+ export type ProcessTranscriptMessageProps = {
283
363
  input: ExtractionInput;
284
- function: FunctionDefinition<ExtractionInput, ExtractionOutput>;
285
- executor: FunctionExecutor;
364
+ function: Operation.Definition<ExtractionInput, ExtractionOutput>;
286
365
  options?: {
287
366
  /**
288
367
  * Timeout for the entity extraction.
@@ -296,9 +375,723 @@ export type ProcessTranscriptMessageParams = {
296
375
  fallbackToRaw?: boolean;
297
376
  };
298
377
  };
299
- 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>;
300
1093
  /**
301
1094
  * Extract entities from the transcript message and add them to the message.
302
1095
  */
303
- export declare const processTranscriptMessage: (params: ProcessTranscriptMessageParams) => Promise<ExtractionOutput>;
1096
+ export declare const processTranscriptMessage: (params: ProcessTranscriptMessageProps) => Promise<ExtractionOutput>;
304
1097
  //# sourceMappingURL=extraction.d.ts.map