@dxos/assistant 0.8.4-main.937b3ca → 0.8.4-main.9be5663bfe
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.
- package/README.md +1 -0
- package/dist/lib/neutral/chunk-UAWIXKF6.mjs +1875 -0
- package/dist/lib/neutral/chunk-UAWIXKF6.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/extraction/index.mjs +26 -32
- package/dist/lib/neutral/extraction/index.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/index.mjs +73 -372
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/testing/index.mjs +114 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/types/src/conversation/context.d.ts +46 -20
- package/dist/types/src/conversation/context.d.ts.map +1 -1
- package/dist/types/src/conversation/conversation.d.ts +37 -10
- package/dist/types/src/conversation/conversation.d.ts.map +1 -1
- package/dist/types/src/diff.d.ts +3 -1
- package/dist/types/src/diff.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/index.d.ts +0 -1
- package/dist/types/src/extraction/extraction-ner-function/index.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction.d.ts +933 -221
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/extraction/index.d.ts +0 -1
- package/dist/types/src/extraction/index.d.ts.map +1 -1
- package/dist/types/src/functions/services.d.ts +27 -8
- package/dist/types/src/functions/services.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/AgentService.d.ts +61 -0
- package/dist/types/src/service/AgentService.d.ts.map +1 -0
- package/dist/types/src/service/AgentService.test.d.ts +2 -0
- package/dist/types/src/service/AgentService.test.d.ts.map +1 -0
- package/dist/types/src/service/agent-process.d.ts +17 -0
- package/dist/types/src/service/agent-process.d.ts.map +1 -0
- package/dist/types/src/service/index.d.ts +3 -0
- package/dist/types/src/service/index.d.ts.map +1 -0
- package/dist/types/src/session/format.d.ts.map +1 -1
- package/dist/types/src/session/index.d.ts +1 -1
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/observer.d.ts.map +1 -1
- package/dist/types/src/session/session.d.ts +64 -8
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +6 -2
- package/dist/types/src/session/toolkit.d.ts.map +1 -1
- package/dist/types/src/templates/system.d.ts +0 -1
- package/dist/types/src/templates/system.d.ts.map +1 -1
- package/dist/types/src/testing/layer.d.ts +23 -9
- package/dist/types/src/testing/layer.d.ts.map +1 -1
- package/dist/types/src/tracing.d.ts +264 -0
- package/dist/types/src/tracing.d.ts.map +1 -0
- package/dist/types/src/types/artifact.d.ts +5 -5
- package/dist/types/src/types/artifact.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -33
- package/src/conversation/context.test.ts +19 -13
- package/src/conversation/context.ts +150 -50
- package/src/conversation/conversation.test.ts +25 -32
- package/src/conversation/conversation.ts +197 -47
- package/src/diff.test.ts +36 -5
- package/src/diff.ts +13 -4
- package/src/execution-graph.test.ts +2 -2
- package/src/execution-graph.ts +3 -3
- package/src/extraction/extraction-ner-function/index.ts +0 -1
- package/src/extraction/extraction.ts +38 -10
- package/src/extraction/index.ts +0 -1
- package/src/functions/services.ts +199 -50
- package/src/functions.conversations.json +1 -1
- package/src/functions.test.ts +28 -20
- package/src/index.ts +2 -0
- package/src/service/AgentService.conversations.json +1 -0
- package/src/service/AgentService.test.ts +169 -0
- package/src/service/AgentService.ts +165 -0
- package/src/service/agent-process.ts +359 -0
- package/src/service/index.ts +6 -0
- package/src/session/format.test.ts +23 -15
- package/src/session/format.ts +0 -1
- package/src/session/index.ts +1 -2
- package/src/session/observer.ts +3 -2
- package/src/session/session.conversations.json +1 -1
- package/src/session/session.test.ts +52 -5
- package/src/session/session.ts +232 -117
- package/src/session/toolkit.ts +12 -7
- package/src/templates/instructions/format.tpl +0 -4
- package/src/templates/instructions/system.tpl +39 -2
- package/src/templates/system.ts +6 -5
- package/src/testing/layer.ts +205 -24
- package/src/tracing.ts +113 -0
- package/src/types/artifact.ts +17 -10
- package/dist/lib/browser/chunk-7CDDG6LL.mjs +0 -578
- package/dist/lib/browser/chunk-7CDDG6LL.mjs.map +0 -7
- package/dist/lib/browser/extraction/index.mjs.map +0 -7
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/testing/index.mjs +0 -32
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs +0 -579
- package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
- package/dist/lib/node-esm/extraction/index.mjs +0 -226
- package/dist/lib/node-esm/extraction/index.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -851
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/testing/index.mjs +0 -33
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +0 -4
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +0 -2
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts +0 -2
- package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +0 -347
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +0 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +0 -2
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +0 -1
- package/dist/types/src/session/GenericToolkit.d.ts +0 -85
- package/dist/types/src/session/GenericToolkit.d.ts.map +0 -1
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +0 -84
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +0 -62
- package/src/extraction/extraction-llm-function/index.ts +0 -5
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +0 -116
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +0 -56
- package/src/session/GenericToolkit.ts +0 -131
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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: Type.Obj<{
|
|
5
|
+
message: import("@dxos/echo/Type").Obj<{
|
|
7
6
|
readonly id: string;
|
|
8
7
|
readonly parentMessage?: string | undefined;
|
|
9
8
|
readonly created: string;
|
|
10
9
|
readonly sender: {
|
|
11
|
-
name?: string | undefined;
|
|
12
|
-
role?: "user" | "assistant" | "tool" | undefined;
|
|
13
|
-
contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
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> & {
|
|
14
13
|
readonly image?: string | undefined;
|
|
15
14
|
readonly fullName?: string | undefined;
|
|
16
15
|
readonly preferredName?: string | undefined;
|
|
@@ -27,24 +26,24 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
27
26
|
readonly jobTitle?: string | undefined;
|
|
28
27
|
readonly department?: string | undefined;
|
|
29
28
|
readonly notes?: string | undefined;
|
|
30
|
-
readonly emails?: {
|
|
29
|
+
readonly emails?: readonly {
|
|
31
30
|
readonly value: string;
|
|
32
31
|
readonly label?: string | undefined;
|
|
33
32
|
}[] | undefined;
|
|
34
|
-
readonly identities?: {
|
|
33
|
+
readonly identities?: readonly {
|
|
35
34
|
readonly value: string;
|
|
36
35
|
readonly label?: string | undefined;
|
|
37
36
|
}[] | undefined;
|
|
38
|
-
readonly phoneNumbers?: {
|
|
37
|
+
readonly phoneNumbers?: readonly {
|
|
39
38
|
readonly value: string;
|
|
40
39
|
readonly label?: string | undefined;
|
|
41
40
|
}[] | undefined;
|
|
42
|
-
readonly fields?: {
|
|
41
|
+
readonly fields?: readonly {
|
|
43
42
|
readonly value: string;
|
|
44
43
|
readonly label: string;
|
|
45
44
|
readonly category?: string | undefined;
|
|
46
45
|
}[] | undefined;
|
|
47
|
-
readonly addresses?: {
|
|
46
|
+
readonly addresses?: readonly {
|
|
48
47
|
readonly value: {
|
|
49
48
|
readonly street?: string | undefined;
|
|
50
49
|
readonly extended?: string | undefined;
|
|
@@ -56,7 +55,7 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
56
55
|
};
|
|
57
56
|
readonly label?: string | undefined;
|
|
58
57
|
}[] | undefined;
|
|
59
|
-
readonly urls?: {
|
|
58
|
+
readonly urls?: readonly {
|
|
60
59
|
readonly value: string;
|
|
61
60
|
readonly label?: string | undefined;
|
|
62
61
|
}[] | undefined;
|
|
@@ -64,117 +63,117 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
64
63
|
} & {
|
|
65
64
|
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
66
65
|
}> | undefined;
|
|
67
|
-
identityDid?: string | undefined;
|
|
68
|
-
identityKey?: string | undefined;
|
|
69
|
-
email?: string | undefined;
|
|
66
|
+
readonly identityDid?: string | undefined;
|
|
67
|
+
readonly identityKey?: string | undefined;
|
|
68
|
+
readonly email?: string | undefined;
|
|
70
69
|
};
|
|
71
|
-
readonly blocks: ({
|
|
72
|
-
pending?: boolean | undefined;
|
|
73
|
-
text: string;
|
|
74
|
-
mimeType?: string | undefined;
|
|
75
|
-
disposition?: string | undefined;
|
|
76
|
-
_tag: "text";
|
|
77
|
-
} | {
|
|
78
|
-
pending?: boolean | undefined;
|
|
79
|
-
_tag: "reasoning";
|
|
80
|
-
reasoningText?: string | undefined;
|
|
81
|
-
redactedText?: string | undefined;
|
|
82
|
-
signature?: string | undefined;
|
|
83
|
-
} | {
|
|
84
|
-
name: string;
|
|
85
|
-
pending?: boolean | undefined;
|
|
86
|
-
_tag: "toolCall";
|
|
87
|
-
toolCallId: string;
|
|
88
|
-
input: string;
|
|
89
|
-
providerExecuted: boolean;
|
|
90
|
-
} | {
|
|
91
|
-
name: string;
|
|
92
|
-
pending?: boolean | undefined;
|
|
93
|
-
_tag: "toolResult";
|
|
94
|
-
toolCallId: string;
|
|
95
|
-
providerExecuted: boolean;
|
|
96
|
-
result?: string | undefined;
|
|
97
|
-
error?: string | undefined;
|
|
98
|
-
} | {
|
|
99
|
-
pending?: boolean | undefined;
|
|
100
|
-
mimeType?: string | undefined;
|
|
101
|
-
_tag: "
|
|
102
|
-
message?: string | undefined;
|
|
103
|
-
model?: string | undefined;
|
|
104
|
-
usage?: {
|
|
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?: {
|
|
105
104
|
readonly inputTokens?: number | undefined;
|
|
106
105
|
readonly outputTokens?: number | undefined;
|
|
107
106
|
readonly totalTokens?: number | undefined;
|
|
108
107
|
} | undefined;
|
|
109
|
-
toolCalls?: number | undefined;
|
|
110
|
-
errors?: number | undefined;
|
|
111
|
-
duration?: number | undefined;
|
|
112
|
-
} | {
|
|
113
|
-
source?: {
|
|
114
|
-
type: "base64";
|
|
115
|
-
mediaType: string;
|
|
116
|
-
data: string;
|
|
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;
|
|
117
116
|
} | {
|
|
118
|
-
type: "http";
|
|
119
|
-
url: string;
|
|
117
|
+
readonly type: "http";
|
|
118
|
+
readonly url: string;
|
|
120
119
|
} | undefined;
|
|
121
|
-
id?: string | undefined;
|
|
122
|
-
pending?: boolean | undefined;
|
|
123
|
-
_tag: "image";
|
|
124
|
-
} | {
|
|
125
|
-
name?: string | undefined;
|
|
126
|
-
pending?: boolean | undefined;
|
|
127
|
-
_tag: "file";
|
|
128
|
-
mediaType?: string | undefined;
|
|
129
|
-
url: string;
|
|
130
|
-
} | {
|
|
131
|
-
pending?: boolean | undefined;
|
|
132
|
-
_tag: "reference";
|
|
133
|
-
reference: import("@dxos/echo/internal").Ref<
|
|
134
|
-
} | {
|
|
135
|
-
pending?: boolean | undefined;
|
|
136
|
-
text: string;
|
|
137
|
-
_tag: "transcript";
|
|
138
|
-
started: string;
|
|
139
|
-
} | {
|
|
140
|
-
pending?: boolean | undefined;
|
|
141
|
-
_tag: "status";
|
|
142
|
-
statusText: string;
|
|
143
|
-
} | {
|
|
144
|
-
pending?: boolean | undefined;
|
|
145
|
-
text: string;
|
|
146
|
-
_tag: "suggestion";
|
|
147
|
-
} | {
|
|
148
|
-
pending?: boolean | undefined;
|
|
149
|
-
_tag: "select";
|
|
150
|
-
options: string[];
|
|
151
|
-
} | {
|
|
152
|
-
version: unknown;
|
|
153
|
-
pending?: boolean | undefined;
|
|
154
|
-
_tag: "anchor";
|
|
155
|
-
objectId: string;
|
|
156
|
-
} | {
|
|
157
|
-
pending?: boolean | undefined;
|
|
158
|
-
text: string;
|
|
159
|
-
_tag: "proposal";
|
|
160
|
-
} | {
|
|
161
|
-
pending?: boolean | undefined;
|
|
162
|
-
_tag: "
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
_tag: "
|
|
167
|
-
|
|
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;
|
|
168
171
|
})[];
|
|
169
172
|
readonly properties?: {
|
|
170
|
-
[x: string]: any;
|
|
173
|
+
readonly [x: string]: any;
|
|
171
174
|
} | undefined;
|
|
172
175
|
}, Schema.Struct.Fields>;
|
|
173
|
-
objects: Schema.optional<Schema.Array$<
|
|
174
|
-
id: string;
|
|
175
|
-
} & import("@dxos/echo/internal").AnyProperties, never> & {
|
|
176
|
-
readonly "~@dxos/echo/SchemaKind": import("@dxos/echo/internal").EntityKind.Object;
|
|
177
|
-
} & import("@dxos/echo/internal").TypeMeta>>;
|
|
176
|
+
objects: Schema.optional<Schema.Array$<import("@dxos/echo/Type").Obj<Obj.Unknown, Schema.Struct.Fields>>>;
|
|
178
177
|
options: Schema.optional<Schema.Struct<{
|
|
179
178
|
timeout: Schema.optional<typeof Schema.Number>;
|
|
180
179
|
fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
|
|
@@ -183,14 +182,14 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
183
182
|
export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInput> {
|
|
184
183
|
}
|
|
185
184
|
export declare const ExtractionOutput: Schema.Struct<{
|
|
186
|
-
message: Type.Obj<{
|
|
185
|
+
message: import("@dxos/echo/Type").Obj<{
|
|
187
186
|
readonly id: string;
|
|
188
187
|
readonly parentMessage?: string | undefined;
|
|
189
188
|
readonly created: string;
|
|
190
189
|
readonly sender: {
|
|
191
|
-
name?: string | undefined;
|
|
192
|
-
role?: "user" | "assistant" | "tool" | undefined;
|
|
193
|
-
contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
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> & {
|
|
194
193
|
readonly image?: string | undefined;
|
|
195
194
|
readonly fullName?: string | undefined;
|
|
196
195
|
readonly preferredName?: string | undefined;
|
|
@@ -207,24 +206,24 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
207
206
|
readonly jobTitle?: string | undefined;
|
|
208
207
|
readonly department?: string | undefined;
|
|
209
208
|
readonly notes?: string | undefined;
|
|
210
|
-
readonly emails?: {
|
|
209
|
+
readonly emails?: readonly {
|
|
211
210
|
readonly value: string;
|
|
212
211
|
readonly label?: string | undefined;
|
|
213
212
|
}[] | undefined;
|
|
214
|
-
readonly identities?: {
|
|
213
|
+
readonly identities?: readonly {
|
|
215
214
|
readonly value: string;
|
|
216
215
|
readonly label?: string | undefined;
|
|
217
216
|
}[] | undefined;
|
|
218
|
-
readonly phoneNumbers?: {
|
|
217
|
+
readonly phoneNumbers?: readonly {
|
|
219
218
|
readonly value: string;
|
|
220
219
|
readonly label?: string | undefined;
|
|
221
220
|
}[] | undefined;
|
|
222
|
-
readonly fields?: {
|
|
221
|
+
readonly fields?: readonly {
|
|
223
222
|
readonly value: string;
|
|
224
223
|
readonly label: string;
|
|
225
224
|
readonly category?: string | undefined;
|
|
226
225
|
}[] | undefined;
|
|
227
|
-
readonly addresses?: {
|
|
226
|
+
readonly addresses?: readonly {
|
|
228
227
|
readonly value: {
|
|
229
228
|
readonly street?: string | undefined;
|
|
230
229
|
readonly extended?: string | undefined;
|
|
@@ -236,7 +235,7 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
236
235
|
};
|
|
237
236
|
readonly label?: string | undefined;
|
|
238
237
|
}[] | undefined;
|
|
239
|
-
readonly urls?: {
|
|
238
|
+
readonly urls?: readonly {
|
|
240
239
|
readonly value: string;
|
|
241
240
|
readonly label?: string | undefined;
|
|
242
241
|
}[] | undefined;
|
|
@@ -244,110 +243,114 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
244
243
|
} & {
|
|
245
244
|
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
246
245
|
}> | undefined;
|
|
247
|
-
identityDid?: string | undefined;
|
|
248
|
-
identityKey?: string | undefined;
|
|
249
|
-
email?: string | undefined;
|
|
246
|
+
readonly identityDid?: string | undefined;
|
|
247
|
+
readonly identityKey?: string | undefined;
|
|
248
|
+
readonly email?: string | undefined;
|
|
250
249
|
};
|
|
251
|
-
readonly blocks: ({
|
|
252
|
-
pending?: boolean | undefined;
|
|
253
|
-
text: string;
|
|
254
|
-
mimeType?: string | undefined;
|
|
255
|
-
disposition?: string | undefined;
|
|
256
|
-
_tag: "text";
|
|
257
|
-
} | {
|
|
258
|
-
pending?: boolean | undefined;
|
|
259
|
-
_tag: "reasoning";
|
|
260
|
-
reasoningText?: string | undefined;
|
|
261
|
-
redactedText?: string | undefined;
|
|
262
|
-
signature?: string | undefined;
|
|
263
|
-
} | {
|
|
264
|
-
name: string;
|
|
265
|
-
pending?: boolean | undefined;
|
|
266
|
-
_tag: "toolCall";
|
|
267
|
-
toolCallId: string;
|
|
268
|
-
input: string;
|
|
269
|
-
providerExecuted: boolean;
|
|
270
|
-
} | {
|
|
271
|
-
name: string;
|
|
272
|
-
pending?: boolean | undefined;
|
|
273
|
-
_tag: "toolResult";
|
|
274
|
-
toolCallId: string;
|
|
275
|
-
providerExecuted: boolean;
|
|
276
|
-
result?: string | undefined;
|
|
277
|
-
error?: string | undefined;
|
|
278
|
-
} | {
|
|
279
|
-
pending?: boolean | undefined;
|
|
280
|
-
mimeType?: string | undefined;
|
|
281
|
-
_tag: "
|
|
282
|
-
message?: string | undefined;
|
|
283
|
-
model?: string | undefined;
|
|
284
|
-
usage?: {
|
|
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?: {
|
|
285
284
|
readonly inputTokens?: number | undefined;
|
|
286
285
|
readonly outputTokens?: number | undefined;
|
|
287
286
|
readonly totalTokens?: number | undefined;
|
|
288
287
|
} | undefined;
|
|
289
|
-
toolCalls?: number | undefined;
|
|
290
|
-
errors?: number | undefined;
|
|
291
|
-
duration?: number | undefined;
|
|
292
|
-
} | {
|
|
293
|
-
source?: {
|
|
294
|
-
type: "base64";
|
|
295
|
-
mediaType: string;
|
|
296
|
-
data: string;
|
|
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;
|
|
297
296
|
} | {
|
|
298
|
-
type: "http";
|
|
299
|
-
url: string;
|
|
297
|
+
readonly type: "http";
|
|
298
|
+
readonly url: string;
|
|
300
299
|
} | undefined;
|
|
301
|
-
id?: string | undefined;
|
|
302
|
-
pending?: boolean | undefined;
|
|
303
|
-
_tag: "image";
|
|
304
|
-
} | {
|
|
305
|
-
name?: string | undefined;
|
|
306
|
-
pending?: boolean | undefined;
|
|
307
|
-
_tag: "file";
|
|
308
|
-
mediaType?: string | undefined;
|
|
309
|
-
url: string;
|
|
310
|
-
} | {
|
|
311
|
-
pending?: boolean | undefined;
|
|
312
|
-
_tag: "reference";
|
|
313
|
-
reference: import("@dxos/echo/internal").Ref<
|
|
314
|
-
} | {
|
|
315
|
-
pending?: boolean | undefined;
|
|
316
|
-
text: string;
|
|
317
|
-
_tag: "transcript";
|
|
318
|
-
started: string;
|
|
319
|
-
} | {
|
|
320
|
-
pending?: boolean | undefined;
|
|
321
|
-
_tag: "status";
|
|
322
|
-
statusText: string;
|
|
323
|
-
} | {
|
|
324
|
-
pending?: boolean | undefined;
|
|
325
|
-
text: string;
|
|
326
|
-
_tag: "suggestion";
|
|
327
|
-
} | {
|
|
328
|
-
pending?: boolean | undefined;
|
|
329
|
-
_tag: "select";
|
|
330
|
-
options: string[];
|
|
331
|
-
} | {
|
|
332
|
-
version: unknown;
|
|
333
|
-
pending?: boolean | undefined;
|
|
334
|
-
_tag: "anchor";
|
|
335
|
-
objectId: string;
|
|
336
|
-
} | {
|
|
337
|
-
pending?: boolean | undefined;
|
|
338
|
-
text: string;
|
|
339
|
-
_tag: "proposal";
|
|
340
|
-
} | {
|
|
341
|
-
pending?: boolean | undefined;
|
|
342
|
-
_tag: "
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
_tag: "
|
|
347
|
-
|
|
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;
|
|
348
351
|
})[];
|
|
349
352
|
readonly properties?: {
|
|
350
|
-
[x: string]: any;
|
|
353
|
+
readonly [x: string]: any;
|
|
351
354
|
} | undefined;
|
|
352
355
|
}, Schema.Struct.Fields>;
|
|
353
356
|
timeElapsed: typeof Schema.Number;
|
|
@@ -356,8 +359,7 @@ export interface ExtractionOutput extends Schema.Schema.Type<typeof ExtractionOu
|
|
|
356
359
|
}
|
|
357
360
|
export type ProcessTranscriptMessageProps = {
|
|
358
361
|
input: ExtractionInput;
|
|
359
|
-
function:
|
|
360
|
-
executor: FunctionExecutor;
|
|
362
|
+
function: Operation.Definition<ExtractionInput, ExtractionOutput>;
|
|
361
363
|
options?: {
|
|
362
364
|
/**
|
|
363
365
|
* Timeout for the entity extraction.
|
|
@@ -371,7 +373,717 @@ export type ProcessTranscriptMessageProps = {
|
|
|
371
373
|
fallbackToRaw?: boolean;
|
|
372
374
|
};
|
|
373
375
|
};
|
|
374
|
-
export type ExtractionFunction =
|
|
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>;
|
|
375
1087
|
/**
|
|
376
1088
|
* Extract entities from the transcript message and add them to the message.
|
|
377
1089
|
*/
|