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