@dxos/assistant 0.8.4-main.2e9d522 → 0.8.4-main.3c1ae3b
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/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/extraction/index.mjs +225 -0
- package/dist/lib/browser/extraction/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1050 -1591
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/extraction/index.mjs +226 -0
- package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1048 -1590
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/conversation/context.d.ts +97 -0
- package/dist/types/src/conversation/context.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +29 -26
- package/dist/types/src/conversation/conversation.d.ts.map +1 -1
- 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 +15 -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 -13
- 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-llm-function/extraction-llm-function.d.ts +1 -1
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +103 -59
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.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 +279 -248
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/extraction/quotes.d.ts +1 -1
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/functions/services.d.ts +18 -4
- package/dist/types/src/functions/services.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/session/GenericToolkit.d.ts +84 -0
- package/dist/types/src/session/GenericToolkit.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 +22 -0
- package/dist/types/src/session/observer.d.ts.map +1 -0
- package/dist/types/src/session/session.d.ts +28 -237
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +15 -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 +18 -0
- package/dist/types/src/templates/system.d.ts.map +1 -0
- package/dist/types/src/types/artifact.d.ts +19 -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 +46 -32
- package/src/conversation/context.ts +185 -0
- package/src/conversation/conversation.ts +93 -61
- package/src/conversation/index.ts +1 -0
- package/src/diff.test.ts +43 -0
- package/src/diff.ts +84 -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-llm-function/extraction-llm-function.test.ts +10 -9
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +48 -56
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +20 -19
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +42 -43
- 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 +8 -7
- package/src/extraction/quotes.test.ts +3 -3
- package/src/extraction/quotes.ts +5 -5
- package/src/functions/services.ts +118 -97
- package/src/index.ts +3 -3
- package/src/session/GenericToolkit.ts +130 -0
- package/src/session/artifact-diff.ts +41 -0
- package/src/session/error-handling.ts +41 -0
- package/src/session/format.test.ts +61 -0
- package/src/session/format.ts +145 -0
- package/src/session/index.ts +5 -0
- package/src/session/observer.ts +59 -0
- package/src/session/session.conversations.json +1 -0
- package/src/session/session.test.ts +38 -199
- package/src/session/session.ts +128 -251
- package/src/session/toolkit.ts +48 -0
- package/src/session/version-pin.ts +8 -8
- package/src/templates/index.ts +1 -1
- package/src/templates/instructions/format.tpl +61 -0
- package/src/templates/instructions/system.tpl +48 -0
- package/src/templates/system.ts +41 -0
- package/src/{types.ts → types/artifact.ts} +31 -8
- package/src/types/index.ts +5 -0
- package/src/typings.d.ts +5 -0
- 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/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/testing/index.d.ts +0 -3
- package/dist/types/src/testing/index.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/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/testing/index.ts +0 -11
- package/src/typedefs.d.ts +0 -8
- /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
|
@@ -1,140 +1,156 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { type FunctionDefinition
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Type } from '@dxos/echo';
|
|
3
|
+
import { type FunctionDefinition } from '@dxos/functions';
|
|
4
|
+
import { type FunctionExecutor } from '@dxos/functions-runtime';
|
|
4
5
|
export declare const ExtractionInput: Schema.Struct<{
|
|
5
|
-
message:
|
|
6
|
+
message: Type.obj<Schema.Struct<{
|
|
6
7
|
id: import("@dxos/keys").ObjectIdClass;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
|
|
9
|
+
created: Schema.SchemaClass<string, string, never>;
|
|
10
|
+
sender: Schema.mutable<Schema.Struct<{
|
|
11
|
+
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
12
|
+
contact: Schema.optional<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
13
|
+
image?: string | undefined;
|
|
14
|
+
fullName?: string | undefined;
|
|
15
|
+
preferredName?: string | undefined;
|
|
16
|
+
nickname?: string | undefined;
|
|
17
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
17
18
|
description?: string | undefined;
|
|
19
|
+
name?: string | undefined;
|
|
18
20
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
19
21
|
image?: string | undefined;
|
|
20
22
|
website?: string | undefined;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
value:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
value:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
value:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
value:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
23
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
24
|
+
}> | undefined;
|
|
25
|
+
jobTitle?: string | undefined;
|
|
26
|
+
department?: string | undefined;
|
|
27
|
+
notes?: string | undefined;
|
|
28
|
+
emails?: {
|
|
29
|
+
readonly value: string;
|
|
30
|
+
readonly label?: string | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
identities?: {
|
|
33
|
+
readonly value: string;
|
|
34
|
+
readonly label?: string | undefined;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
phoneNumbers?: {
|
|
37
|
+
readonly value: string;
|
|
38
|
+
readonly label?: string | undefined;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
fields?: {
|
|
41
|
+
readonly value: string;
|
|
42
|
+
readonly label: string;
|
|
43
|
+
readonly category?: string | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
addresses?: {
|
|
46
|
+
readonly value: {
|
|
47
|
+
readonly street?: string | undefined;
|
|
48
|
+
readonly extended?: string | undefined;
|
|
49
|
+
readonly locality?: string | undefined;
|
|
50
|
+
readonly region?: string | undefined;
|
|
51
|
+
readonly postalCode?: string | undefined;
|
|
52
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
53
|
+
readonly country?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
readonly label?: string | undefined;
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
urls?: {
|
|
58
|
+
readonly value: string;
|
|
59
|
+
readonly label?: string | undefined;
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
birthday?: string | undefined;
|
|
62
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
63
|
+
}>>;
|
|
64
|
+
identityDid: Schema.optional<typeof Schema.String>;
|
|
65
|
+
identityKey: Schema.optional<typeof Schema.String>;
|
|
66
|
+
email: Schema.optional<typeof Schema.String>;
|
|
67
|
+
name: Schema.optional<typeof Schema.String>;
|
|
65
68
|
}>>;
|
|
66
|
-
blocks:
|
|
67
|
-
pending:
|
|
69
|
+
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
70
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
68
71
|
objectId: import("@dxos/keys").ObjectIdClass;
|
|
69
|
-
version: typeof
|
|
70
|
-
}>>,
|
|
71
|
-
pending:
|
|
72
|
-
url: typeof
|
|
73
|
-
name:
|
|
74
|
-
mediaType:
|
|
75
|
-
}>>,
|
|
76
|
-
pending:
|
|
77
|
-
id:
|
|
78
|
-
source:
|
|
79
|
-
type:
|
|
80
|
-
mediaType: typeof
|
|
81
|
-
data: typeof
|
|
82
|
-
}>>,
|
|
83
|
-
type:
|
|
84
|
-
url: typeof
|
|
72
|
+
version: typeof Schema.Unknown;
|
|
73
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"file", {
|
|
74
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
75
|
+
url: typeof Schema.String;
|
|
76
|
+
name: Schema.optional<typeof Schema.String>;
|
|
77
|
+
mediaType: Schema.optional<typeof Schema.String>;
|
|
78
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"image", {
|
|
79
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
80
|
+
id: Schema.optional<typeof Schema.String>;
|
|
81
|
+
source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
82
|
+
type: Schema.Literal<["base64"]>;
|
|
83
|
+
mediaType: typeof Schema.String;
|
|
84
|
+
data: typeof Schema.String;
|
|
85
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
86
|
+
type: Schema.Literal<["http"]>;
|
|
87
|
+
url: typeof Schema.String;
|
|
85
88
|
}>>]>>;
|
|
86
|
-
}>>,
|
|
87
|
-
pending:
|
|
88
|
-
disposition:
|
|
89
|
-
data: typeof
|
|
90
|
-
}>>,
|
|
91
|
-
pending:
|
|
92
|
-
text: typeof
|
|
93
|
-
}>>,
|
|
94
|
-
pending:
|
|
95
|
-
reasoningText:
|
|
96
|
-
redactedText:
|
|
97
|
-
signature:
|
|
98
|
-
}>>,
|
|
99
|
-
pending:
|
|
100
|
-
reference: import("@dxos/echo/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}>>,
|
|
105
|
-
pending:
|
|
106
|
-
|
|
107
|
-
}>>,
|
|
108
|
-
pending:
|
|
109
|
-
|
|
110
|
-
}>>,
|
|
111
|
-
pending:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}>>,
|
|
124
|
-
pending:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}>>,
|
|
131
|
-
pending:
|
|
132
|
-
|
|
133
|
-
|
|
89
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"json", {
|
|
90
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
91
|
+
disposition: Schema.optional<typeof Schema.String>;
|
|
92
|
+
data: typeof Schema.String;
|
|
93
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
|
|
94
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
95
|
+
text: typeof Schema.String;
|
|
96
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
|
|
97
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
98
|
+
reasoningText: Schema.optional<typeof Schema.String>;
|
|
99
|
+
redactedText: Schema.optional<typeof Schema.String>;
|
|
100
|
+
signature: Schema.optional<typeof Schema.String>;
|
|
101
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
102
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
103
|
+
reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
|
|
104
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
105
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
106
|
+
options: Schema.Array$<typeof Schema.String>;
|
|
107
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"status", {
|
|
108
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
109
|
+
statusText: typeof Schema.String;
|
|
110
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
|
|
111
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
112
|
+
text: typeof Schema.String;
|
|
113
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"summary", {
|
|
114
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
115
|
+
mimeType: Schema.optional<typeof Schema.String>;
|
|
116
|
+
message: Schema.optional<typeof Schema.String>;
|
|
117
|
+
model: Schema.optional<typeof Schema.String>;
|
|
118
|
+
usage: Schema.optional<Schema.Struct<{
|
|
119
|
+
inputTokens: Schema.optional<typeof Schema.Number>;
|
|
120
|
+
outputTokens: Schema.optional<typeof Schema.Number>;
|
|
121
|
+
totalTokens: Schema.optional<typeof Schema.Number>;
|
|
122
|
+
}>>;
|
|
123
|
+
toolCalls: Schema.optional<typeof Schema.Number>;
|
|
124
|
+
errors: Schema.optional<typeof Schema.Number>;
|
|
125
|
+
duration: Schema.optional<typeof Schema.Number>;
|
|
126
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"text", {
|
|
127
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
128
|
+
mimeType: Schema.optional<typeof Schema.String>;
|
|
129
|
+
text: typeof Schema.String;
|
|
130
|
+
disposition: Schema.optional<typeof Schema.String>;
|
|
131
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
|
|
132
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
133
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
|
|
134
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
135
|
+
toolCallId: typeof Schema.String;
|
|
136
|
+
name: typeof Schema.String;
|
|
137
|
+
input: typeof Schema.String;
|
|
138
|
+
providerExecuted: typeof Schema.Boolean;
|
|
139
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
|
|
140
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
141
|
+
toolCallId: typeof Schema.String;
|
|
142
|
+
name: typeof Schema.String;
|
|
143
|
+
result: Schema.optional<typeof Schema.String>;
|
|
144
|
+
error: Schema.optional<typeof Schema.String>;
|
|
145
|
+
providerExecuted: typeof Schema.Boolean;
|
|
146
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
|
|
147
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
148
|
+
started: typeof Schema.String;
|
|
149
|
+
text: typeof Schema.String;
|
|
134
150
|
}>>]>>>;
|
|
135
|
-
properties:
|
|
151
|
+
properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
136
152
|
}>>;
|
|
137
|
-
objects: Schema.optional<Schema.Array$<Schema.Schema<Expando,
|
|
153
|
+
objects: Schema.optional<Schema.Array$<Type.obj<Schema.Schema<import("@dxos/echo/internal").Expando, import("@dxos/echo/internal").ExpandoEncoded, never>>>>;
|
|
138
154
|
options: Schema.optional<Schema.Struct<{
|
|
139
155
|
timeout: Schema.optional<typeof Schema.Number>;
|
|
140
156
|
fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
|
|
@@ -143,137 +159,152 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
143
159
|
export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInput> {
|
|
144
160
|
}
|
|
145
161
|
export declare const ExtractionOutput: Schema.Struct<{
|
|
146
|
-
message:
|
|
162
|
+
message: Type.obj<Schema.Struct<{
|
|
147
163
|
id: import("@dxos/keys").ObjectIdClass;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
164
|
+
parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
|
|
165
|
+
created: Schema.SchemaClass<string, string, never>;
|
|
166
|
+
sender: Schema.mutable<Schema.Struct<{
|
|
167
|
+
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
168
|
+
contact: Schema.optional<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
169
|
+
image?: string | undefined;
|
|
170
|
+
fullName?: string | undefined;
|
|
171
|
+
preferredName?: string | undefined;
|
|
172
|
+
nickname?: string | undefined;
|
|
173
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
158
174
|
description?: string | undefined;
|
|
175
|
+
name?: string | undefined;
|
|
159
176
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
160
177
|
image?: string | undefined;
|
|
161
178
|
website?: string | undefined;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
value:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
value:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
value:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
value:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
179
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
180
|
+
}> | undefined;
|
|
181
|
+
jobTitle?: string | undefined;
|
|
182
|
+
department?: string | undefined;
|
|
183
|
+
notes?: string | undefined;
|
|
184
|
+
emails?: {
|
|
185
|
+
readonly value: string;
|
|
186
|
+
readonly label?: string | undefined;
|
|
187
|
+
}[] | undefined;
|
|
188
|
+
identities?: {
|
|
189
|
+
readonly value: string;
|
|
190
|
+
readonly label?: string | undefined;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
phoneNumbers?: {
|
|
193
|
+
readonly value: string;
|
|
194
|
+
readonly label?: string | undefined;
|
|
195
|
+
}[] | undefined;
|
|
196
|
+
fields?: {
|
|
197
|
+
readonly value: string;
|
|
198
|
+
readonly label: string;
|
|
199
|
+
readonly category?: string | undefined;
|
|
200
|
+
}[] | undefined;
|
|
201
|
+
addresses?: {
|
|
202
|
+
readonly value: {
|
|
203
|
+
readonly street?: string | undefined;
|
|
204
|
+
readonly extended?: string | undefined;
|
|
205
|
+
readonly locality?: string | undefined;
|
|
206
|
+
readonly region?: string | undefined;
|
|
207
|
+
readonly postalCode?: string | undefined;
|
|
208
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
209
|
+
readonly country?: string | undefined;
|
|
210
|
+
};
|
|
211
|
+
readonly label?: string | undefined;
|
|
212
|
+
}[] | undefined;
|
|
213
|
+
urls?: {
|
|
214
|
+
readonly value: string;
|
|
215
|
+
readonly label?: string | undefined;
|
|
216
|
+
}[] | undefined;
|
|
217
|
+
birthday?: string | undefined;
|
|
218
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
219
|
+
}>>;
|
|
220
|
+
identityDid: Schema.optional<typeof Schema.String>;
|
|
221
|
+
identityKey: Schema.optional<typeof Schema.String>;
|
|
222
|
+
email: Schema.optional<typeof Schema.String>;
|
|
223
|
+
name: Schema.optional<typeof Schema.String>;
|
|
206
224
|
}>>;
|
|
207
|
-
blocks:
|
|
208
|
-
pending:
|
|
225
|
+
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
226
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
209
227
|
objectId: import("@dxos/keys").ObjectIdClass;
|
|
210
|
-
version: typeof
|
|
211
|
-
}>>,
|
|
212
|
-
pending:
|
|
213
|
-
url: typeof
|
|
214
|
-
name:
|
|
215
|
-
mediaType:
|
|
216
|
-
}>>,
|
|
217
|
-
pending:
|
|
218
|
-
id:
|
|
219
|
-
source:
|
|
220
|
-
type:
|
|
221
|
-
mediaType: typeof
|
|
222
|
-
data: typeof
|
|
223
|
-
}>>,
|
|
224
|
-
type:
|
|
225
|
-
url: typeof
|
|
228
|
+
version: typeof Schema.Unknown;
|
|
229
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"file", {
|
|
230
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
231
|
+
url: typeof Schema.String;
|
|
232
|
+
name: Schema.optional<typeof Schema.String>;
|
|
233
|
+
mediaType: Schema.optional<typeof Schema.String>;
|
|
234
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"image", {
|
|
235
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
236
|
+
id: Schema.optional<typeof Schema.String>;
|
|
237
|
+
source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
238
|
+
type: Schema.Literal<["base64"]>;
|
|
239
|
+
mediaType: typeof Schema.String;
|
|
240
|
+
data: typeof Schema.String;
|
|
241
|
+
}>>, Schema.mutable<Schema.Struct<{
|
|
242
|
+
type: Schema.Literal<["http"]>;
|
|
243
|
+
url: typeof Schema.String;
|
|
226
244
|
}>>]>>;
|
|
227
|
-
}>>,
|
|
228
|
-
pending:
|
|
229
|
-
disposition:
|
|
230
|
-
data: typeof
|
|
231
|
-
}>>,
|
|
232
|
-
pending:
|
|
233
|
-
text: typeof
|
|
234
|
-
}>>,
|
|
235
|
-
pending:
|
|
236
|
-
reasoningText:
|
|
237
|
-
redactedText:
|
|
238
|
-
signature:
|
|
239
|
-
}>>,
|
|
240
|
-
pending:
|
|
241
|
-
reference: import("@dxos/echo/
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}>>,
|
|
246
|
-
pending:
|
|
247
|
-
|
|
248
|
-
}>>,
|
|
249
|
-
pending:
|
|
250
|
-
|
|
251
|
-
}>>,
|
|
252
|
-
pending:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}>>,
|
|
265
|
-
pending:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}>>,
|
|
272
|
-
pending:
|
|
273
|
-
|
|
274
|
-
|
|
245
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"json", {
|
|
246
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
247
|
+
disposition: Schema.optional<typeof Schema.String>;
|
|
248
|
+
data: typeof Schema.String;
|
|
249
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
|
|
250
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
251
|
+
text: typeof Schema.String;
|
|
252
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
|
|
253
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
254
|
+
reasoningText: Schema.optional<typeof Schema.String>;
|
|
255
|
+
redactedText: Schema.optional<typeof Schema.String>;
|
|
256
|
+
signature: Schema.optional<typeof Schema.String>;
|
|
257
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
258
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
259
|
+
reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
|
|
260
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
261
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
262
|
+
options: Schema.Array$<typeof Schema.String>;
|
|
263
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"status", {
|
|
264
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
265
|
+
statusText: typeof Schema.String;
|
|
266
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
|
|
267
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
268
|
+
text: typeof Schema.String;
|
|
269
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"summary", {
|
|
270
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
271
|
+
mimeType: Schema.optional<typeof Schema.String>;
|
|
272
|
+
message: Schema.optional<typeof Schema.String>;
|
|
273
|
+
model: Schema.optional<typeof Schema.String>;
|
|
274
|
+
usage: Schema.optional<Schema.Struct<{
|
|
275
|
+
inputTokens: Schema.optional<typeof Schema.Number>;
|
|
276
|
+
outputTokens: Schema.optional<typeof Schema.Number>;
|
|
277
|
+
totalTokens: Schema.optional<typeof Schema.Number>;
|
|
278
|
+
}>>;
|
|
279
|
+
toolCalls: Schema.optional<typeof Schema.Number>;
|
|
280
|
+
errors: Schema.optional<typeof Schema.Number>;
|
|
281
|
+
duration: Schema.optional<typeof Schema.Number>;
|
|
282
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"text", {
|
|
283
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
284
|
+
mimeType: Schema.optional<typeof Schema.String>;
|
|
285
|
+
text: typeof Schema.String;
|
|
286
|
+
disposition: Schema.optional<typeof Schema.String>;
|
|
287
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
|
|
288
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
289
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
|
|
290
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
291
|
+
toolCallId: typeof Schema.String;
|
|
292
|
+
name: typeof Schema.String;
|
|
293
|
+
input: typeof Schema.String;
|
|
294
|
+
providerExecuted: typeof Schema.Boolean;
|
|
295
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
|
|
296
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
297
|
+
toolCallId: typeof Schema.String;
|
|
298
|
+
name: typeof Schema.String;
|
|
299
|
+
result: Schema.optional<typeof Schema.String>;
|
|
300
|
+
error: Schema.optional<typeof Schema.String>;
|
|
301
|
+
providerExecuted: typeof Schema.Boolean;
|
|
302
|
+
}>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
|
|
303
|
+
pending: Schema.optional<typeof Schema.Boolean>;
|
|
304
|
+
started: typeof Schema.String;
|
|
305
|
+
text: typeof Schema.String;
|
|
275
306
|
}>>]>>>;
|
|
276
|
-
properties:
|
|
307
|
+
properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
277
308
|
}>>;
|
|
278
309
|
timeElapsed: typeof Schema.Number;
|
|
279
310
|
}>;
|