@dxos/assistant 0.8.4-main.ae835ea → 0.8.4-main.bc674ce
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-4VIJTKPM.mjs → chunk-7CDDG6LL.mjs} +252 -28
- package/dist/lib/browser/chunk-7CDDG6LL.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/extraction/index.mjs +119 -166
- package/dist/lib/browser/extraction/index.mjs.map +4 -4
- package/dist/lib/browser/index.mjs +239 -289
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +32 -0
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-AUUC7II4.mjs → chunk-CC7ER6Q3.mjs} +251 -28
- package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/extraction/index.mjs +119 -166
- package/dist/lib/node-esm/extraction/index.mjs.map +4 -4
- package/dist/lib/node-esm/index.mjs +239 -289
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +33 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/types/src/conversation/context.d.ts +88 -62
- package/dist/types/src/conversation/context.d.ts.map +1 -1
- package/dist/types/src/conversation/context.test.d.ts +2 -0
- package/dist/types/src/conversation/context.test.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +16 -16
- 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/errors.d.ts +22 -30
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/execution-graph.d.ts +5 -2
- package/dist/types/src/execution-graph.d.ts.map +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 +254 -252
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction.d.ts +344 -309
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/extraction/quotes.d.ts +2 -2
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/functions/services.d.ts +4 -3
- 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/session/GenericToolkit.d.ts +85 -0
- package/dist/types/src/session/GenericToolkit.d.ts.map +1 -0
- package/dist/types/src/session/artifact-diff.d.ts +1 -1
- package/dist/types/src/session/artifact-diff.d.ts.map +1 -1
- package/dist/types/src/session/format.d.ts +4 -178
- package/dist/types/src/session/format.d.ts.map +1 -1
- package/dist/types/src/session/index.d.ts +1 -0
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/observer.d.ts +6 -5
- package/dist/types/src/session/observer.d.ts.map +1 -1
- package/dist/types/src/session/session.d.ts +16 -11
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +5 -6
- package/dist/types/src/session/toolkit.d.ts.map +1 -1
- package/dist/types/src/session/version-pin.d.ts +3 -3
- package/dist/types/src/session/version-pin.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/layer.d.ts +21 -0
- package/dist/types/src/testing/layer.d.ts.map +1 -0
- package/dist/types/src/types/artifact.d.ts +14 -2
- package/dist/types/src/types/artifact.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -27
- package/src/conversation/context.test.ts +46 -0
- package/src/conversation/context.ts +183 -66
- package/src/conversation/conversation.test.ts +65 -0
- package/src/conversation/conversation.ts +51 -54
- package/src/diff.test.ts +3 -3
- package/src/errors.ts +2 -2
- package/src/execution-graph.test.ts +45 -43
- package/src/execution-graph.ts +23 -14
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +2 -2
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +44 -54
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +14 -13
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +36 -44
- package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +10 -5
- package/src/extraction/extraction.ts +9 -8
- package/src/extraction/quotes.ts +4 -5
- package/src/functions/services.ts +41 -19
- package/src/functions.conversations.json +1 -0
- package/src/functions.test.ts +74 -0
- package/src/session/GenericToolkit.ts +131 -0
- package/src/session/artifact-diff.ts +1 -1
- package/src/session/format.test.ts +103 -39
- package/src/session/format.ts +17 -16
- package/src/session/index.ts +2 -0
- package/src/session/observer.ts +5 -3
- package/src/session/session.conversations.json +1 -1
- package/src/session/session.test.ts +7 -13
- package/src/session/session.ts +40 -19
- package/src/session/toolkit.ts +13 -22
- package/src/session/version-pin.ts +6 -6
- package/src/templates/{format.tpl → instructions/format.tpl} +1 -0
- package/src/templates/system.ts +2 -2
- package/src/testing/index.ts +5 -0
- package/src/testing/layer.ts +78 -0
- package/src/types/artifact.ts +33 -3
- package/dist/lib/browser/chunk-4VIJTKPM.mjs.map +0 -7
- package/dist/lib/browser/chunk-UB26N5UF.mjs +0 -89
- package/dist/lib/browser/chunk-UB26N5UF.mjs.map +0 -7
- package/dist/lib/browser/named-entity-recognition-QPYHML66.mjs +0 -13
- package/dist/lib/node-esm/chunk-AUUC7II4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BCFXTNSK.mjs +0 -91
- package/dist/lib/node-esm/chunk-BCFXTNSK.mjs.map +0 -7
- package/dist/lib/node-esm/named-entity-recognition-2HDF46YX.mjs +0 -14
- package/dist/types/src/summarization/summarization.test.d.ts +0 -2
- package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
- package/src/summarization/summarization.test.ts +0 -202
- /package/dist/lib/browser/{named-entity-recognition-QPYHML66.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/node-esm/{named-entity-recognition-2HDF46YX.mjs.map → chunk-HSLMI22Q.mjs.map} +0 -0
- /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
- /package/src/templates/{system.tpl → instructions/system.tpl} +0 -0
|
@@ -6,42 +6,48 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
|
|
|
6
6
|
readonly timeout?: number | undefined;
|
|
7
7
|
readonly fallbackToRaw?: boolean | undefined;
|
|
8
8
|
} | undefined;
|
|
9
|
-
readonly message: import("@dxos/echo/
|
|
10
|
-
id: string;
|
|
11
|
-
parentMessage?: string | undefined;
|
|
12
|
-
created: string;
|
|
13
|
-
sender: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly parentMessage?: string | undefined;
|
|
12
|
+
readonly created: string;
|
|
13
|
+
readonly sender: {
|
|
14
|
+
readonly name?: string | undefined;
|
|
15
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
16
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
17
|
+
readonly image?: string | undefined;
|
|
18
|
+
readonly fullName?: string | undefined;
|
|
19
|
+
readonly preferredName?: string | undefined;
|
|
20
|
+
readonly nickname?: string | undefined;
|
|
21
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
22
|
+
readonly description?: string | undefined;
|
|
23
|
+
readonly name?: string | undefined;
|
|
24
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
25
|
+
readonly image?: string | undefined;
|
|
26
|
+
readonly website?: string | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
27
29
|
}> | undefined;
|
|
28
|
-
jobTitle?: string | undefined;
|
|
29
|
-
department?: string | undefined;
|
|
30
|
-
notes?: string | undefined;
|
|
31
|
-
emails?: {
|
|
32
|
-
readonly label?: string | undefined;
|
|
30
|
+
readonly jobTitle?: string | undefined;
|
|
31
|
+
readonly department?: string | undefined;
|
|
32
|
+
readonly notes?: string | undefined;
|
|
33
|
+
readonly emails?: readonly {
|
|
33
34
|
readonly value: string;
|
|
34
|
-
}[] | undefined;
|
|
35
|
-
identities?: {
|
|
36
35
|
readonly label?: string | undefined;
|
|
36
|
+
}[] | undefined;
|
|
37
|
+
readonly identities?: readonly {
|
|
37
38
|
readonly value: string;
|
|
39
|
+
readonly label?: string | undefined;
|
|
38
40
|
}[] | undefined;
|
|
39
|
-
phoneNumbers?: {
|
|
41
|
+
readonly phoneNumbers?: readonly {
|
|
42
|
+
readonly value: string;
|
|
40
43
|
readonly label?: string | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
readonly fields?: readonly {
|
|
41
46
|
readonly value: string;
|
|
47
|
+
readonly label: string;
|
|
48
|
+
readonly category?: string | undefined;
|
|
42
49
|
}[] | undefined;
|
|
43
|
-
addresses?: {
|
|
44
|
-
readonly label?: string | undefined;
|
|
50
|
+
readonly addresses?: readonly {
|
|
45
51
|
readonly value: {
|
|
46
52
|
readonly street?: string | undefined;
|
|
47
53
|
readonly extended?: string | undefined;
|
|
@@ -51,165 +57,166 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
|
|
|
51
57
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
52
58
|
readonly country?: string | undefined;
|
|
53
59
|
};
|
|
54
|
-
}[] | undefined;
|
|
55
|
-
urls?: {
|
|
56
60
|
readonly label?: string | undefined;
|
|
57
|
-
readonly value: string;
|
|
58
61
|
}[] | undefined;
|
|
59
|
-
|
|
60
|
-
fields?: {
|
|
61
|
-
readonly label: string;
|
|
62
|
+
readonly urls?: readonly {
|
|
62
63
|
readonly value: string;
|
|
63
|
-
readonly
|
|
64
|
+
readonly label?: string | undefined;
|
|
64
65
|
}[] | undefined;
|
|
65
|
-
|
|
66
|
+
readonly birthday?: string | undefined;
|
|
67
|
+
} & {
|
|
68
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
66
69
|
}> | undefined;
|
|
67
|
-
identityDid?: string | undefined;
|
|
68
|
-
identityKey?: string | undefined;
|
|
69
|
-
email?: string | undefined;
|
|
70
|
-
name?: string | undefined;
|
|
71
|
-
role?: "user" | "assistant" | "tool" | undefined;
|
|
70
|
+
readonly identityDid?: string | undefined;
|
|
71
|
+
readonly identityKey?: string | undefined;
|
|
72
|
+
readonly email?: string | undefined;
|
|
72
73
|
};
|
|
73
|
-
blocks: ({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
readonly blocks: readonly ({
|
|
75
|
+
readonly pending?: boolean | undefined;
|
|
76
|
+
readonly text: string;
|
|
77
|
+
readonly mimeType?: string | undefined;
|
|
78
|
+
readonly disposition?: string | undefined;
|
|
79
|
+
readonly _tag: "text";
|
|
78
80
|
} | {
|
|
79
|
-
|
|
80
|
-
_tag: "
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
readonly pending?: boolean | undefined;
|
|
82
|
+
readonly _tag: "reasoning";
|
|
83
|
+
readonly reasoningText?: string | undefined;
|
|
84
|
+
readonly redactedText?: string | undefined;
|
|
85
|
+
readonly signature?: string | undefined;
|
|
84
86
|
} | {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
data: string;
|
|
92
|
-
} | {
|
|
93
|
-
url: string;
|
|
94
|
-
type: "http";
|
|
95
|
-
} | undefined;
|
|
87
|
+
readonly name: string;
|
|
88
|
+
readonly pending?: boolean | undefined;
|
|
89
|
+
readonly _tag: "toolCall";
|
|
90
|
+
readonly toolCallId: string;
|
|
91
|
+
readonly input: string;
|
|
92
|
+
readonly providerExecuted: boolean;
|
|
96
93
|
} | {
|
|
97
|
-
|
|
98
|
-
pending?: boolean | undefined;
|
|
99
|
-
|
|
100
|
-
|
|
94
|
+
readonly name: string;
|
|
95
|
+
readonly pending?: boolean | undefined;
|
|
96
|
+
readonly _tag: "toolResult";
|
|
97
|
+
readonly toolCallId: string;
|
|
98
|
+
readonly providerExecuted: boolean;
|
|
99
|
+
readonly result?: string | undefined;
|
|
100
|
+
readonly error?: string | undefined;
|
|
101
101
|
} | {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
readonly pending?: boolean | undefined;
|
|
103
|
+
readonly mimeType?: string | undefined;
|
|
104
|
+
readonly _tag: "summary";
|
|
105
|
+
readonly message?: string | undefined;
|
|
106
|
+
readonly model?: string | undefined;
|
|
107
|
+
readonly usage?: {
|
|
108
|
+
readonly inputTokens?: number | undefined;
|
|
109
|
+
readonly outputTokens?: number | undefined;
|
|
110
|
+
readonly totalTokens?: number | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
readonly toolCalls?: number | undefined;
|
|
113
|
+
readonly errors?: number | undefined;
|
|
114
|
+
readonly duration?: number | undefined;
|
|
105
115
|
} | {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
116
|
+
readonly source?: {
|
|
117
|
+
readonly type: "base64";
|
|
118
|
+
readonly mediaType: string;
|
|
119
|
+
readonly data: string;
|
|
120
|
+
} | {
|
|
121
|
+
readonly type: "http";
|
|
122
|
+
readonly url: string;
|
|
123
|
+
} | undefined;
|
|
124
|
+
readonly id?: string | undefined;
|
|
125
|
+
readonly pending?: boolean | undefined;
|
|
126
|
+
readonly _tag: "image";
|
|
111
127
|
} | {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
128
|
+
readonly name?: string | undefined;
|
|
129
|
+
readonly pending?: boolean | undefined;
|
|
130
|
+
readonly _tag: "file";
|
|
131
|
+
readonly mediaType?: string | undefined;
|
|
132
|
+
readonly url: string;
|
|
115
133
|
} | {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
134
|
+
readonly pending?: boolean | undefined;
|
|
135
|
+
readonly _tag: "reference";
|
|
136
|
+
readonly reference: import("@dxos/echo/internal").Ref<any>;
|
|
119
137
|
} | {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
138
|
+
readonly pending?: boolean | undefined;
|
|
139
|
+
readonly text: string;
|
|
140
|
+
readonly _tag: "transcript";
|
|
141
|
+
readonly started: string;
|
|
123
142
|
} | {
|
|
124
|
-
|
|
125
|
-
_tag: "
|
|
126
|
-
|
|
143
|
+
readonly pending?: boolean | undefined;
|
|
144
|
+
readonly _tag: "status";
|
|
145
|
+
readonly statusText: string;
|
|
127
146
|
} | {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
message?: string | undefined;
|
|
132
|
-
model?: string | undefined;
|
|
133
|
-
usage?: {
|
|
134
|
-
readonly inputTokens?: number | undefined;
|
|
135
|
-
readonly outputTokens?: number | undefined;
|
|
136
|
-
readonly totalTokens?: number | undefined;
|
|
137
|
-
} | undefined;
|
|
138
|
-
toolCalls?: number | undefined;
|
|
139
|
-
errors?: number | undefined;
|
|
140
|
-
duration?: number | undefined;
|
|
147
|
+
readonly pending?: boolean | undefined;
|
|
148
|
+
readonly text: string;
|
|
149
|
+
readonly _tag: "suggestion";
|
|
141
150
|
} | {
|
|
142
|
-
|
|
143
|
-
_tag: "
|
|
144
|
-
|
|
145
|
-
disposition?: string | undefined;
|
|
146
|
-
mimeType?: string | undefined;
|
|
151
|
+
readonly pending?: boolean | undefined;
|
|
152
|
+
readonly _tag: "select";
|
|
153
|
+
readonly options: string[];
|
|
147
154
|
} | {
|
|
148
|
-
|
|
149
|
-
pending?: boolean | undefined;
|
|
155
|
+
readonly version: unknown;
|
|
156
|
+
readonly pending?: boolean | undefined;
|
|
157
|
+
readonly _tag: "anchor";
|
|
158
|
+
readonly objectId: string;
|
|
150
159
|
} | {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
toolCallId: string;
|
|
155
|
-
input: string;
|
|
156
|
-
providerExecuted: boolean;
|
|
160
|
+
readonly pending?: boolean | undefined;
|
|
161
|
+
readonly text: string;
|
|
162
|
+
readonly _tag: "proposal";
|
|
157
163
|
} | {
|
|
158
|
-
|
|
159
|
-
_tag: "
|
|
160
|
-
pending?: boolean | undefined;
|
|
161
|
-
toolCallId: string;
|
|
162
|
-
providerExecuted: boolean;
|
|
163
|
-
result?: string | undefined;
|
|
164
|
-
error?: string | undefined;
|
|
164
|
+
readonly pending?: boolean | undefined;
|
|
165
|
+
readonly _tag: "toolkit";
|
|
165
166
|
} | {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
readonly pending?: boolean | undefined;
|
|
168
|
+
readonly disposition?: string | undefined;
|
|
169
|
+
readonly _tag: "json";
|
|
170
|
+
readonly data: string;
|
|
170
171
|
})[];
|
|
171
|
-
properties?: {
|
|
172
|
-
[x: string]: any;
|
|
172
|
+
readonly properties?: {
|
|
173
|
+
readonly [x: string]: any;
|
|
173
174
|
} | undefined;
|
|
174
175
|
};
|
|
175
|
-
readonly objects?: readonly
|
|
176
|
+
readonly objects?: readonly any[] | undefined;
|
|
176
177
|
}, {
|
|
177
|
-
readonly message: import("@dxos/echo/
|
|
178
|
-
id: string;
|
|
179
|
-
parentMessage?: string | undefined;
|
|
180
|
-
created: string;
|
|
181
|
-
sender: {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
178
|
+
readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
179
|
+
readonly id: string;
|
|
180
|
+
readonly parentMessage?: string | undefined;
|
|
181
|
+
readonly created: string;
|
|
182
|
+
readonly sender: {
|
|
183
|
+
readonly name?: string | undefined;
|
|
184
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
185
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
186
|
+
readonly image?: string | undefined;
|
|
187
|
+
readonly fullName?: string | undefined;
|
|
188
|
+
readonly preferredName?: string | undefined;
|
|
189
|
+
readonly nickname?: string | undefined;
|
|
190
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
191
|
+
readonly description?: string | undefined;
|
|
192
|
+
readonly name?: string | undefined;
|
|
193
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
194
|
+
readonly image?: string | undefined;
|
|
195
|
+
readonly website?: string | undefined;
|
|
196
|
+
} & {
|
|
197
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
195
198
|
}> | undefined;
|
|
196
|
-
jobTitle?: string | undefined;
|
|
197
|
-
department?: string | undefined;
|
|
198
|
-
notes?: string | undefined;
|
|
199
|
-
emails?: {
|
|
200
|
-
readonly label?: string | undefined;
|
|
199
|
+
readonly jobTitle?: string | undefined;
|
|
200
|
+
readonly department?: string | undefined;
|
|
201
|
+
readonly notes?: string | undefined;
|
|
202
|
+
readonly emails?: readonly {
|
|
201
203
|
readonly value: string;
|
|
202
|
-
}[] | undefined;
|
|
203
|
-
identities?: {
|
|
204
204
|
readonly label?: string | undefined;
|
|
205
|
+
}[] | undefined;
|
|
206
|
+
readonly identities?: readonly {
|
|
205
207
|
readonly value: string;
|
|
208
|
+
readonly label?: string | undefined;
|
|
206
209
|
}[] | undefined;
|
|
207
|
-
phoneNumbers?: {
|
|
210
|
+
readonly phoneNumbers?: readonly {
|
|
211
|
+
readonly value: string;
|
|
208
212
|
readonly label?: string | undefined;
|
|
213
|
+
}[] | undefined;
|
|
214
|
+
readonly fields?: readonly {
|
|
209
215
|
readonly value: string;
|
|
216
|
+
readonly label: string;
|
|
217
|
+
readonly category?: string | undefined;
|
|
210
218
|
}[] | undefined;
|
|
211
|
-
addresses?: {
|
|
212
|
-
readonly label?: string | undefined;
|
|
219
|
+
readonly addresses?: readonly {
|
|
213
220
|
readonly value: {
|
|
214
221
|
readonly street?: string | undefined;
|
|
215
222
|
readonly extended?: string | undefined;
|
|
@@ -219,127 +226,122 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
|
|
|
219
226
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
220
227
|
readonly country?: string | undefined;
|
|
221
228
|
};
|
|
222
|
-
}[] | undefined;
|
|
223
|
-
urls?: {
|
|
224
229
|
readonly label?: string | undefined;
|
|
225
|
-
readonly value: string;
|
|
226
230
|
}[] | undefined;
|
|
227
|
-
|
|
228
|
-
fields?: {
|
|
229
|
-
readonly label: string;
|
|
231
|
+
readonly urls?: readonly {
|
|
230
232
|
readonly value: string;
|
|
231
|
-
readonly
|
|
233
|
+
readonly label?: string | undefined;
|
|
232
234
|
}[] | undefined;
|
|
233
|
-
|
|
235
|
+
readonly birthday?: string | undefined;
|
|
236
|
+
} & {
|
|
237
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
234
238
|
}> | undefined;
|
|
235
|
-
identityDid?: string | undefined;
|
|
236
|
-
identityKey?: string | undefined;
|
|
237
|
-
email?: string | undefined;
|
|
238
|
-
name?: string | undefined;
|
|
239
|
-
role?: "user" | "assistant" | "tool" | undefined;
|
|
239
|
+
readonly identityDid?: string | undefined;
|
|
240
|
+
readonly identityKey?: string | undefined;
|
|
241
|
+
readonly email?: string | undefined;
|
|
240
242
|
};
|
|
241
|
-
blocks: ({
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
readonly blocks: readonly ({
|
|
244
|
+
readonly pending?: boolean | undefined;
|
|
245
|
+
readonly text: string;
|
|
246
|
+
readonly mimeType?: string | undefined;
|
|
247
|
+
readonly disposition?: string | undefined;
|
|
248
|
+
readonly _tag: "text";
|
|
246
249
|
} | {
|
|
247
|
-
|
|
248
|
-
_tag: "
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
readonly pending?: boolean | undefined;
|
|
251
|
+
readonly _tag: "reasoning";
|
|
252
|
+
readonly reasoningText?: string | undefined;
|
|
253
|
+
readonly redactedText?: string | undefined;
|
|
254
|
+
readonly signature?: string | undefined;
|
|
252
255
|
} | {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
data: string;
|
|
260
|
-
} | {
|
|
261
|
-
url: string;
|
|
262
|
-
type: "http";
|
|
263
|
-
} | undefined;
|
|
256
|
+
readonly name: string;
|
|
257
|
+
readonly pending?: boolean | undefined;
|
|
258
|
+
readonly _tag: "toolCall";
|
|
259
|
+
readonly toolCallId: string;
|
|
260
|
+
readonly input: string;
|
|
261
|
+
readonly providerExecuted: boolean;
|
|
264
262
|
} | {
|
|
265
|
-
|
|
266
|
-
pending?: boolean | undefined;
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
readonly name: string;
|
|
264
|
+
readonly pending?: boolean | undefined;
|
|
265
|
+
readonly _tag: "toolResult";
|
|
266
|
+
readonly toolCallId: string;
|
|
267
|
+
readonly providerExecuted: boolean;
|
|
268
|
+
readonly result?: string | undefined;
|
|
269
|
+
readonly error?: string | undefined;
|
|
269
270
|
} | {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
readonly pending?: boolean | undefined;
|
|
272
|
+
readonly mimeType?: string | undefined;
|
|
273
|
+
readonly _tag: "summary";
|
|
274
|
+
readonly message?: string | undefined;
|
|
275
|
+
readonly model?: string | undefined;
|
|
276
|
+
readonly usage?: {
|
|
277
|
+
readonly inputTokens?: number | undefined;
|
|
278
|
+
readonly outputTokens?: number | undefined;
|
|
279
|
+
readonly totalTokens?: number | undefined;
|
|
280
|
+
} | undefined;
|
|
281
|
+
readonly toolCalls?: number | undefined;
|
|
282
|
+
readonly errors?: number | undefined;
|
|
283
|
+
readonly duration?: number | undefined;
|
|
273
284
|
} | {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
285
|
+
readonly source?: {
|
|
286
|
+
readonly type: "base64";
|
|
287
|
+
readonly mediaType: string;
|
|
288
|
+
readonly data: string;
|
|
289
|
+
} | {
|
|
290
|
+
readonly type: "http";
|
|
291
|
+
readonly url: string;
|
|
292
|
+
} | undefined;
|
|
293
|
+
readonly id?: string | undefined;
|
|
294
|
+
readonly pending?: boolean | undefined;
|
|
295
|
+
readonly _tag: "image";
|
|
279
296
|
} | {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
297
|
+
readonly name?: string | undefined;
|
|
298
|
+
readonly pending?: boolean | undefined;
|
|
299
|
+
readonly _tag: "file";
|
|
300
|
+
readonly mediaType?: string | undefined;
|
|
301
|
+
readonly url: string;
|
|
283
302
|
} | {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
303
|
+
readonly pending?: boolean | undefined;
|
|
304
|
+
readonly _tag: "reference";
|
|
305
|
+
readonly reference: import("@dxos/echo/internal").Ref<any>;
|
|
287
306
|
} | {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
307
|
+
readonly pending?: boolean | undefined;
|
|
308
|
+
readonly text: string;
|
|
309
|
+
readonly _tag: "transcript";
|
|
310
|
+
readonly started: string;
|
|
291
311
|
} | {
|
|
292
|
-
|
|
293
|
-
_tag: "
|
|
294
|
-
|
|
312
|
+
readonly pending?: boolean | undefined;
|
|
313
|
+
readonly _tag: "status";
|
|
314
|
+
readonly statusText: string;
|
|
295
315
|
} | {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
message?: string | undefined;
|
|
300
|
-
model?: string | undefined;
|
|
301
|
-
usage?: {
|
|
302
|
-
readonly inputTokens?: number | undefined;
|
|
303
|
-
readonly outputTokens?: number | undefined;
|
|
304
|
-
readonly totalTokens?: number | undefined;
|
|
305
|
-
} | undefined;
|
|
306
|
-
toolCalls?: number | undefined;
|
|
307
|
-
errors?: number | undefined;
|
|
308
|
-
duration?: number | undefined;
|
|
316
|
+
readonly pending?: boolean | undefined;
|
|
317
|
+
readonly text: string;
|
|
318
|
+
readonly _tag: "suggestion";
|
|
309
319
|
} | {
|
|
310
|
-
|
|
311
|
-
_tag: "
|
|
312
|
-
|
|
313
|
-
disposition?: string | undefined;
|
|
314
|
-
mimeType?: string | undefined;
|
|
320
|
+
readonly pending?: boolean | undefined;
|
|
321
|
+
readonly _tag: "select";
|
|
322
|
+
readonly options: string[];
|
|
315
323
|
} | {
|
|
316
|
-
|
|
317
|
-
pending?: boolean | undefined;
|
|
324
|
+
readonly version: unknown;
|
|
325
|
+
readonly pending?: boolean | undefined;
|
|
326
|
+
readonly _tag: "anchor";
|
|
327
|
+
readonly objectId: string;
|
|
318
328
|
} | {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
toolCallId: string;
|
|
323
|
-
input: string;
|
|
324
|
-
providerExecuted: boolean;
|
|
329
|
+
readonly pending?: boolean | undefined;
|
|
330
|
+
readonly text: string;
|
|
331
|
+
readonly _tag: "proposal";
|
|
325
332
|
} | {
|
|
326
|
-
|
|
327
|
-
_tag: "
|
|
328
|
-
pending?: boolean | undefined;
|
|
329
|
-
toolCallId: string;
|
|
330
|
-
providerExecuted: boolean;
|
|
331
|
-
result?: string | undefined;
|
|
332
|
-
error?: string | undefined;
|
|
333
|
+
readonly pending?: boolean | undefined;
|
|
334
|
+
readonly _tag: "toolkit";
|
|
333
335
|
} | {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
readonly pending?: boolean | undefined;
|
|
337
|
+
readonly disposition?: string | undefined;
|
|
338
|
+
readonly _tag: "json";
|
|
339
|
+
readonly data: string;
|
|
338
340
|
})[];
|
|
339
|
-
properties?: {
|
|
340
|
-
[x: string]: any;
|
|
341
|
+
readonly properties?: {
|
|
342
|
+
readonly [x: string]: any;
|
|
341
343
|
} | undefined;
|
|
342
344
|
};
|
|
343
345
|
readonly timeElapsed: number;
|
|
344
|
-
}>;
|
|
346
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
345
347
|
//# sourceMappingURL=extraction-ner-function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAQA;;GAEG;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;yBACM,CAAC;yBAEvC,CAAD;4BACe,CAAC;8BAGoB,CAAC;iCAmCpC,CAjCA;sCACa,CAAA;iCACR,CAAA;qCAAuD,CAAC;wCAId,CAAA;iCACzB,CAAC;mCAEX,CAAC;kCACyD,CAAC;oCAEpE,CAAC;;qCAC+B,CAAA;;iCAKA,CAAC;mCACf,CAAC;8BAAgD,CAAC;+BACzB,CAAC;;kCAGZ,CAAC;;mCAEF,CAAC;;kCAQnC,CAHF;;qCAC2C,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