@dxos/assistant 0.8.4-main.c4373fc → 0.8.4-main.c85a9c8dae
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/lib/neutral/chunk-BE6SRJ4N.mjs +193 -0
- package/dist/lib/neutral/chunk-BE6SRJ4N.mjs.map +7 -0
- package/dist/lib/neutral/extraction/index.mjs +223 -0
- package/dist/lib/neutral/extraction/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +1328 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/testing/index.mjs +38 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/types/src/conversation/context.d.ts +109 -60
- 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 +282 -268
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction.d.ts +348 -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/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 +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 +25 -15
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +9 -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 +28 -0
- package/dist/types/src/types/artifact.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +41 -31
- package/src/conversation/context.test.ts +46 -0
- package/src/conversation/context.ts +223 -49
- package/src/conversation/conversation.test.ts +65 -0
- package/src/conversation/conversation.ts +179 -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 +46 -44
- package/src/execution-graph.ts +25 -16
- 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 +88 -37
- package/src/functions.conversations.json +1 -0
- package/src/functions.test.ts +74 -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 +1 -0
- package/src/session/observer.ts +6 -3
- package/src/session/session.conversations.json +1 -1
- package/src/session/session.test.ts +60 -18
- package/src/session/session.ts +99 -60
- package/src/session/toolkit.ts +21 -25
- 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 +85 -0
- package/src/{types.ts → types/artifact.ts} +43 -6
- package/src/types/index.ts +5 -0
- 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 +0 -869
- 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/browser/named-entity-recognition-QPYHML66.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/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 -870
- 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/dist/types/src/types.d.ts +0 -16
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/summarization/summarization.test.ts +0 -202
- /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,170 @@ 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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
id?: string | undefined;
|
|
84
|
-
_tag: "image";
|
|
85
|
-
pending?: boolean | undefined;
|
|
86
|
-
source?: {
|
|
87
|
-
mediaType: string;
|
|
88
|
-
type: "base64";
|
|
89
|
-
data: string;
|
|
90
|
-
} | {
|
|
91
|
-
url: string;
|
|
92
|
-
type: "http";
|
|
93
|
-
} | undefined;
|
|
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";
|
|
80
|
+
} | {
|
|
81
|
+
readonly pending?: boolean | undefined;
|
|
82
|
+
readonly _tag: "reasoning";
|
|
83
|
+
readonly reasoningText?: string | undefined;
|
|
84
|
+
readonly redactedText?: string | undefined;
|
|
85
|
+
readonly signature?: string | undefined;
|
|
94
86
|
} | {
|
|
95
|
-
|
|
96
|
-
pending?: boolean | undefined;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
_tag: "
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
} | {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
options: readonly string[];
|
|
117
|
-
} | {
|
|
118
|
-
_tag: "status";
|
|
119
|
-
pending?: boolean | undefined;
|
|
120
|
-
statusText: string;
|
|
121
|
-
} | {
|
|
122
|
-
text: string;
|
|
123
|
-
_tag: "suggestion";
|
|
124
|
-
pending?: boolean | undefined;
|
|
125
|
-
} | {
|
|
126
|
-
_tag: "summary";
|
|
127
|
-
pending?: boolean | undefined;
|
|
128
|
-
mimeType?: string | undefined;
|
|
129
|
-
message?: string | undefined;
|
|
130
|
-
model?: string | undefined;
|
|
131
|
-
usage?: {
|
|
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;
|
|
93
|
+
} | {
|
|
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
|
+
} | {
|
|
102
|
+
readonly pending?: boolean | undefined;
|
|
103
|
+
readonly mimeType?: string | undefined;
|
|
104
|
+
readonly _tag: "stats";
|
|
105
|
+
readonly message?: string | undefined;
|
|
106
|
+
readonly model?: string | undefined;
|
|
107
|
+
readonly usage?: {
|
|
132
108
|
readonly inputTokens?: number | undefined;
|
|
133
109
|
readonly outputTokens?: number | undefined;
|
|
134
110
|
readonly totalTokens?: number | undefined;
|
|
135
111
|
} | undefined;
|
|
136
|
-
toolCalls?: number | undefined;
|
|
137
|
-
errors?: number | undefined;
|
|
138
|
-
duration?: number | undefined;
|
|
139
|
-
} | {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
_tag: "
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
pending?: boolean | undefined;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
112
|
+
readonly toolCalls?: number | undefined;
|
|
113
|
+
readonly errors?: number | undefined;
|
|
114
|
+
readonly duration?: number | undefined;
|
|
115
|
+
} | {
|
|
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";
|
|
127
|
+
} | {
|
|
128
|
+
readonly name?: string | undefined;
|
|
129
|
+
readonly pending?: boolean | undefined;
|
|
130
|
+
readonly _tag: "file";
|
|
131
|
+
readonly mediaType?: string | undefined;
|
|
132
|
+
readonly url: string;
|
|
133
|
+
} | {
|
|
134
|
+
readonly pending?: boolean | undefined;
|
|
135
|
+
readonly _tag: "reference";
|
|
136
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
137
|
+
} | {
|
|
138
|
+
readonly pending?: boolean | undefined;
|
|
139
|
+
readonly text: string;
|
|
140
|
+
readonly _tag: "transcript";
|
|
141
|
+
readonly started: string;
|
|
142
|
+
} | {
|
|
143
|
+
readonly pending?: boolean | undefined;
|
|
144
|
+
readonly _tag: "status";
|
|
145
|
+
readonly statusText: string;
|
|
146
|
+
} | {
|
|
147
|
+
readonly pending?: boolean | undefined;
|
|
148
|
+
readonly text: string;
|
|
149
|
+
readonly _tag: "suggestion";
|
|
150
|
+
} | {
|
|
151
|
+
readonly pending?: boolean | undefined;
|
|
152
|
+
readonly _tag: "select";
|
|
153
|
+
readonly options: string[];
|
|
154
|
+
} | {
|
|
155
|
+
readonly version: unknown;
|
|
156
|
+
readonly pending?: boolean | undefined;
|
|
157
|
+
readonly _tag: "anchor";
|
|
158
|
+
readonly objectId: string;
|
|
159
|
+
} | {
|
|
160
|
+
readonly pending?: boolean | undefined;
|
|
161
|
+
readonly text: string;
|
|
162
|
+
readonly _tag: "proposal";
|
|
163
|
+
} | {
|
|
164
|
+
readonly pending?: boolean | undefined;
|
|
165
|
+
readonly _tag: "summary";
|
|
166
|
+
readonly content: string;
|
|
167
|
+
} | {
|
|
168
|
+
readonly pending?: boolean | undefined;
|
|
169
|
+
readonly _tag: "toolkit";
|
|
170
|
+
} | {
|
|
171
|
+
readonly pending?: boolean | undefined;
|
|
172
|
+
readonly disposition?: string | undefined;
|
|
173
|
+
readonly _tag: "json";
|
|
174
|
+
readonly data: string;
|
|
168
175
|
})[];
|
|
169
|
-
properties?: {
|
|
170
|
-
[x: string]: any;
|
|
176
|
+
readonly properties?: {
|
|
177
|
+
readonly [x: string]: any;
|
|
171
178
|
} | undefined;
|
|
172
179
|
};
|
|
173
|
-
readonly objects?: readonly import("@dxos/echo/internal").
|
|
180
|
+
readonly objects?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown)[] | undefined;
|
|
174
181
|
}, {
|
|
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
|
-
|
|
182
|
+
readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
183
|
+
readonly id: string;
|
|
184
|
+
readonly parentMessage?: string | undefined;
|
|
185
|
+
readonly created: string;
|
|
186
|
+
readonly sender: {
|
|
187
|
+
readonly name?: string | undefined;
|
|
188
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
189
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
190
|
+
readonly image?: string | undefined;
|
|
191
|
+
readonly fullName?: string | undefined;
|
|
192
|
+
readonly preferredName?: string | undefined;
|
|
193
|
+
readonly nickname?: string | undefined;
|
|
194
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
195
|
+
readonly description?: string | undefined;
|
|
196
|
+
readonly name?: string | undefined;
|
|
197
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
198
|
+
readonly image?: string | undefined;
|
|
199
|
+
readonly website?: string | undefined;
|
|
200
|
+
} & {
|
|
201
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
192
202
|
}> | undefined;
|
|
193
|
-
jobTitle?: string | undefined;
|
|
194
|
-
department?: string | undefined;
|
|
195
|
-
notes?: string | undefined;
|
|
196
|
-
emails?: {
|
|
197
|
-
readonly label?: string | undefined;
|
|
203
|
+
readonly jobTitle?: string | undefined;
|
|
204
|
+
readonly department?: string | undefined;
|
|
205
|
+
readonly notes?: string | undefined;
|
|
206
|
+
readonly emails?: readonly {
|
|
198
207
|
readonly value: string;
|
|
199
|
-
}[] | undefined;
|
|
200
|
-
identities?: {
|
|
201
208
|
readonly label?: string | undefined;
|
|
209
|
+
}[] | undefined;
|
|
210
|
+
readonly identities?: readonly {
|
|
202
211
|
readonly value: string;
|
|
212
|
+
readonly label?: string | undefined;
|
|
203
213
|
}[] | undefined;
|
|
204
|
-
phoneNumbers?: {
|
|
214
|
+
readonly phoneNumbers?: readonly {
|
|
215
|
+
readonly value: string;
|
|
205
216
|
readonly label?: string | undefined;
|
|
217
|
+
}[] | undefined;
|
|
218
|
+
readonly fields?: readonly {
|
|
206
219
|
readonly value: string;
|
|
220
|
+
readonly label: string;
|
|
221
|
+
readonly category?: string | undefined;
|
|
207
222
|
}[] | undefined;
|
|
208
|
-
addresses?: {
|
|
209
|
-
readonly label?: string | undefined;
|
|
223
|
+
readonly addresses?: readonly {
|
|
210
224
|
readonly value: {
|
|
211
225
|
readonly street?: string | undefined;
|
|
212
226
|
readonly extended?: string | undefined;
|
|
@@ -216,126 +230,126 @@ export declare const extractionNerFunction: import("@dxos/functions").FunctionDe
|
|
|
216
230
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
217
231
|
readonly country?: string | undefined;
|
|
218
232
|
};
|
|
219
|
-
}[] | undefined;
|
|
220
|
-
urls?: {
|
|
221
233
|
readonly label?: string | undefined;
|
|
222
|
-
readonly value: string;
|
|
223
234
|
}[] | undefined;
|
|
224
|
-
|
|
225
|
-
fields?: {
|
|
226
|
-
readonly label: string;
|
|
235
|
+
readonly urls?: readonly {
|
|
227
236
|
readonly value: string;
|
|
228
|
-
readonly
|
|
237
|
+
readonly label?: string | undefined;
|
|
229
238
|
}[] | undefined;
|
|
239
|
+
readonly birthday?: string | undefined;
|
|
240
|
+
} & {
|
|
241
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
230
242
|
}> | undefined;
|
|
231
|
-
identityDid?: string | undefined;
|
|
232
|
-
identityKey?: string | undefined;
|
|
233
|
-
email?: string | undefined;
|
|
234
|
-
name?: string | undefined;
|
|
235
|
-
role?: "user" | "assistant" | "tool" | undefined;
|
|
243
|
+
readonly identityDid?: string | undefined;
|
|
244
|
+
readonly identityKey?: string | undefined;
|
|
245
|
+
readonly email?: string | undefined;
|
|
236
246
|
};
|
|
237
|
-
blocks: ({
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
id?: string | undefined;
|
|
250
|
-
_tag: "image";
|
|
251
|
-
pending?: boolean | undefined;
|
|
252
|
-
source?: {
|
|
253
|
-
mediaType: string;
|
|
254
|
-
type: "base64";
|
|
255
|
-
data: string;
|
|
256
|
-
} | {
|
|
257
|
-
url: string;
|
|
258
|
-
type: "http";
|
|
259
|
-
} | undefined;
|
|
247
|
+
readonly blocks: readonly ({
|
|
248
|
+
readonly pending?: boolean | undefined;
|
|
249
|
+
readonly text: string;
|
|
250
|
+
readonly mimeType?: string | undefined;
|
|
251
|
+
readonly disposition?: string | undefined;
|
|
252
|
+
readonly _tag: "text";
|
|
253
|
+
} | {
|
|
254
|
+
readonly pending?: boolean | undefined;
|
|
255
|
+
readonly _tag: "reasoning";
|
|
256
|
+
readonly reasoningText?: string | undefined;
|
|
257
|
+
readonly redactedText?: string | undefined;
|
|
258
|
+
readonly signature?: string | undefined;
|
|
260
259
|
} | {
|
|
261
|
-
|
|
262
|
-
pending?: boolean | undefined;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
_tag: "
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
} | {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
options: readonly string[];
|
|
283
|
-
} | {
|
|
284
|
-
_tag: "status";
|
|
285
|
-
pending?: boolean | undefined;
|
|
286
|
-
statusText: string;
|
|
287
|
-
} | {
|
|
288
|
-
text: string;
|
|
289
|
-
_tag: "suggestion";
|
|
290
|
-
pending?: boolean | undefined;
|
|
291
|
-
} | {
|
|
292
|
-
_tag: "summary";
|
|
293
|
-
pending?: boolean | undefined;
|
|
294
|
-
mimeType?: string | undefined;
|
|
295
|
-
message?: string | undefined;
|
|
296
|
-
model?: string | undefined;
|
|
297
|
-
usage?: {
|
|
260
|
+
readonly name: string;
|
|
261
|
+
readonly pending?: boolean | undefined;
|
|
262
|
+
readonly _tag: "toolCall";
|
|
263
|
+
readonly toolCallId: string;
|
|
264
|
+
readonly input: string;
|
|
265
|
+
readonly providerExecuted: boolean;
|
|
266
|
+
} | {
|
|
267
|
+
readonly name: string;
|
|
268
|
+
readonly pending?: boolean | undefined;
|
|
269
|
+
readonly _tag: "toolResult";
|
|
270
|
+
readonly toolCallId: string;
|
|
271
|
+
readonly providerExecuted: boolean;
|
|
272
|
+
readonly result?: string | undefined;
|
|
273
|
+
readonly error?: string | undefined;
|
|
274
|
+
} | {
|
|
275
|
+
readonly pending?: boolean | undefined;
|
|
276
|
+
readonly mimeType?: string | undefined;
|
|
277
|
+
readonly _tag: "stats";
|
|
278
|
+
readonly message?: string | undefined;
|
|
279
|
+
readonly model?: string | undefined;
|
|
280
|
+
readonly usage?: {
|
|
298
281
|
readonly inputTokens?: number | undefined;
|
|
299
282
|
readonly outputTokens?: number | undefined;
|
|
300
283
|
readonly totalTokens?: number | undefined;
|
|
301
284
|
} | undefined;
|
|
302
|
-
toolCalls?: number | undefined;
|
|
303
|
-
errors?: number | undefined;
|
|
304
|
-
duration?: number | undefined;
|
|
305
|
-
} | {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
_tag: "
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
pending?: boolean | undefined;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
285
|
+
readonly toolCalls?: number | undefined;
|
|
286
|
+
readonly errors?: number | undefined;
|
|
287
|
+
readonly duration?: number | undefined;
|
|
288
|
+
} | {
|
|
289
|
+
readonly source?: {
|
|
290
|
+
readonly type: "base64";
|
|
291
|
+
readonly mediaType: string;
|
|
292
|
+
readonly data: string;
|
|
293
|
+
} | {
|
|
294
|
+
readonly type: "http";
|
|
295
|
+
readonly url: string;
|
|
296
|
+
} | undefined;
|
|
297
|
+
readonly id?: string | undefined;
|
|
298
|
+
readonly pending?: boolean | undefined;
|
|
299
|
+
readonly _tag: "image";
|
|
300
|
+
} | {
|
|
301
|
+
readonly name?: string | undefined;
|
|
302
|
+
readonly pending?: boolean | undefined;
|
|
303
|
+
readonly _tag: "file";
|
|
304
|
+
readonly mediaType?: string | undefined;
|
|
305
|
+
readonly url: string;
|
|
306
|
+
} | {
|
|
307
|
+
readonly pending?: boolean | undefined;
|
|
308
|
+
readonly _tag: "reference";
|
|
309
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
310
|
+
} | {
|
|
311
|
+
readonly pending?: boolean | undefined;
|
|
312
|
+
readonly text: string;
|
|
313
|
+
readonly _tag: "transcript";
|
|
314
|
+
readonly started: string;
|
|
315
|
+
} | {
|
|
316
|
+
readonly pending?: boolean | undefined;
|
|
317
|
+
readonly _tag: "status";
|
|
318
|
+
readonly statusText: string;
|
|
319
|
+
} | {
|
|
320
|
+
readonly pending?: boolean | undefined;
|
|
321
|
+
readonly text: string;
|
|
322
|
+
readonly _tag: "suggestion";
|
|
323
|
+
} | {
|
|
324
|
+
readonly pending?: boolean | undefined;
|
|
325
|
+
readonly _tag: "select";
|
|
326
|
+
readonly options: string[];
|
|
327
|
+
} | {
|
|
328
|
+
readonly version: unknown;
|
|
329
|
+
readonly pending?: boolean | undefined;
|
|
330
|
+
readonly _tag: "anchor";
|
|
331
|
+
readonly objectId: string;
|
|
332
|
+
} | {
|
|
333
|
+
readonly pending?: boolean | undefined;
|
|
334
|
+
readonly text: string;
|
|
335
|
+
readonly _tag: "proposal";
|
|
336
|
+
} | {
|
|
337
|
+
readonly pending?: boolean | undefined;
|
|
338
|
+
readonly _tag: "summary";
|
|
339
|
+
readonly content: string;
|
|
340
|
+
} | {
|
|
341
|
+
readonly pending?: boolean | undefined;
|
|
342
|
+
readonly _tag: "toolkit";
|
|
343
|
+
} | {
|
|
344
|
+
readonly pending?: boolean | undefined;
|
|
345
|
+
readonly disposition?: string | undefined;
|
|
346
|
+
readonly _tag: "json";
|
|
347
|
+
readonly data: string;
|
|
334
348
|
})[];
|
|
335
|
-
properties?: {
|
|
336
|
-
[x: string]: any;
|
|
349
|
+
readonly properties?: {
|
|
350
|
+
readonly [x: string]: any;
|
|
337
351
|
} | undefined;
|
|
338
352
|
};
|
|
339
353
|
readonly timeElapsed: number;
|
|
340
|
-
}>;
|
|
354
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
341
355
|
//# 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":"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"}
|