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