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