@dxos/assistant 0.8.4-main.72ec0f3 → 0.8.4-main.74a063c4e0

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