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