@dxos/assistant 0.8.4-main.fffef41 → 0.9.0
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/LICENSE +102 -5
- package/README.md +2 -1
- package/dist/lib/{browser → neutral}/extraction/index.mjs +42 -59
- package/dist/lib/neutral/extraction/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +1886 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +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 +1649 -317
- 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 +2 -2
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/functions/services.d.ts +14 -16
- package/dist/types/src/functions/services.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -5
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/request/AiRequest.d.ts +308 -0
- package/dist/types/src/request/AiRequest.d.ts.map +1 -0
- package/dist/types/src/{session → request}/artifact-diff.d.ts +4 -4
- package/dist/types/src/request/artifact-diff.d.ts.map +1 -0
- package/dist/types/src/request/format.d.ts +15 -0
- package/dist/types/src/request/format.d.ts.map +1 -0
- package/dist/types/src/request/index.d.ts +4 -0
- package/dist/types/src/request/index.d.ts.map +1 -0
- package/dist/types/src/{session → request}/observer.d.ts +4 -3
- package/dist/types/src/request/observer.d.ts.map +1 -0
- package/dist/types/src/{session → request}/version-pin.d.ts +4 -4
- package/dist/types/src/request/version-pin.d.ts.map +1 -0
- package/dist/types/src/session/AiContext.d.ts +178 -0
- package/dist/types/src/session/AiContext.d.ts.map +1 -0
- package/dist/types/src/session/AiContext.test.d.ts +2 -0
- package/dist/types/src/session/AiContext.test.d.ts.map +1 -0
- package/dist/types/src/session/AiSession.d.ts +79 -0
- package/dist/types/src/session/AiSession.d.ts.map +1 -0
- package/dist/types/src/session/AiSession.test.d.ts +2 -0
- package/dist/types/src/session/AiSession.test.d.ts.map +1 -0
- package/dist/types/src/session/SessionLink.d.ts +17 -0
- package/dist/types/src/session/SessionLink.d.ts.map +1 -0
- package/dist/types/src/session/SessionLoader.d.ts +15 -0
- package/dist/types/src/session/SessionLoader.d.ts.map +1 -0
- package/dist/types/src/session/SessionLoader.test.d.ts +2 -0
- package/dist/types/src/session/SessionLoader.test.d.ts.map +1 -0
- package/dist/types/src/session/index.d.ts +4 -5
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +10 -9
- package/dist/types/src/session/toolkit.d.ts.map +1 -1
- package/dist/types/src/templates/system.d.ts +12 -3
- package/dist/types/src/templates/system.d.ts.map +1 -1
- package/dist/types/src/util/artifact.d.ts +18 -0
- package/dist/types/src/util/artifact.d.ts.map +1 -0
- package/dist/types/src/{diff.d.ts → util/diff.d.ts} +4 -2
- package/dist/types/src/util/diff.d.ts.map +1 -0
- package/dist/types/src/{diff.test.d.ts.map → util/diff.test.d.ts.map} +1 -1
- package/dist/types/src/util/error-handling.d.ts.map +1 -0
- package/dist/types/src/{errors.d.ts → util/errors.d.ts} +24 -28
- package/dist/types/src/util/errors.d.ts.map +1 -0
- package/dist/types/src/{execution-graph.d.ts → util/execution-graph.d.ts} +2 -2
- package/dist/types/src/util/execution-graph.d.ts.map +1 -0
- package/dist/types/src/util/execution-graph.test.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +7 -0
- package/dist/types/src/util/index.d.ts.map +1 -0
- package/dist/types/src/util/tracing.d.ts +296 -0
- package/dist/types/src/util/tracing.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +36 -44
- package/src/extraction/extraction-ner-function/index.ts +0 -1
- package/src/extraction/extraction.ts +47 -18
- package/src/extraction/index.ts +0 -1
- package/src/extraction/quotes.test.ts +2 -2
- package/src/extraction/quotes.ts +6 -8
- package/src/functions/services.ts +129 -63
- package/src/index.ts +2 -5
- package/src/request/AiRequest.ts +387 -0
- package/src/{session → request}/artifact-diff.ts +4 -4
- package/src/{session → request}/format.ts +28 -25
- package/src/request/index.ts +8 -0
- package/src/{session → request}/observer.ts +4 -1
- package/src/{session → request}/version-pin.ts +6 -5
- package/src/session/AiContext.test.ts +49 -0
- package/src/session/AiContext.ts +420 -0
- package/src/session/AiSession.test.ts +111 -0
- package/src/session/AiSession.ts +328 -0
- package/src/session/SessionLink.ts +23 -0
- package/src/session/SessionLoader.test.ts +115 -0
- package/src/session/SessionLoader.ts +55 -0
- package/src/session/index.ts +4 -5
- package/src/session/toolkit.ts +27 -28
- package/src/templates/instructions/format.tpl +0 -4
- package/src/templates/instructions/system.tpl +50 -2
- package/src/templates/system.ts +7 -6
- package/src/util/artifact.ts +96 -0
- package/src/util/diff.test.ts +74 -0
- package/src/{diff.ts → util/diff.ts} +14 -5
- package/src/{session → util}/error-handling.ts +3 -2
- package/src/util/errors.ts +15 -0
- package/src/{execution-graph.test.ts → util/execution-graph.test.ts} +4 -4
- package/src/{execution-graph.ts → util/execution-graph.ts} +30 -19
- package/src/util/index.ts +10 -0
- package/src/util/tracing.ts +60 -0
- package/dist/lib/browser/extraction/index.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -1290
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- 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 -1291
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/types/src/conversation/context.d.ts +0 -103
- package/dist/types/src/conversation/context.d.ts.map +0 -1
- package/dist/types/src/conversation/conversation.d.ts +0 -41
- package/dist/types/src/conversation/conversation.d.ts.map +0 -1
- package/dist/types/src/conversation/index.d.ts +0 -3
- package/dist/types/src/conversation/index.d.ts.map +0 -1
- package/dist/types/src/diff.d.ts.map +0 -1
- package/dist/types/src/errors.d.ts.map +0 -1
- package/dist/types/src/execution-graph.d.ts.map +0 -1
- package/dist/types/src/execution-graph.test.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 -345
- 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 -84
- package/dist/types/src/session/GenericToolkit.d.ts.map +0 -1
- package/dist/types/src/session/artifact-diff.d.ts.map +0 -1
- package/dist/types/src/session/error-handling.d.ts.map +0 -1
- package/dist/types/src/session/format.d.ts +0 -12
- package/dist/types/src/session/format.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/observer.d.ts.map +0 -1
- package/dist/types/src/session/session.d.ts +0 -51
- 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.d.ts.map +0 -1
- package/dist/types/src/types/artifact.d.ts +0 -20
- package/dist/types/src/types/artifact.d.ts.map +0 -1
- package/dist/types/src/types/index.d.ts +0 -2
- package/dist/types/src/types/index.d.ts.map +0 -1
- package/src/conversation/context.ts +0 -186
- package/src/conversation/conversation.ts +0 -128
- package/src/conversation/index.ts +0 -6
- package/src/diff.test.ts +0 -43
- package/src/errors.ts +0 -15
- 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 -130
- package/src/session/format.test.ts +0 -61
- package/src/session/session.conversations.json +0 -1
- package/src/session/session.test.ts +0 -149
- package/src/session/session.ts +0 -213
- package/src/types/artifact.ts +0 -71
- package/src/types/index.ts +0 -5
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- /package/dist/types/src/{diff.test.d.ts → util/diff.test.d.ts} +0 -0
- /package/dist/types/src/{session → util}/error-handling.d.ts +0 -0
- /package/dist/types/src/{execution-graph.test.d.ts → util/execution-graph.test.d.ts} +0 -0
|
@@ -1,329 +1,827 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { type FunctionExecutor } from '@dxos/functions-runtime';
|
|
2
|
+
import { Operation } from '@dxos/compute';
|
|
3
|
+
import { Obj } from '@dxos/echo';
|
|
5
4
|
export declare const ExtractionInput: Schema.Struct<{
|
|
6
|
-
message:
|
|
7
|
-
id:
|
|
8
|
-
parentMessage
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
name?: string | undefined;
|
|
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
|
-
type:
|
|
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
|
-
|
|
116
|
-
pending
|
|
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
|
-
pending
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
5
|
+
message: Schema.Schema<{
|
|
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<{
|
|
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<{
|
|
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
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | 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
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | 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<Obj.Unknown>;
|
|
113
|
+
} | {
|
|
114
|
+
readonly _tag: "select";
|
|
115
|
+
readonly pending?: boolean | undefined;
|
|
116
|
+
readonly options: string[];
|
|
117
|
+
} | {
|
|
118
|
+
readonly _tag: "status";
|
|
119
|
+
readonly pending?: boolean | undefined;
|
|
120
|
+
readonly statusText: string;
|
|
121
|
+
} | {
|
|
122
|
+
readonly _tag: "suggestion";
|
|
123
|
+
readonly pending?: boolean | undefined;
|
|
124
|
+
readonly text: string;
|
|
125
|
+
} | {
|
|
126
|
+
readonly _tag: "stats";
|
|
127
|
+
readonly pending?: boolean | undefined;
|
|
128
|
+
readonly mimeType?: string | undefined;
|
|
129
|
+
readonly message?: string | undefined;
|
|
130
|
+
readonly model?: string | undefined;
|
|
131
|
+
readonly usage?: {
|
|
132
|
+
readonly inputTokens?: number | undefined;
|
|
133
|
+
readonly outputTokens?: number | undefined;
|
|
134
|
+
readonly totalTokens?: number | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
readonly toolCalls?: number | undefined;
|
|
137
|
+
readonly errors?: number | undefined;
|
|
138
|
+
readonly duration?: number | undefined;
|
|
139
|
+
} | {
|
|
140
|
+
readonly _tag: "text";
|
|
141
|
+
readonly pending?: boolean | undefined;
|
|
142
|
+
readonly mimeType?: string | undefined;
|
|
143
|
+
readonly text: string;
|
|
144
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
145
|
+
} | {
|
|
146
|
+
readonly _tag: "summary";
|
|
147
|
+
readonly pending?: boolean | undefined;
|
|
148
|
+
readonly content: string;
|
|
149
|
+
} | {
|
|
150
|
+
readonly _tag: "toolkit";
|
|
151
|
+
readonly pending?: boolean | undefined;
|
|
152
|
+
} | {
|
|
153
|
+
readonly _tag: "toolCall";
|
|
154
|
+
readonly pending?: boolean | undefined;
|
|
155
|
+
readonly toolCallId: string;
|
|
156
|
+
readonly name: string;
|
|
157
|
+
readonly input: string;
|
|
158
|
+
readonly providerExecuted: boolean;
|
|
159
|
+
readonly operationKey?: string | undefined;
|
|
160
|
+
readonly operationName?: string | undefined;
|
|
161
|
+
readonly operationIcon?: string | undefined;
|
|
162
|
+
} | {
|
|
163
|
+
readonly _tag: "toolResult";
|
|
164
|
+
readonly pending?: boolean | undefined;
|
|
165
|
+
readonly toolCallId: string;
|
|
166
|
+
readonly name: string;
|
|
167
|
+
readonly result?: string | {
|
|
168
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
169
|
+
readonly content: readonly ({
|
|
170
|
+
readonly _tag: "file";
|
|
171
|
+
readonly pending?: boolean | undefined;
|
|
172
|
+
readonly url: string;
|
|
173
|
+
readonly name?: string | undefined;
|
|
174
|
+
readonly mediaType?: string | undefined;
|
|
175
|
+
} | {
|
|
176
|
+
readonly _tag: "image";
|
|
177
|
+
readonly pending?: boolean | undefined;
|
|
178
|
+
readonly id?: string | undefined;
|
|
179
|
+
readonly source?: {
|
|
180
|
+
readonly type: "base64";
|
|
181
|
+
readonly mediaType: string;
|
|
182
|
+
readonly data: string;
|
|
183
|
+
} | {
|
|
184
|
+
readonly type: "http";
|
|
185
|
+
readonly url: string;
|
|
186
|
+
} | undefined;
|
|
187
|
+
} | {
|
|
188
|
+
readonly _tag: "text";
|
|
189
|
+
readonly pending?: boolean | undefined;
|
|
190
|
+
readonly mimeType?: string | undefined;
|
|
191
|
+
readonly text: string;
|
|
192
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
193
|
+
})[];
|
|
194
|
+
} | undefined;
|
|
195
|
+
readonly error?: string | undefined;
|
|
196
|
+
readonly providerExecuted: boolean;
|
|
197
|
+
} | {
|
|
198
|
+
readonly _tag: "transcript";
|
|
199
|
+
readonly pending?: boolean | undefined;
|
|
200
|
+
readonly started: string;
|
|
201
|
+
readonly text: string;
|
|
202
|
+
})[];
|
|
203
|
+
readonly properties?: {
|
|
204
|
+
readonly [x: string]: any;
|
|
205
|
+
} | undefined;
|
|
206
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, {
|
|
207
|
+
readonly id: string;
|
|
208
|
+
readonly parentMessage?: string | undefined;
|
|
209
|
+
readonly threadId?: string | undefined;
|
|
210
|
+
readonly created: string;
|
|
211
|
+
readonly sender: {
|
|
212
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
213
|
+
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
214
|
+
readonly fullName?: string | undefined;
|
|
215
|
+
readonly preferredName?: string | undefined;
|
|
216
|
+
readonly nickname?: string | undefined;
|
|
217
|
+
readonly image?: string | undefined;
|
|
218
|
+
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
219
|
+
readonly name?: string | undefined;
|
|
220
|
+
readonly description?: string | undefined;
|
|
221
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
222
|
+
readonly image?: string | undefined;
|
|
223
|
+
readonly website?: string | undefined;
|
|
224
|
+
} & {
|
|
225
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
226
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
227
|
+
readonly jobTitle?: string | undefined;
|
|
228
|
+
readonly department?: string | undefined;
|
|
229
|
+
readonly notes?: string | undefined;
|
|
230
|
+
readonly emails?: readonly {
|
|
231
|
+
readonly label?: string | undefined;
|
|
232
|
+
readonly value: string;
|
|
233
|
+
}[] | undefined;
|
|
234
|
+
readonly identities?: readonly {
|
|
235
|
+
readonly label?: string | undefined;
|
|
236
|
+
readonly value: string;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
readonly phoneNumbers?: readonly {
|
|
239
|
+
readonly label?: string | undefined;
|
|
240
|
+
readonly value: string;
|
|
241
|
+
}[] | undefined;
|
|
242
|
+
readonly addresses?: readonly {
|
|
243
|
+
readonly label?: string | undefined;
|
|
244
|
+
readonly value: {
|
|
245
|
+
readonly street?: string | undefined;
|
|
246
|
+
readonly extended?: string | undefined;
|
|
247
|
+
readonly locality?: string | undefined;
|
|
248
|
+
readonly region?: string | undefined;
|
|
249
|
+
readonly postalCode?: string | undefined;
|
|
250
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
251
|
+
readonly country?: string | undefined;
|
|
252
|
+
};
|
|
253
|
+
}[] | undefined;
|
|
254
|
+
readonly urls?: readonly {
|
|
255
|
+
readonly label?: string | undefined;
|
|
256
|
+
readonly value: string;
|
|
257
|
+
}[] | undefined;
|
|
258
|
+
readonly birthday?: string | undefined;
|
|
259
|
+
readonly fields?: readonly {
|
|
260
|
+
readonly category?: string | undefined;
|
|
261
|
+
readonly label: string;
|
|
262
|
+
readonly value: string;
|
|
263
|
+
}[] | undefined;
|
|
264
|
+
} & {
|
|
265
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
266
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
267
|
+
readonly identityDid?: string | undefined;
|
|
268
|
+
readonly identityKey?: string | undefined;
|
|
269
|
+
readonly email?: string | undefined;
|
|
270
|
+
readonly name?: string | undefined;
|
|
271
|
+
};
|
|
272
|
+
readonly blocks: readonly ({
|
|
273
|
+
readonly _tag: "anchor";
|
|
274
|
+
readonly pending?: boolean | undefined;
|
|
275
|
+
readonly objectId: string;
|
|
276
|
+
readonly version: unknown;
|
|
277
|
+
} | {
|
|
278
|
+
readonly _tag: "file";
|
|
279
|
+
readonly pending?: boolean | undefined;
|
|
280
|
+
readonly url: string;
|
|
281
|
+
readonly name?: string | undefined;
|
|
282
|
+
readonly mediaType?: string | undefined;
|
|
283
|
+
} | {
|
|
284
|
+
readonly _tag: "image";
|
|
285
|
+
readonly pending?: boolean | undefined;
|
|
286
|
+
readonly id?: string | undefined;
|
|
287
|
+
readonly source?: {
|
|
288
|
+
readonly type: "base64";
|
|
289
|
+
readonly mediaType: string;
|
|
290
|
+
readonly data: string;
|
|
291
|
+
} | {
|
|
292
|
+
readonly type: "http";
|
|
293
|
+
readonly url: string;
|
|
294
|
+
} | undefined;
|
|
295
|
+
} | {
|
|
296
|
+
readonly _tag: "json";
|
|
297
|
+
readonly pending?: boolean | undefined;
|
|
298
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
299
|
+
readonly data: string;
|
|
300
|
+
} | {
|
|
301
|
+
readonly _tag: "proposal";
|
|
302
|
+
readonly pending?: boolean | undefined;
|
|
303
|
+
readonly text: string;
|
|
304
|
+
} | {
|
|
305
|
+
readonly _tag: "reasoning";
|
|
306
|
+
readonly pending?: boolean | undefined;
|
|
307
|
+
readonly reasoningText?: string | undefined;
|
|
308
|
+
readonly redactedText?: string | undefined;
|
|
309
|
+
readonly signature?: string | undefined;
|
|
310
|
+
} | {
|
|
311
|
+
readonly _tag: "reference";
|
|
312
|
+
readonly pending?: boolean | undefined;
|
|
313
|
+
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
314
|
+
} | {
|
|
315
|
+
readonly _tag: "select";
|
|
316
|
+
readonly pending?: boolean | undefined;
|
|
317
|
+
readonly options: string[];
|
|
318
|
+
} | {
|
|
319
|
+
readonly _tag: "status";
|
|
320
|
+
readonly pending?: boolean | undefined;
|
|
321
|
+
readonly statusText: string;
|
|
322
|
+
} | {
|
|
323
|
+
readonly _tag: "suggestion";
|
|
324
|
+
readonly pending?: boolean | undefined;
|
|
325
|
+
readonly text: string;
|
|
326
|
+
} | {
|
|
327
|
+
readonly _tag: "stats";
|
|
328
|
+
readonly pending?: boolean | undefined;
|
|
329
|
+
readonly mimeType?: string | undefined;
|
|
330
|
+
readonly message?: string | undefined;
|
|
331
|
+
readonly model?: string | undefined;
|
|
332
|
+
readonly usage?: {
|
|
333
|
+
readonly inputTokens?: number | undefined;
|
|
334
|
+
readonly outputTokens?: number | undefined;
|
|
335
|
+
readonly totalTokens?: number | undefined;
|
|
336
|
+
} | undefined;
|
|
337
|
+
readonly toolCalls?: number | undefined;
|
|
338
|
+
readonly errors?: number | undefined;
|
|
339
|
+
readonly duration?: number | undefined;
|
|
340
|
+
} | {
|
|
341
|
+
readonly _tag: "text";
|
|
342
|
+
readonly pending?: boolean | undefined;
|
|
343
|
+
readonly mimeType?: string | undefined;
|
|
344
|
+
readonly text: string;
|
|
345
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
346
|
+
} | {
|
|
347
|
+
readonly _tag: "summary";
|
|
348
|
+
readonly pending?: boolean | undefined;
|
|
349
|
+
readonly content: string;
|
|
350
|
+
} | {
|
|
351
|
+
readonly _tag: "toolkit";
|
|
352
|
+
readonly pending?: boolean | undefined;
|
|
353
|
+
} | {
|
|
354
|
+
readonly _tag: "toolCall";
|
|
355
|
+
readonly pending?: boolean | undefined;
|
|
356
|
+
readonly toolCallId: string;
|
|
357
|
+
readonly name: string;
|
|
358
|
+
readonly input: string;
|
|
359
|
+
readonly providerExecuted: boolean;
|
|
360
|
+
readonly operationKey?: string | undefined;
|
|
361
|
+
readonly operationName?: string | undefined;
|
|
362
|
+
readonly operationIcon?: string | undefined;
|
|
363
|
+
} | {
|
|
364
|
+
readonly _tag: "toolResult";
|
|
365
|
+
readonly pending?: boolean | undefined;
|
|
366
|
+
readonly toolCallId: string;
|
|
367
|
+
readonly name: string;
|
|
368
|
+
readonly result?: string | {
|
|
369
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
370
|
+
readonly content: readonly ({
|
|
371
|
+
readonly _tag: "file";
|
|
372
|
+
readonly pending?: boolean | undefined;
|
|
373
|
+
readonly url: string;
|
|
374
|
+
readonly name?: string | undefined;
|
|
375
|
+
readonly mediaType?: string | undefined;
|
|
376
|
+
} | {
|
|
377
|
+
readonly _tag: "image";
|
|
378
|
+
readonly pending?: boolean | undefined;
|
|
379
|
+
readonly id?: string | undefined;
|
|
380
|
+
readonly source?: {
|
|
381
|
+
readonly type: "base64";
|
|
382
|
+
readonly mediaType: string;
|
|
383
|
+
readonly data: string;
|
|
384
|
+
} | {
|
|
385
|
+
readonly type: "http";
|
|
386
|
+
readonly url: string;
|
|
387
|
+
} | undefined;
|
|
388
|
+
} | {
|
|
389
|
+
readonly _tag: "text";
|
|
390
|
+
readonly pending?: boolean | undefined;
|
|
391
|
+
readonly mimeType?: string | undefined;
|
|
392
|
+
readonly text: string;
|
|
393
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
394
|
+
})[];
|
|
395
|
+
} | undefined;
|
|
396
|
+
readonly error?: string | undefined;
|
|
397
|
+
readonly providerExecuted: boolean;
|
|
398
|
+
} | {
|
|
399
|
+
readonly _tag: "transcript";
|
|
400
|
+
readonly pending?: boolean | undefined;
|
|
401
|
+
readonly started: string;
|
|
402
|
+
readonly text: string;
|
|
403
|
+
})[];
|
|
404
|
+
readonly properties?: {
|
|
405
|
+
readonly [x: string]: any;
|
|
406
|
+
} | undefined;
|
|
407
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, never>;
|
|
408
|
+
objects: Schema.optional<Schema.Array$<import("@dxos/echo/internal").UnknownTypeSchema<Obj.Unknown, import("@dxos/echo/internal").EntityKind.Object>>>;
|
|
159
409
|
options: Schema.optional<Schema.Struct<{
|
|
160
410
|
timeout: Schema.optional<typeof Schema.Number>;
|
|
161
411
|
fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
|
|
162
412
|
}>>;
|
|
163
413
|
}>;
|
|
164
|
-
export
|
|
165
|
-
}
|
|
414
|
+
export type ExtractionInput = Schema.Schema.Type<typeof ExtractionInput>;
|
|
166
415
|
export declare const ExtractionOutput: Schema.Struct<{
|
|
167
|
-
message:
|
|
168
|
-
id:
|
|
169
|
-
parentMessage
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
name?: string | undefined;
|
|
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
|
-
type:
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
pending
|
|
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
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
pending
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
416
|
+
message: Schema.Schema<{
|
|
417
|
+
readonly id: string;
|
|
418
|
+
readonly parentMessage?: string | undefined;
|
|
419
|
+
readonly threadId?: string | undefined;
|
|
420
|
+
readonly created: string;
|
|
421
|
+
readonly sender: {
|
|
422
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
423
|
+
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
424
|
+
readonly fullName?: string | undefined;
|
|
425
|
+
readonly preferredName?: string | undefined;
|
|
426
|
+
readonly nickname?: string | undefined;
|
|
427
|
+
readonly image?: string | undefined;
|
|
428
|
+
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
429
|
+
readonly name?: string | undefined;
|
|
430
|
+
readonly description?: string | undefined;
|
|
431
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
432
|
+
readonly image?: string | undefined;
|
|
433
|
+
readonly website?: string | undefined;
|
|
434
|
+
} & {
|
|
435
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
436
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
437
|
+
readonly jobTitle?: string | undefined;
|
|
438
|
+
readonly department?: string | undefined;
|
|
439
|
+
readonly notes?: string | undefined;
|
|
440
|
+
readonly emails?: readonly {
|
|
441
|
+
readonly label?: string | undefined;
|
|
442
|
+
readonly value: string;
|
|
443
|
+
}[] | undefined;
|
|
444
|
+
readonly identities?: readonly {
|
|
445
|
+
readonly label?: string | undefined;
|
|
446
|
+
readonly value: string;
|
|
447
|
+
}[] | undefined;
|
|
448
|
+
readonly phoneNumbers?: readonly {
|
|
449
|
+
readonly label?: string | undefined;
|
|
450
|
+
readonly value: string;
|
|
451
|
+
}[] | undefined;
|
|
452
|
+
readonly addresses?: readonly {
|
|
453
|
+
readonly label?: string | undefined;
|
|
454
|
+
readonly value: {
|
|
455
|
+
readonly street?: string | undefined;
|
|
456
|
+
readonly extended?: string | undefined;
|
|
457
|
+
readonly locality?: string | undefined;
|
|
458
|
+
readonly region?: string | undefined;
|
|
459
|
+
readonly postalCode?: string | undefined;
|
|
460
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
461
|
+
readonly country?: string | undefined;
|
|
462
|
+
};
|
|
463
|
+
}[] | undefined;
|
|
464
|
+
readonly urls?: readonly {
|
|
465
|
+
readonly label?: string | undefined;
|
|
466
|
+
readonly value: string;
|
|
467
|
+
}[] | undefined;
|
|
468
|
+
readonly birthday?: string | undefined;
|
|
469
|
+
readonly fields?: readonly {
|
|
470
|
+
readonly category?: string | undefined;
|
|
471
|
+
readonly label: string;
|
|
472
|
+
readonly value: string;
|
|
473
|
+
}[] | undefined;
|
|
474
|
+
} & {
|
|
475
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
476
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
477
|
+
readonly identityDid?: string | undefined;
|
|
478
|
+
readonly identityKey?: string | undefined;
|
|
479
|
+
readonly email?: string | undefined;
|
|
480
|
+
readonly name?: string | undefined;
|
|
481
|
+
};
|
|
482
|
+
readonly blocks: readonly ({
|
|
483
|
+
readonly _tag: "anchor";
|
|
484
|
+
readonly pending?: boolean | undefined;
|
|
485
|
+
readonly objectId: string;
|
|
486
|
+
readonly version: unknown;
|
|
487
|
+
} | {
|
|
488
|
+
readonly _tag: "file";
|
|
489
|
+
readonly pending?: boolean | undefined;
|
|
490
|
+
readonly url: string;
|
|
491
|
+
readonly name?: string | undefined;
|
|
492
|
+
readonly mediaType?: string | undefined;
|
|
493
|
+
} | {
|
|
494
|
+
readonly _tag: "image";
|
|
495
|
+
readonly pending?: boolean | undefined;
|
|
496
|
+
readonly id?: string | undefined;
|
|
497
|
+
readonly source?: {
|
|
498
|
+
readonly type: "base64";
|
|
499
|
+
readonly mediaType: string;
|
|
500
|
+
readonly data: string;
|
|
501
|
+
} | {
|
|
502
|
+
readonly type: "http";
|
|
503
|
+
readonly url: string;
|
|
504
|
+
} | undefined;
|
|
505
|
+
} | {
|
|
506
|
+
readonly _tag: "json";
|
|
507
|
+
readonly pending?: boolean | undefined;
|
|
508
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
509
|
+
readonly data: string;
|
|
510
|
+
} | {
|
|
511
|
+
readonly _tag: "proposal";
|
|
512
|
+
readonly pending?: boolean | undefined;
|
|
513
|
+
readonly text: string;
|
|
514
|
+
} | {
|
|
515
|
+
readonly _tag: "reasoning";
|
|
516
|
+
readonly pending?: boolean | undefined;
|
|
517
|
+
readonly reasoningText?: string | undefined;
|
|
518
|
+
readonly redactedText?: string | undefined;
|
|
519
|
+
readonly signature?: string | undefined;
|
|
520
|
+
} | {
|
|
521
|
+
readonly _tag: "reference";
|
|
522
|
+
readonly pending?: boolean | undefined;
|
|
523
|
+
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
524
|
+
} | {
|
|
525
|
+
readonly _tag: "select";
|
|
526
|
+
readonly pending?: boolean | undefined;
|
|
527
|
+
readonly options: string[];
|
|
528
|
+
} | {
|
|
529
|
+
readonly _tag: "status";
|
|
530
|
+
readonly pending?: boolean | undefined;
|
|
531
|
+
readonly statusText: string;
|
|
532
|
+
} | {
|
|
533
|
+
readonly _tag: "suggestion";
|
|
534
|
+
readonly pending?: boolean | undefined;
|
|
535
|
+
readonly text: string;
|
|
536
|
+
} | {
|
|
537
|
+
readonly _tag: "stats";
|
|
538
|
+
readonly pending?: boolean | undefined;
|
|
539
|
+
readonly mimeType?: string | undefined;
|
|
540
|
+
readonly message?: string | undefined;
|
|
541
|
+
readonly model?: string | undefined;
|
|
542
|
+
readonly usage?: {
|
|
543
|
+
readonly inputTokens?: number | undefined;
|
|
544
|
+
readonly outputTokens?: number | undefined;
|
|
545
|
+
readonly totalTokens?: number | undefined;
|
|
546
|
+
} | undefined;
|
|
547
|
+
readonly toolCalls?: number | undefined;
|
|
548
|
+
readonly errors?: number | undefined;
|
|
549
|
+
readonly duration?: number | undefined;
|
|
550
|
+
} | {
|
|
551
|
+
readonly _tag: "text";
|
|
552
|
+
readonly pending?: boolean | undefined;
|
|
553
|
+
readonly mimeType?: string | undefined;
|
|
554
|
+
readonly text: string;
|
|
555
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
556
|
+
} | {
|
|
557
|
+
readonly _tag: "summary";
|
|
558
|
+
readonly pending?: boolean | undefined;
|
|
559
|
+
readonly content: string;
|
|
560
|
+
} | {
|
|
561
|
+
readonly _tag: "toolkit";
|
|
562
|
+
readonly pending?: boolean | undefined;
|
|
563
|
+
} | {
|
|
564
|
+
readonly _tag: "toolCall";
|
|
565
|
+
readonly pending?: boolean | undefined;
|
|
566
|
+
readonly toolCallId: string;
|
|
567
|
+
readonly name: string;
|
|
568
|
+
readonly input: string;
|
|
569
|
+
readonly providerExecuted: boolean;
|
|
570
|
+
readonly operationKey?: string | undefined;
|
|
571
|
+
readonly operationName?: string | undefined;
|
|
572
|
+
readonly operationIcon?: string | undefined;
|
|
573
|
+
} | {
|
|
574
|
+
readonly _tag: "toolResult";
|
|
575
|
+
readonly pending?: boolean | undefined;
|
|
576
|
+
readonly toolCallId: string;
|
|
577
|
+
readonly name: string;
|
|
578
|
+
readonly result?: string | {
|
|
579
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
580
|
+
readonly content: readonly ({
|
|
581
|
+
readonly _tag: "file";
|
|
582
|
+
readonly pending?: boolean | undefined;
|
|
583
|
+
readonly url: string;
|
|
584
|
+
readonly name?: string | undefined;
|
|
585
|
+
readonly mediaType?: string | undefined;
|
|
586
|
+
} | {
|
|
587
|
+
readonly _tag: "image";
|
|
588
|
+
readonly pending?: boolean | undefined;
|
|
589
|
+
readonly id?: string | undefined;
|
|
590
|
+
readonly source?: {
|
|
591
|
+
readonly type: "base64";
|
|
592
|
+
readonly mediaType: string;
|
|
593
|
+
readonly data: string;
|
|
594
|
+
} | {
|
|
595
|
+
readonly type: "http";
|
|
596
|
+
readonly url: string;
|
|
597
|
+
} | undefined;
|
|
598
|
+
} | {
|
|
599
|
+
readonly _tag: "text";
|
|
600
|
+
readonly pending?: boolean | undefined;
|
|
601
|
+
readonly mimeType?: string | undefined;
|
|
602
|
+
readonly text: string;
|
|
603
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
604
|
+
})[];
|
|
605
|
+
} | undefined;
|
|
606
|
+
readonly error?: string | undefined;
|
|
607
|
+
readonly providerExecuted: boolean;
|
|
608
|
+
} | {
|
|
609
|
+
readonly _tag: "transcript";
|
|
610
|
+
readonly pending?: boolean | undefined;
|
|
611
|
+
readonly started: string;
|
|
612
|
+
readonly text: string;
|
|
613
|
+
})[];
|
|
614
|
+
readonly properties?: {
|
|
615
|
+
readonly [x: string]: any;
|
|
616
|
+
} | undefined;
|
|
617
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, {
|
|
618
|
+
readonly id: string;
|
|
619
|
+
readonly parentMessage?: string | undefined;
|
|
620
|
+
readonly threadId?: string | undefined;
|
|
621
|
+
readonly created: string;
|
|
622
|
+
readonly sender: {
|
|
623
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
624
|
+
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
625
|
+
readonly fullName?: string | undefined;
|
|
626
|
+
readonly preferredName?: string | undefined;
|
|
627
|
+
readonly nickname?: string | undefined;
|
|
628
|
+
readonly image?: string | undefined;
|
|
629
|
+
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
630
|
+
readonly name?: string | undefined;
|
|
631
|
+
readonly description?: string | undefined;
|
|
632
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
633
|
+
readonly image?: string | undefined;
|
|
634
|
+
readonly website?: string | undefined;
|
|
635
|
+
} & {
|
|
636
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
637
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
638
|
+
readonly jobTitle?: string | undefined;
|
|
639
|
+
readonly department?: string | undefined;
|
|
640
|
+
readonly notes?: string | undefined;
|
|
641
|
+
readonly emails?: readonly {
|
|
642
|
+
readonly label?: string | undefined;
|
|
643
|
+
readonly value: string;
|
|
644
|
+
}[] | undefined;
|
|
645
|
+
readonly identities?: readonly {
|
|
646
|
+
readonly label?: string | undefined;
|
|
647
|
+
readonly value: string;
|
|
648
|
+
}[] | undefined;
|
|
649
|
+
readonly phoneNumbers?: readonly {
|
|
650
|
+
readonly label?: string | undefined;
|
|
651
|
+
readonly value: string;
|
|
652
|
+
}[] | undefined;
|
|
653
|
+
readonly addresses?: readonly {
|
|
654
|
+
readonly label?: string | undefined;
|
|
655
|
+
readonly value: {
|
|
656
|
+
readonly street?: string | undefined;
|
|
657
|
+
readonly extended?: string | undefined;
|
|
658
|
+
readonly locality?: string | undefined;
|
|
659
|
+
readonly region?: string | undefined;
|
|
660
|
+
readonly postalCode?: string | undefined;
|
|
661
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
662
|
+
readonly country?: string | undefined;
|
|
663
|
+
};
|
|
664
|
+
}[] | undefined;
|
|
665
|
+
readonly urls?: readonly {
|
|
666
|
+
readonly label?: string | undefined;
|
|
667
|
+
readonly value: string;
|
|
668
|
+
}[] | undefined;
|
|
669
|
+
readonly birthday?: string | undefined;
|
|
670
|
+
readonly fields?: readonly {
|
|
671
|
+
readonly category?: string | undefined;
|
|
672
|
+
readonly label: string;
|
|
673
|
+
readonly value: string;
|
|
674
|
+
}[] | undefined;
|
|
675
|
+
} & {
|
|
676
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
677
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
678
|
+
readonly identityDid?: string | undefined;
|
|
679
|
+
readonly identityKey?: string | undefined;
|
|
680
|
+
readonly email?: string | undefined;
|
|
681
|
+
readonly name?: string | undefined;
|
|
682
|
+
};
|
|
683
|
+
readonly blocks: readonly ({
|
|
684
|
+
readonly _tag: "anchor";
|
|
685
|
+
readonly pending?: boolean | undefined;
|
|
686
|
+
readonly objectId: string;
|
|
687
|
+
readonly version: unknown;
|
|
688
|
+
} | {
|
|
689
|
+
readonly _tag: "file";
|
|
690
|
+
readonly pending?: boolean | undefined;
|
|
691
|
+
readonly url: string;
|
|
692
|
+
readonly name?: string | undefined;
|
|
693
|
+
readonly mediaType?: string | undefined;
|
|
694
|
+
} | {
|
|
695
|
+
readonly _tag: "image";
|
|
696
|
+
readonly pending?: boolean | undefined;
|
|
697
|
+
readonly id?: string | undefined;
|
|
698
|
+
readonly source?: {
|
|
699
|
+
readonly type: "base64";
|
|
700
|
+
readonly mediaType: string;
|
|
701
|
+
readonly data: string;
|
|
702
|
+
} | {
|
|
703
|
+
readonly type: "http";
|
|
704
|
+
readonly url: string;
|
|
705
|
+
} | undefined;
|
|
706
|
+
} | {
|
|
707
|
+
readonly _tag: "json";
|
|
708
|
+
readonly pending?: boolean | undefined;
|
|
709
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
710
|
+
readonly data: string;
|
|
711
|
+
} | {
|
|
712
|
+
readonly _tag: "proposal";
|
|
713
|
+
readonly pending?: boolean | undefined;
|
|
714
|
+
readonly text: string;
|
|
715
|
+
} | {
|
|
716
|
+
readonly _tag: "reasoning";
|
|
717
|
+
readonly pending?: boolean | undefined;
|
|
718
|
+
readonly reasoningText?: string | undefined;
|
|
719
|
+
readonly redactedText?: string | undefined;
|
|
720
|
+
readonly signature?: string | undefined;
|
|
721
|
+
} | {
|
|
722
|
+
readonly _tag: "reference";
|
|
723
|
+
readonly pending?: boolean | undefined;
|
|
724
|
+
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
725
|
+
} | {
|
|
726
|
+
readonly _tag: "select";
|
|
727
|
+
readonly pending?: boolean | undefined;
|
|
728
|
+
readonly options: string[];
|
|
729
|
+
} | {
|
|
730
|
+
readonly _tag: "status";
|
|
731
|
+
readonly pending?: boolean | undefined;
|
|
732
|
+
readonly statusText: string;
|
|
733
|
+
} | {
|
|
734
|
+
readonly _tag: "suggestion";
|
|
735
|
+
readonly pending?: boolean | undefined;
|
|
736
|
+
readonly text: string;
|
|
737
|
+
} | {
|
|
738
|
+
readonly _tag: "stats";
|
|
739
|
+
readonly pending?: boolean | undefined;
|
|
740
|
+
readonly mimeType?: string | undefined;
|
|
741
|
+
readonly message?: string | undefined;
|
|
742
|
+
readonly model?: string | undefined;
|
|
743
|
+
readonly usage?: {
|
|
744
|
+
readonly inputTokens?: number | undefined;
|
|
745
|
+
readonly outputTokens?: number | undefined;
|
|
746
|
+
readonly totalTokens?: number | undefined;
|
|
747
|
+
} | undefined;
|
|
748
|
+
readonly toolCalls?: number | undefined;
|
|
749
|
+
readonly errors?: number | undefined;
|
|
750
|
+
readonly duration?: number | undefined;
|
|
751
|
+
} | {
|
|
752
|
+
readonly _tag: "text";
|
|
753
|
+
readonly pending?: boolean | undefined;
|
|
754
|
+
readonly mimeType?: string | undefined;
|
|
755
|
+
readonly text: string;
|
|
756
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
757
|
+
} | {
|
|
758
|
+
readonly _tag: "summary";
|
|
759
|
+
readonly pending?: boolean | undefined;
|
|
760
|
+
readonly content: string;
|
|
761
|
+
} | {
|
|
762
|
+
readonly _tag: "toolkit";
|
|
763
|
+
readonly pending?: boolean | undefined;
|
|
764
|
+
} | {
|
|
765
|
+
readonly _tag: "toolCall";
|
|
766
|
+
readonly pending?: boolean | undefined;
|
|
767
|
+
readonly toolCallId: string;
|
|
768
|
+
readonly name: string;
|
|
769
|
+
readonly input: string;
|
|
770
|
+
readonly providerExecuted: boolean;
|
|
771
|
+
readonly operationKey?: string | undefined;
|
|
772
|
+
readonly operationName?: string | undefined;
|
|
773
|
+
readonly operationIcon?: string | undefined;
|
|
774
|
+
} | {
|
|
775
|
+
readonly _tag: "toolResult";
|
|
776
|
+
readonly pending?: boolean | undefined;
|
|
777
|
+
readonly toolCallId: string;
|
|
778
|
+
readonly name: string;
|
|
779
|
+
readonly result?: string | {
|
|
780
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
781
|
+
readonly content: readonly ({
|
|
782
|
+
readonly _tag: "file";
|
|
783
|
+
readonly pending?: boolean | undefined;
|
|
784
|
+
readonly url: string;
|
|
785
|
+
readonly name?: string | undefined;
|
|
786
|
+
readonly mediaType?: string | undefined;
|
|
787
|
+
} | {
|
|
788
|
+
readonly _tag: "image";
|
|
789
|
+
readonly pending?: boolean | undefined;
|
|
790
|
+
readonly id?: string | undefined;
|
|
791
|
+
readonly source?: {
|
|
792
|
+
readonly type: "base64";
|
|
793
|
+
readonly mediaType: string;
|
|
794
|
+
readonly data: string;
|
|
795
|
+
} | {
|
|
796
|
+
readonly type: "http";
|
|
797
|
+
readonly url: string;
|
|
798
|
+
} | undefined;
|
|
799
|
+
} | {
|
|
800
|
+
readonly _tag: "text";
|
|
801
|
+
readonly pending?: boolean | undefined;
|
|
802
|
+
readonly mimeType?: string | undefined;
|
|
803
|
+
readonly text: string;
|
|
804
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
805
|
+
})[];
|
|
806
|
+
} | undefined;
|
|
807
|
+
readonly error?: string | undefined;
|
|
808
|
+
readonly providerExecuted: boolean;
|
|
809
|
+
} | {
|
|
810
|
+
readonly _tag: "transcript";
|
|
811
|
+
readonly pending?: boolean | undefined;
|
|
812
|
+
readonly started: string;
|
|
813
|
+
readonly text: string;
|
|
814
|
+
})[];
|
|
815
|
+
readonly properties?: {
|
|
816
|
+
readonly [x: string]: any;
|
|
817
|
+
} | undefined;
|
|
818
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, never>;
|
|
319
819
|
timeElapsed: typeof Schema.Number;
|
|
320
820
|
}>;
|
|
321
|
-
export
|
|
322
|
-
|
|
323
|
-
export type ProcessTranscriptMessageParams = {
|
|
821
|
+
export type ExtractionOutput = Schema.Schema.Type<typeof ExtractionOutput>;
|
|
822
|
+
export type ProcessTranscriptMessageProps = {
|
|
324
823
|
input: ExtractionInput;
|
|
325
|
-
function:
|
|
326
|
-
executor: FunctionExecutor;
|
|
824
|
+
function: Operation.Definition<ExtractionInput, ExtractionOutput>;
|
|
327
825
|
options?: {
|
|
328
826
|
/**
|
|
329
827
|
* Timeout for the entity extraction.
|
|
@@ -337,9 +835,843 @@ export type ProcessTranscriptMessageParams = {
|
|
|
337
835
|
fallbackToRaw?: boolean;
|
|
338
836
|
};
|
|
339
837
|
};
|
|
340
|
-
export type ExtractionFunction =
|
|
838
|
+
export type ExtractionFunction = Operation.Definition<ExtractionInput, ExtractionOutput>;
|
|
839
|
+
/**
|
|
840
|
+
* Placeholder for Anthropic-based entity extraction.
|
|
841
|
+
* Implementation is currently disabled pending restoration of extraction logic.
|
|
842
|
+
*/
|
|
843
|
+
export declare const extractionAnthropicFunction: Operation.Definition<{
|
|
844
|
+
readonly message: {
|
|
845
|
+
readonly id: string;
|
|
846
|
+
readonly parentMessage?: string | undefined;
|
|
847
|
+
readonly threadId?: string | undefined;
|
|
848
|
+
readonly created: string;
|
|
849
|
+
readonly sender: {
|
|
850
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
851
|
+
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
852
|
+
readonly fullName?: string | undefined;
|
|
853
|
+
readonly preferredName?: string | undefined;
|
|
854
|
+
readonly nickname?: string | undefined;
|
|
855
|
+
readonly image?: string | undefined;
|
|
856
|
+
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
857
|
+
readonly name?: string | undefined;
|
|
858
|
+
readonly description?: string | undefined;
|
|
859
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
860
|
+
readonly image?: string | undefined;
|
|
861
|
+
readonly website?: string | undefined;
|
|
862
|
+
} & {
|
|
863
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
864
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
865
|
+
readonly jobTitle?: string | undefined;
|
|
866
|
+
readonly department?: string | undefined;
|
|
867
|
+
readonly notes?: string | undefined;
|
|
868
|
+
readonly emails?: readonly {
|
|
869
|
+
readonly label?: string | undefined;
|
|
870
|
+
readonly value: string;
|
|
871
|
+
}[] | undefined;
|
|
872
|
+
readonly identities?: readonly {
|
|
873
|
+
readonly label?: string | undefined;
|
|
874
|
+
readonly value: string;
|
|
875
|
+
}[] | undefined;
|
|
876
|
+
readonly phoneNumbers?: readonly {
|
|
877
|
+
readonly label?: string | undefined;
|
|
878
|
+
readonly value: string;
|
|
879
|
+
}[] | undefined;
|
|
880
|
+
readonly addresses?: readonly {
|
|
881
|
+
readonly label?: string | undefined;
|
|
882
|
+
readonly value: {
|
|
883
|
+
readonly street?: string | undefined;
|
|
884
|
+
readonly extended?: string | undefined;
|
|
885
|
+
readonly locality?: string | undefined;
|
|
886
|
+
readonly region?: string | undefined;
|
|
887
|
+
readonly postalCode?: string | undefined;
|
|
888
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
889
|
+
readonly country?: string | undefined;
|
|
890
|
+
};
|
|
891
|
+
}[] | undefined;
|
|
892
|
+
readonly urls?: readonly {
|
|
893
|
+
readonly label?: string | undefined;
|
|
894
|
+
readonly value: string;
|
|
895
|
+
}[] | undefined;
|
|
896
|
+
readonly birthday?: string | undefined;
|
|
897
|
+
readonly fields?: readonly {
|
|
898
|
+
readonly category?: string | undefined;
|
|
899
|
+
readonly label: string;
|
|
900
|
+
readonly value: string;
|
|
901
|
+
}[] | undefined;
|
|
902
|
+
} & {
|
|
903
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
904
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
905
|
+
readonly identityDid?: string | undefined;
|
|
906
|
+
readonly identityKey?: string | undefined;
|
|
907
|
+
readonly email?: string | undefined;
|
|
908
|
+
readonly name?: string | undefined;
|
|
909
|
+
};
|
|
910
|
+
readonly blocks: readonly ({
|
|
911
|
+
readonly _tag: "anchor";
|
|
912
|
+
readonly pending?: boolean | undefined;
|
|
913
|
+
readonly objectId: string;
|
|
914
|
+
readonly version: unknown;
|
|
915
|
+
} | {
|
|
916
|
+
readonly _tag: "file";
|
|
917
|
+
readonly pending?: boolean | undefined;
|
|
918
|
+
readonly url: string;
|
|
919
|
+
readonly name?: string | undefined;
|
|
920
|
+
readonly mediaType?: string | undefined;
|
|
921
|
+
} | {
|
|
922
|
+
readonly _tag: "image";
|
|
923
|
+
readonly pending?: boolean | undefined;
|
|
924
|
+
readonly id?: string | undefined;
|
|
925
|
+
readonly source?: {
|
|
926
|
+
readonly type: "base64";
|
|
927
|
+
readonly mediaType: string;
|
|
928
|
+
readonly data: string;
|
|
929
|
+
} | {
|
|
930
|
+
readonly type: "http";
|
|
931
|
+
readonly url: string;
|
|
932
|
+
} | undefined;
|
|
933
|
+
} | {
|
|
934
|
+
readonly _tag: "json";
|
|
935
|
+
readonly pending?: boolean | undefined;
|
|
936
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
937
|
+
readonly data: string;
|
|
938
|
+
} | {
|
|
939
|
+
readonly _tag: "proposal";
|
|
940
|
+
readonly pending?: boolean | undefined;
|
|
941
|
+
readonly text: string;
|
|
942
|
+
} | {
|
|
943
|
+
readonly _tag: "reasoning";
|
|
944
|
+
readonly pending?: boolean | undefined;
|
|
945
|
+
readonly reasoningText?: string | undefined;
|
|
946
|
+
readonly redactedText?: string | undefined;
|
|
947
|
+
readonly signature?: string | undefined;
|
|
948
|
+
} | {
|
|
949
|
+
readonly _tag: "reference";
|
|
950
|
+
readonly pending?: boolean | undefined;
|
|
951
|
+
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
952
|
+
} | {
|
|
953
|
+
readonly _tag: "select";
|
|
954
|
+
readonly pending?: boolean | undefined;
|
|
955
|
+
readonly options: string[];
|
|
956
|
+
} | {
|
|
957
|
+
readonly _tag: "status";
|
|
958
|
+
readonly pending?: boolean | undefined;
|
|
959
|
+
readonly statusText: string;
|
|
960
|
+
} | {
|
|
961
|
+
readonly _tag: "suggestion";
|
|
962
|
+
readonly pending?: boolean | undefined;
|
|
963
|
+
readonly text: string;
|
|
964
|
+
} | {
|
|
965
|
+
readonly _tag: "stats";
|
|
966
|
+
readonly pending?: boolean | undefined;
|
|
967
|
+
readonly mimeType?: string | undefined;
|
|
968
|
+
readonly message?: string | undefined;
|
|
969
|
+
readonly model?: string | undefined;
|
|
970
|
+
readonly usage?: {
|
|
971
|
+
readonly inputTokens?: number | undefined;
|
|
972
|
+
readonly outputTokens?: number | undefined;
|
|
973
|
+
readonly totalTokens?: number | undefined;
|
|
974
|
+
} | undefined;
|
|
975
|
+
readonly toolCalls?: number | undefined;
|
|
976
|
+
readonly errors?: number | undefined;
|
|
977
|
+
readonly duration?: number | undefined;
|
|
978
|
+
} | {
|
|
979
|
+
readonly _tag: "text";
|
|
980
|
+
readonly pending?: boolean | undefined;
|
|
981
|
+
readonly mimeType?: string | undefined;
|
|
982
|
+
readonly text: string;
|
|
983
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
984
|
+
} | {
|
|
985
|
+
readonly _tag: "summary";
|
|
986
|
+
readonly pending?: boolean | undefined;
|
|
987
|
+
readonly content: string;
|
|
988
|
+
} | {
|
|
989
|
+
readonly _tag: "toolkit";
|
|
990
|
+
readonly pending?: boolean | undefined;
|
|
991
|
+
} | {
|
|
992
|
+
readonly _tag: "toolCall";
|
|
993
|
+
readonly pending?: boolean | undefined;
|
|
994
|
+
readonly toolCallId: string;
|
|
995
|
+
readonly name: string;
|
|
996
|
+
readonly input: string;
|
|
997
|
+
readonly providerExecuted: boolean;
|
|
998
|
+
readonly operationKey?: string | undefined;
|
|
999
|
+
readonly operationName?: string | undefined;
|
|
1000
|
+
readonly operationIcon?: string | undefined;
|
|
1001
|
+
} | {
|
|
1002
|
+
readonly _tag: "toolResult";
|
|
1003
|
+
readonly pending?: boolean | undefined;
|
|
1004
|
+
readonly toolCallId: string;
|
|
1005
|
+
readonly name: string;
|
|
1006
|
+
readonly result?: string | {
|
|
1007
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
1008
|
+
readonly content: readonly ({
|
|
1009
|
+
readonly _tag: "file";
|
|
1010
|
+
readonly pending?: boolean | undefined;
|
|
1011
|
+
readonly url: string;
|
|
1012
|
+
readonly name?: string | undefined;
|
|
1013
|
+
readonly mediaType?: string | undefined;
|
|
1014
|
+
} | {
|
|
1015
|
+
readonly _tag: "image";
|
|
1016
|
+
readonly pending?: boolean | undefined;
|
|
1017
|
+
readonly id?: string | undefined;
|
|
1018
|
+
readonly source?: {
|
|
1019
|
+
readonly type: "base64";
|
|
1020
|
+
readonly mediaType: string;
|
|
1021
|
+
readonly data: string;
|
|
1022
|
+
} | {
|
|
1023
|
+
readonly type: "http";
|
|
1024
|
+
readonly url: string;
|
|
1025
|
+
} | undefined;
|
|
1026
|
+
} | {
|
|
1027
|
+
readonly _tag: "text";
|
|
1028
|
+
readonly pending?: boolean | undefined;
|
|
1029
|
+
readonly mimeType?: string | undefined;
|
|
1030
|
+
readonly text: string;
|
|
1031
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1032
|
+
})[];
|
|
1033
|
+
} | undefined;
|
|
1034
|
+
readonly error?: string | undefined;
|
|
1035
|
+
readonly providerExecuted: boolean;
|
|
1036
|
+
} | {
|
|
1037
|
+
readonly _tag: "transcript";
|
|
1038
|
+
readonly pending?: boolean | undefined;
|
|
1039
|
+
readonly started: string;
|
|
1040
|
+
readonly text: string;
|
|
1041
|
+
})[];
|
|
1042
|
+
readonly properties?: {
|
|
1043
|
+
readonly [x: string]: any;
|
|
1044
|
+
} | undefined;
|
|
1045
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
|
|
1046
|
+
readonly objects?: readonly Obj.Unknown[] | undefined;
|
|
1047
|
+
readonly options?: {
|
|
1048
|
+
readonly timeout?: number | undefined;
|
|
1049
|
+
readonly fallbackToRaw?: boolean | undefined;
|
|
1050
|
+
} | undefined;
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly message: {
|
|
1053
|
+
readonly id: string;
|
|
1054
|
+
readonly parentMessage?: string | undefined;
|
|
1055
|
+
readonly threadId?: string | undefined;
|
|
1056
|
+
readonly created: string;
|
|
1057
|
+
readonly sender: {
|
|
1058
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
1059
|
+
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
1060
|
+
readonly fullName?: string | undefined;
|
|
1061
|
+
readonly preferredName?: string | undefined;
|
|
1062
|
+
readonly nickname?: string | undefined;
|
|
1063
|
+
readonly image?: string | undefined;
|
|
1064
|
+
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
1065
|
+
readonly name?: string | undefined;
|
|
1066
|
+
readonly description?: string | undefined;
|
|
1067
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
1068
|
+
readonly image?: string | undefined;
|
|
1069
|
+
readonly website?: string | undefined;
|
|
1070
|
+
} & {
|
|
1071
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1072
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1073
|
+
readonly jobTitle?: string | undefined;
|
|
1074
|
+
readonly department?: string | undefined;
|
|
1075
|
+
readonly notes?: string | undefined;
|
|
1076
|
+
readonly emails?: readonly {
|
|
1077
|
+
readonly label?: string | undefined;
|
|
1078
|
+
readonly value: string;
|
|
1079
|
+
}[] | undefined;
|
|
1080
|
+
readonly identities?: readonly {
|
|
1081
|
+
readonly label?: string | undefined;
|
|
1082
|
+
readonly value: string;
|
|
1083
|
+
}[] | undefined;
|
|
1084
|
+
readonly phoneNumbers?: readonly {
|
|
1085
|
+
readonly label?: string | undefined;
|
|
1086
|
+
readonly value: string;
|
|
1087
|
+
}[] | undefined;
|
|
1088
|
+
readonly addresses?: readonly {
|
|
1089
|
+
readonly label?: string | undefined;
|
|
1090
|
+
readonly value: {
|
|
1091
|
+
readonly street?: string | undefined;
|
|
1092
|
+
readonly extended?: string | undefined;
|
|
1093
|
+
readonly locality?: string | undefined;
|
|
1094
|
+
readonly region?: string | undefined;
|
|
1095
|
+
readonly postalCode?: string | undefined;
|
|
1096
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
1097
|
+
readonly country?: string | undefined;
|
|
1098
|
+
};
|
|
1099
|
+
}[] | undefined;
|
|
1100
|
+
readonly urls?: readonly {
|
|
1101
|
+
readonly label?: string | undefined;
|
|
1102
|
+
readonly value: string;
|
|
1103
|
+
}[] | undefined;
|
|
1104
|
+
readonly birthday?: string | undefined;
|
|
1105
|
+
readonly fields?: readonly {
|
|
1106
|
+
readonly category?: string | undefined;
|
|
1107
|
+
readonly label: string;
|
|
1108
|
+
readonly value: string;
|
|
1109
|
+
}[] | undefined;
|
|
1110
|
+
} & {
|
|
1111
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1112
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1113
|
+
readonly identityDid?: string | undefined;
|
|
1114
|
+
readonly identityKey?: string | undefined;
|
|
1115
|
+
readonly email?: string | undefined;
|
|
1116
|
+
readonly name?: string | undefined;
|
|
1117
|
+
};
|
|
1118
|
+
readonly blocks: readonly ({
|
|
1119
|
+
readonly _tag: "anchor";
|
|
1120
|
+
readonly pending?: boolean | undefined;
|
|
1121
|
+
readonly objectId: string;
|
|
1122
|
+
readonly version: unknown;
|
|
1123
|
+
} | {
|
|
1124
|
+
readonly _tag: "file";
|
|
1125
|
+
readonly pending?: boolean | undefined;
|
|
1126
|
+
readonly url: string;
|
|
1127
|
+
readonly name?: string | undefined;
|
|
1128
|
+
readonly mediaType?: string | undefined;
|
|
1129
|
+
} | {
|
|
1130
|
+
readonly _tag: "image";
|
|
1131
|
+
readonly pending?: boolean | undefined;
|
|
1132
|
+
readonly id?: string | undefined;
|
|
1133
|
+
readonly source?: {
|
|
1134
|
+
readonly type: "base64";
|
|
1135
|
+
readonly mediaType: string;
|
|
1136
|
+
readonly data: string;
|
|
1137
|
+
} | {
|
|
1138
|
+
readonly type: "http";
|
|
1139
|
+
readonly url: string;
|
|
1140
|
+
} | undefined;
|
|
1141
|
+
} | {
|
|
1142
|
+
readonly _tag: "json";
|
|
1143
|
+
readonly pending?: boolean | undefined;
|
|
1144
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1145
|
+
readonly data: string;
|
|
1146
|
+
} | {
|
|
1147
|
+
readonly _tag: "proposal";
|
|
1148
|
+
readonly pending?: boolean | undefined;
|
|
1149
|
+
readonly text: string;
|
|
1150
|
+
} | {
|
|
1151
|
+
readonly _tag: "reasoning";
|
|
1152
|
+
readonly pending?: boolean | undefined;
|
|
1153
|
+
readonly reasoningText?: string | undefined;
|
|
1154
|
+
readonly redactedText?: string | undefined;
|
|
1155
|
+
readonly signature?: string | undefined;
|
|
1156
|
+
} | {
|
|
1157
|
+
readonly _tag: "reference";
|
|
1158
|
+
readonly pending?: boolean | undefined;
|
|
1159
|
+
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
1160
|
+
} | {
|
|
1161
|
+
readonly _tag: "select";
|
|
1162
|
+
readonly pending?: boolean | undefined;
|
|
1163
|
+
readonly options: string[];
|
|
1164
|
+
} | {
|
|
1165
|
+
readonly _tag: "status";
|
|
1166
|
+
readonly pending?: boolean | undefined;
|
|
1167
|
+
readonly statusText: string;
|
|
1168
|
+
} | {
|
|
1169
|
+
readonly _tag: "suggestion";
|
|
1170
|
+
readonly pending?: boolean | undefined;
|
|
1171
|
+
readonly text: string;
|
|
1172
|
+
} | {
|
|
1173
|
+
readonly _tag: "stats";
|
|
1174
|
+
readonly pending?: boolean | undefined;
|
|
1175
|
+
readonly mimeType?: string | undefined;
|
|
1176
|
+
readonly message?: string | undefined;
|
|
1177
|
+
readonly model?: string | undefined;
|
|
1178
|
+
readonly usage?: {
|
|
1179
|
+
readonly inputTokens?: number | undefined;
|
|
1180
|
+
readonly outputTokens?: number | undefined;
|
|
1181
|
+
readonly totalTokens?: number | undefined;
|
|
1182
|
+
} | undefined;
|
|
1183
|
+
readonly toolCalls?: number | undefined;
|
|
1184
|
+
readonly errors?: number | undefined;
|
|
1185
|
+
readonly duration?: number | undefined;
|
|
1186
|
+
} | {
|
|
1187
|
+
readonly _tag: "text";
|
|
1188
|
+
readonly pending?: boolean | undefined;
|
|
1189
|
+
readonly mimeType?: string | undefined;
|
|
1190
|
+
readonly text: string;
|
|
1191
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1192
|
+
} | {
|
|
1193
|
+
readonly _tag: "summary";
|
|
1194
|
+
readonly pending?: boolean | undefined;
|
|
1195
|
+
readonly content: string;
|
|
1196
|
+
} | {
|
|
1197
|
+
readonly _tag: "toolkit";
|
|
1198
|
+
readonly pending?: boolean | undefined;
|
|
1199
|
+
} | {
|
|
1200
|
+
readonly _tag: "toolCall";
|
|
1201
|
+
readonly pending?: boolean | undefined;
|
|
1202
|
+
readonly toolCallId: string;
|
|
1203
|
+
readonly name: string;
|
|
1204
|
+
readonly input: string;
|
|
1205
|
+
readonly providerExecuted: boolean;
|
|
1206
|
+
readonly operationKey?: string | undefined;
|
|
1207
|
+
readonly operationName?: string | undefined;
|
|
1208
|
+
readonly operationIcon?: string | undefined;
|
|
1209
|
+
} | {
|
|
1210
|
+
readonly _tag: "toolResult";
|
|
1211
|
+
readonly pending?: boolean | undefined;
|
|
1212
|
+
readonly toolCallId: string;
|
|
1213
|
+
readonly name: string;
|
|
1214
|
+
readonly result?: string | {
|
|
1215
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
1216
|
+
readonly content: readonly ({
|
|
1217
|
+
readonly _tag: "file";
|
|
1218
|
+
readonly pending?: boolean | undefined;
|
|
1219
|
+
readonly url: string;
|
|
1220
|
+
readonly name?: string | undefined;
|
|
1221
|
+
readonly mediaType?: string | undefined;
|
|
1222
|
+
} | {
|
|
1223
|
+
readonly _tag: "image";
|
|
1224
|
+
readonly pending?: boolean | undefined;
|
|
1225
|
+
readonly id?: string | undefined;
|
|
1226
|
+
readonly source?: {
|
|
1227
|
+
readonly type: "base64";
|
|
1228
|
+
readonly mediaType: string;
|
|
1229
|
+
readonly data: string;
|
|
1230
|
+
} | {
|
|
1231
|
+
readonly type: "http";
|
|
1232
|
+
readonly url: string;
|
|
1233
|
+
} | undefined;
|
|
1234
|
+
} | {
|
|
1235
|
+
readonly _tag: "text";
|
|
1236
|
+
readonly pending?: boolean | undefined;
|
|
1237
|
+
readonly mimeType?: string | undefined;
|
|
1238
|
+
readonly text: string;
|
|
1239
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1240
|
+
})[];
|
|
1241
|
+
} | undefined;
|
|
1242
|
+
readonly error?: string | undefined;
|
|
1243
|
+
readonly providerExecuted: boolean;
|
|
1244
|
+
} | {
|
|
1245
|
+
readonly _tag: "transcript";
|
|
1246
|
+
readonly pending?: boolean | undefined;
|
|
1247
|
+
readonly started: string;
|
|
1248
|
+
readonly text: string;
|
|
1249
|
+
})[];
|
|
1250
|
+
readonly properties?: {
|
|
1251
|
+
readonly [x: string]: any;
|
|
1252
|
+
} | undefined;
|
|
1253
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
|
|
1254
|
+
readonly timeElapsed: number;
|
|
1255
|
+
}, never>;
|
|
1256
|
+
/**
|
|
1257
|
+
* Placeholder for NER-based entity extraction.
|
|
1258
|
+
* Implementation is currently disabled pending restoration of extraction logic.
|
|
1259
|
+
*/
|
|
1260
|
+
export declare const extractionNerFunction: Operation.Definition<{
|
|
1261
|
+
readonly message: {
|
|
1262
|
+
readonly id: string;
|
|
1263
|
+
readonly parentMessage?: string | undefined;
|
|
1264
|
+
readonly threadId?: string | undefined;
|
|
1265
|
+
readonly created: string;
|
|
1266
|
+
readonly sender: {
|
|
1267
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
1268
|
+
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
1269
|
+
readonly fullName?: string | undefined;
|
|
1270
|
+
readonly preferredName?: string | undefined;
|
|
1271
|
+
readonly nickname?: string | undefined;
|
|
1272
|
+
readonly image?: string | undefined;
|
|
1273
|
+
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
1274
|
+
readonly name?: string | undefined;
|
|
1275
|
+
readonly description?: string | undefined;
|
|
1276
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
1277
|
+
readonly image?: string | undefined;
|
|
1278
|
+
readonly website?: string | undefined;
|
|
1279
|
+
} & {
|
|
1280
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1281
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1282
|
+
readonly jobTitle?: string | undefined;
|
|
1283
|
+
readonly department?: string | undefined;
|
|
1284
|
+
readonly notes?: string | undefined;
|
|
1285
|
+
readonly emails?: readonly {
|
|
1286
|
+
readonly label?: string | undefined;
|
|
1287
|
+
readonly value: string;
|
|
1288
|
+
}[] | undefined;
|
|
1289
|
+
readonly identities?: readonly {
|
|
1290
|
+
readonly label?: string | undefined;
|
|
1291
|
+
readonly value: string;
|
|
1292
|
+
}[] | undefined;
|
|
1293
|
+
readonly phoneNumbers?: readonly {
|
|
1294
|
+
readonly label?: string | undefined;
|
|
1295
|
+
readonly value: string;
|
|
1296
|
+
}[] | undefined;
|
|
1297
|
+
readonly addresses?: readonly {
|
|
1298
|
+
readonly label?: string | undefined;
|
|
1299
|
+
readonly value: {
|
|
1300
|
+
readonly street?: string | undefined;
|
|
1301
|
+
readonly extended?: string | undefined;
|
|
1302
|
+
readonly locality?: string | undefined;
|
|
1303
|
+
readonly region?: string | undefined;
|
|
1304
|
+
readonly postalCode?: string | undefined;
|
|
1305
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
1306
|
+
readonly country?: string | undefined;
|
|
1307
|
+
};
|
|
1308
|
+
}[] | undefined;
|
|
1309
|
+
readonly urls?: readonly {
|
|
1310
|
+
readonly label?: string | undefined;
|
|
1311
|
+
readonly value: string;
|
|
1312
|
+
}[] | undefined;
|
|
1313
|
+
readonly birthday?: string | undefined;
|
|
1314
|
+
readonly fields?: readonly {
|
|
1315
|
+
readonly category?: string | undefined;
|
|
1316
|
+
readonly label: string;
|
|
1317
|
+
readonly value: string;
|
|
1318
|
+
}[] | undefined;
|
|
1319
|
+
} & {
|
|
1320
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1321
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1322
|
+
readonly identityDid?: string | undefined;
|
|
1323
|
+
readonly identityKey?: string | undefined;
|
|
1324
|
+
readonly email?: string | undefined;
|
|
1325
|
+
readonly name?: string | undefined;
|
|
1326
|
+
};
|
|
1327
|
+
readonly blocks: readonly ({
|
|
1328
|
+
readonly _tag: "anchor";
|
|
1329
|
+
readonly pending?: boolean | undefined;
|
|
1330
|
+
readonly objectId: string;
|
|
1331
|
+
readonly version: unknown;
|
|
1332
|
+
} | {
|
|
1333
|
+
readonly _tag: "file";
|
|
1334
|
+
readonly pending?: boolean | undefined;
|
|
1335
|
+
readonly url: string;
|
|
1336
|
+
readonly name?: string | undefined;
|
|
1337
|
+
readonly mediaType?: string | undefined;
|
|
1338
|
+
} | {
|
|
1339
|
+
readonly _tag: "image";
|
|
1340
|
+
readonly pending?: boolean | undefined;
|
|
1341
|
+
readonly id?: string | undefined;
|
|
1342
|
+
readonly source?: {
|
|
1343
|
+
readonly type: "base64";
|
|
1344
|
+
readonly mediaType: string;
|
|
1345
|
+
readonly data: string;
|
|
1346
|
+
} | {
|
|
1347
|
+
readonly type: "http";
|
|
1348
|
+
readonly url: string;
|
|
1349
|
+
} | undefined;
|
|
1350
|
+
} | {
|
|
1351
|
+
readonly _tag: "json";
|
|
1352
|
+
readonly pending?: boolean | undefined;
|
|
1353
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1354
|
+
readonly data: string;
|
|
1355
|
+
} | {
|
|
1356
|
+
readonly _tag: "proposal";
|
|
1357
|
+
readonly pending?: boolean | undefined;
|
|
1358
|
+
readonly text: string;
|
|
1359
|
+
} | {
|
|
1360
|
+
readonly _tag: "reasoning";
|
|
1361
|
+
readonly pending?: boolean | undefined;
|
|
1362
|
+
readonly reasoningText?: string | undefined;
|
|
1363
|
+
readonly redactedText?: string | undefined;
|
|
1364
|
+
readonly signature?: string | undefined;
|
|
1365
|
+
} | {
|
|
1366
|
+
readonly _tag: "reference";
|
|
1367
|
+
readonly pending?: boolean | undefined;
|
|
1368
|
+
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
1369
|
+
} | {
|
|
1370
|
+
readonly _tag: "select";
|
|
1371
|
+
readonly pending?: boolean | undefined;
|
|
1372
|
+
readonly options: string[];
|
|
1373
|
+
} | {
|
|
1374
|
+
readonly _tag: "status";
|
|
1375
|
+
readonly pending?: boolean | undefined;
|
|
1376
|
+
readonly statusText: string;
|
|
1377
|
+
} | {
|
|
1378
|
+
readonly _tag: "suggestion";
|
|
1379
|
+
readonly pending?: boolean | undefined;
|
|
1380
|
+
readonly text: string;
|
|
1381
|
+
} | {
|
|
1382
|
+
readonly _tag: "stats";
|
|
1383
|
+
readonly pending?: boolean | undefined;
|
|
1384
|
+
readonly mimeType?: string | undefined;
|
|
1385
|
+
readonly message?: string | undefined;
|
|
1386
|
+
readonly model?: string | undefined;
|
|
1387
|
+
readonly usage?: {
|
|
1388
|
+
readonly inputTokens?: number | undefined;
|
|
1389
|
+
readonly outputTokens?: number | undefined;
|
|
1390
|
+
readonly totalTokens?: number | undefined;
|
|
1391
|
+
} | undefined;
|
|
1392
|
+
readonly toolCalls?: number | undefined;
|
|
1393
|
+
readonly errors?: number | undefined;
|
|
1394
|
+
readonly duration?: number | undefined;
|
|
1395
|
+
} | {
|
|
1396
|
+
readonly _tag: "text";
|
|
1397
|
+
readonly pending?: boolean | undefined;
|
|
1398
|
+
readonly mimeType?: string | undefined;
|
|
1399
|
+
readonly text: string;
|
|
1400
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1401
|
+
} | {
|
|
1402
|
+
readonly _tag: "summary";
|
|
1403
|
+
readonly pending?: boolean | undefined;
|
|
1404
|
+
readonly content: string;
|
|
1405
|
+
} | {
|
|
1406
|
+
readonly _tag: "toolkit";
|
|
1407
|
+
readonly pending?: boolean | undefined;
|
|
1408
|
+
} | {
|
|
1409
|
+
readonly _tag: "toolCall";
|
|
1410
|
+
readonly pending?: boolean | undefined;
|
|
1411
|
+
readonly toolCallId: string;
|
|
1412
|
+
readonly name: string;
|
|
1413
|
+
readonly input: string;
|
|
1414
|
+
readonly providerExecuted: boolean;
|
|
1415
|
+
readonly operationKey?: string | undefined;
|
|
1416
|
+
readonly operationName?: string | undefined;
|
|
1417
|
+
readonly operationIcon?: string | undefined;
|
|
1418
|
+
} | {
|
|
1419
|
+
readonly _tag: "toolResult";
|
|
1420
|
+
readonly pending?: boolean | undefined;
|
|
1421
|
+
readonly toolCallId: string;
|
|
1422
|
+
readonly name: string;
|
|
1423
|
+
readonly result?: string | {
|
|
1424
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
1425
|
+
readonly content: readonly ({
|
|
1426
|
+
readonly _tag: "file";
|
|
1427
|
+
readonly pending?: boolean | undefined;
|
|
1428
|
+
readonly url: string;
|
|
1429
|
+
readonly name?: string | undefined;
|
|
1430
|
+
readonly mediaType?: string | undefined;
|
|
1431
|
+
} | {
|
|
1432
|
+
readonly _tag: "image";
|
|
1433
|
+
readonly pending?: boolean | undefined;
|
|
1434
|
+
readonly id?: string | undefined;
|
|
1435
|
+
readonly source?: {
|
|
1436
|
+
readonly type: "base64";
|
|
1437
|
+
readonly mediaType: string;
|
|
1438
|
+
readonly data: string;
|
|
1439
|
+
} | {
|
|
1440
|
+
readonly type: "http";
|
|
1441
|
+
readonly url: string;
|
|
1442
|
+
} | undefined;
|
|
1443
|
+
} | {
|
|
1444
|
+
readonly _tag: "text";
|
|
1445
|
+
readonly pending?: boolean | undefined;
|
|
1446
|
+
readonly mimeType?: string | undefined;
|
|
1447
|
+
readonly text: string;
|
|
1448
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1449
|
+
})[];
|
|
1450
|
+
} | undefined;
|
|
1451
|
+
readonly error?: string | undefined;
|
|
1452
|
+
readonly providerExecuted: boolean;
|
|
1453
|
+
} | {
|
|
1454
|
+
readonly _tag: "transcript";
|
|
1455
|
+
readonly pending?: boolean | undefined;
|
|
1456
|
+
readonly started: string;
|
|
1457
|
+
readonly text: string;
|
|
1458
|
+
})[];
|
|
1459
|
+
readonly properties?: {
|
|
1460
|
+
readonly [x: string]: any;
|
|
1461
|
+
} | undefined;
|
|
1462
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
|
|
1463
|
+
readonly objects?: readonly Obj.Unknown[] | undefined;
|
|
1464
|
+
readonly options?: {
|
|
1465
|
+
readonly timeout?: number | undefined;
|
|
1466
|
+
readonly fallbackToRaw?: boolean | undefined;
|
|
1467
|
+
} | undefined;
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly message: {
|
|
1470
|
+
readonly id: string;
|
|
1471
|
+
readonly parentMessage?: string | undefined;
|
|
1472
|
+
readonly threadId?: string | undefined;
|
|
1473
|
+
readonly created: string;
|
|
1474
|
+
readonly sender: {
|
|
1475
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
1476
|
+
readonly contact?: import("@dxos/echo/internal").Ref<{
|
|
1477
|
+
readonly fullName?: string | undefined;
|
|
1478
|
+
readonly preferredName?: string | undefined;
|
|
1479
|
+
readonly nickname?: string | undefined;
|
|
1480
|
+
readonly image?: string | undefined;
|
|
1481
|
+
readonly organization?: import("@dxos/echo/internal").Ref<{
|
|
1482
|
+
readonly name?: string | undefined;
|
|
1483
|
+
readonly description?: string | undefined;
|
|
1484
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
1485
|
+
readonly image?: string | undefined;
|
|
1486
|
+
readonly website?: string | undefined;
|
|
1487
|
+
} & {
|
|
1488
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1489
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1490
|
+
readonly jobTitle?: string | undefined;
|
|
1491
|
+
readonly department?: string | undefined;
|
|
1492
|
+
readonly notes?: string | undefined;
|
|
1493
|
+
readonly emails?: readonly {
|
|
1494
|
+
readonly label?: string | undefined;
|
|
1495
|
+
readonly value: string;
|
|
1496
|
+
}[] | undefined;
|
|
1497
|
+
readonly identities?: readonly {
|
|
1498
|
+
readonly label?: string | undefined;
|
|
1499
|
+
readonly value: string;
|
|
1500
|
+
}[] | undefined;
|
|
1501
|
+
readonly phoneNumbers?: readonly {
|
|
1502
|
+
readonly label?: string | undefined;
|
|
1503
|
+
readonly value: string;
|
|
1504
|
+
}[] | undefined;
|
|
1505
|
+
readonly addresses?: readonly {
|
|
1506
|
+
readonly label?: string | undefined;
|
|
1507
|
+
readonly value: {
|
|
1508
|
+
readonly street?: string | undefined;
|
|
1509
|
+
readonly extended?: string | undefined;
|
|
1510
|
+
readonly locality?: string | undefined;
|
|
1511
|
+
readonly region?: string | undefined;
|
|
1512
|
+
readonly postalCode?: string | undefined;
|
|
1513
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
1514
|
+
readonly country?: string | undefined;
|
|
1515
|
+
};
|
|
1516
|
+
}[] | undefined;
|
|
1517
|
+
readonly urls?: readonly {
|
|
1518
|
+
readonly label?: string | undefined;
|
|
1519
|
+
readonly value: string;
|
|
1520
|
+
}[] | undefined;
|
|
1521
|
+
readonly birthday?: string | undefined;
|
|
1522
|
+
readonly fields?: readonly {
|
|
1523
|
+
readonly category?: string | undefined;
|
|
1524
|
+
readonly label: string;
|
|
1525
|
+
readonly value: string;
|
|
1526
|
+
}[] | undefined;
|
|
1527
|
+
} & {
|
|
1528
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
1529
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
1530
|
+
readonly identityDid?: string | undefined;
|
|
1531
|
+
readonly identityKey?: string | undefined;
|
|
1532
|
+
readonly email?: string | undefined;
|
|
1533
|
+
readonly name?: string | undefined;
|
|
1534
|
+
};
|
|
1535
|
+
readonly blocks: readonly ({
|
|
1536
|
+
readonly _tag: "anchor";
|
|
1537
|
+
readonly pending?: boolean | undefined;
|
|
1538
|
+
readonly objectId: string;
|
|
1539
|
+
readonly version: unknown;
|
|
1540
|
+
} | {
|
|
1541
|
+
readonly _tag: "file";
|
|
1542
|
+
readonly pending?: boolean | undefined;
|
|
1543
|
+
readonly url: string;
|
|
1544
|
+
readonly name?: string | undefined;
|
|
1545
|
+
readonly mediaType?: string | undefined;
|
|
1546
|
+
} | {
|
|
1547
|
+
readonly _tag: "image";
|
|
1548
|
+
readonly pending?: boolean | undefined;
|
|
1549
|
+
readonly id?: string | undefined;
|
|
1550
|
+
readonly source?: {
|
|
1551
|
+
readonly type: "base64";
|
|
1552
|
+
readonly mediaType: string;
|
|
1553
|
+
readonly data: string;
|
|
1554
|
+
} | {
|
|
1555
|
+
readonly type: "http";
|
|
1556
|
+
readonly url: string;
|
|
1557
|
+
} | undefined;
|
|
1558
|
+
} | {
|
|
1559
|
+
readonly _tag: "json";
|
|
1560
|
+
readonly pending?: boolean | undefined;
|
|
1561
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1562
|
+
readonly data: string;
|
|
1563
|
+
} | {
|
|
1564
|
+
readonly _tag: "proposal";
|
|
1565
|
+
readonly pending?: boolean | undefined;
|
|
1566
|
+
readonly text: string;
|
|
1567
|
+
} | {
|
|
1568
|
+
readonly _tag: "reasoning";
|
|
1569
|
+
readonly pending?: boolean | undefined;
|
|
1570
|
+
readonly reasoningText?: string | undefined;
|
|
1571
|
+
readonly redactedText?: string | undefined;
|
|
1572
|
+
readonly signature?: string | undefined;
|
|
1573
|
+
} | {
|
|
1574
|
+
readonly _tag: "reference";
|
|
1575
|
+
readonly pending?: boolean | undefined;
|
|
1576
|
+
readonly reference: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
1577
|
+
} | {
|
|
1578
|
+
readonly _tag: "select";
|
|
1579
|
+
readonly pending?: boolean | undefined;
|
|
1580
|
+
readonly options: string[];
|
|
1581
|
+
} | {
|
|
1582
|
+
readonly _tag: "status";
|
|
1583
|
+
readonly pending?: boolean | undefined;
|
|
1584
|
+
readonly statusText: string;
|
|
1585
|
+
} | {
|
|
1586
|
+
readonly _tag: "suggestion";
|
|
1587
|
+
readonly pending?: boolean | undefined;
|
|
1588
|
+
readonly text: string;
|
|
1589
|
+
} | {
|
|
1590
|
+
readonly _tag: "stats";
|
|
1591
|
+
readonly pending?: boolean | undefined;
|
|
1592
|
+
readonly mimeType?: string | undefined;
|
|
1593
|
+
readonly message?: string | undefined;
|
|
1594
|
+
readonly model?: string | undefined;
|
|
1595
|
+
readonly usage?: {
|
|
1596
|
+
readonly inputTokens?: number | undefined;
|
|
1597
|
+
readonly outputTokens?: number | undefined;
|
|
1598
|
+
readonly totalTokens?: number | undefined;
|
|
1599
|
+
} | undefined;
|
|
1600
|
+
readonly toolCalls?: number | undefined;
|
|
1601
|
+
readonly errors?: number | undefined;
|
|
1602
|
+
readonly duration?: number | undefined;
|
|
1603
|
+
} | {
|
|
1604
|
+
readonly _tag: "text";
|
|
1605
|
+
readonly pending?: boolean | undefined;
|
|
1606
|
+
readonly mimeType?: string | undefined;
|
|
1607
|
+
readonly text: string;
|
|
1608
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1609
|
+
} | {
|
|
1610
|
+
readonly _tag: "summary";
|
|
1611
|
+
readonly pending?: boolean | undefined;
|
|
1612
|
+
readonly content: string;
|
|
1613
|
+
} | {
|
|
1614
|
+
readonly _tag: "toolkit";
|
|
1615
|
+
readonly pending?: boolean | undefined;
|
|
1616
|
+
} | {
|
|
1617
|
+
readonly _tag: "toolCall";
|
|
1618
|
+
readonly pending?: boolean | undefined;
|
|
1619
|
+
readonly toolCallId: string;
|
|
1620
|
+
readonly name: string;
|
|
1621
|
+
readonly input: string;
|
|
1622
|
+
readonly providerExecuted: boolean;
|
|
1623
|
+
readonly operationKey?: string | undefined;
|
|
1624
|
+
readonly operationName?: string | undefined;
|
|
1625
|
+
readonly operationIcon?: string | undefined;
|
|
1626
|
+
} | {
|
|
1627
|
+
readonly _tag: "toolResult";
|
|
1628
|
+
readonly pending?: boolean | undefined;
|
|
1629
|
+
readonly toolCallId: string;
|
|
1630
|
+
readonly name: string;
|
|
1631
|
+
readonly result?: string | {
|
|
1632
|
+
readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
|
|
1633
|
+
readonly content: readonly ({
|
|
1634
|
+
readonly _tag: "file";
|
|
1635
|
+
readonly pending?: boolean | undefined;
|
|
1636
|
+
readonly url: string;
|
|
1637
|
+
readonly name?: string | undefined;
|
|
1638
|
+
readonly mediaType?: string | undefined;
|
|
1639
|
+
} | {
|
|
1640
|
+
readonly _tag: "image";
|
|
1641
|
+
readonly pending?: boolean | undefined;
|
|
1642
|
+
readonly id?: string | undefined;
|
|
1643
|
+
readonly source?: {
|
|
1644
|
+
readonly type: "base64";
|
|
1645
|
+
readonly mediaType: string;
|
|
1646
|
+
readonly data: string;
|
|
1647
|
+
} | {
|
|
1648
|
+
readonly type: "http";
|
|
1649
|
+
readonly url: string;
|
|
1650
|
+
} | undefined;
|
|
1651
|
+
} | {
|
|
1652
|
+
readonly _tag: "text";
|
|
1653
|
+
readonly pending?: boolean | undefined;
|
|
1654
|
+
readonly mimeType?: string | undefined;
|
|
1655
|
+
readonly text: string;
|
|
1656
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
1657
|
+
})[];
|
|
1658
|
+
} | undefined;
|
|
1659
|
+
readonly error?: string | undefined;
|
|
1660
|
+
readonly providerExecuted: boolean;
|
|
1661
|
+
} | {
|
|
1662
|
+
readonly _tag: "transcript";
|
|
1663
|
+
readonly pending?: boolean | undefined;
|
|
1664
|
+
readonly started: string;
|
|
1665
|
+
readonly text: string;
|
|
1666
|
+
})[];
|
|
1667
|
+
readonly properties?: {
|
|
1668
|
+
readonly [x: string]: any;
|
|
1669
|
+
} | undefined;
|
|
1670
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
|
|
1671
|
+
readonly timeElapsed: number;
|
|
1672
|
+
}, never>;
|
|
341
1673
|
/**
|
|
342
1674
|
* Extract entities from the transcript message and add them to the message.
|
|
343
1675
|
*/
|
|
344
|
-
export declare const processTranscriptMessage: (params:
|
|
1676
|
+
export declare const processTranscriptMessage: (params: ProcessTranscriptMessageProps) => Promise<ExtractionOutput>;
|
|
345
1677
|
//# sourceMappingURL=extraction.d.ts.map
|