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