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