@indexnetwork/protocol 3.12.0-rc.287.1 → 4.0.0-rc.289.1
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/chat/chat.prompt.js +5 -5
- package/dist/chat/chat.prompt.js.map +1 -1
- package/dist/chat/tests/chat.graph.mocks.d.ts +1 -7
- package/dist/chat/tests/chat.graph.mocks.d.ts.map +1 -1
- package/dist/chat/tests/chat.graph.mocks.js +1 -2
- package/dist/chat/tests/chat.graph.mocks.js.map +1 -1
- package/dist/{profile/profile.enricher.d.ts → enrichment/enrichment.enricher.d.ts} +1 -1
- package/dist/enrichment/enrichment.enricher.d.ts.map +1 -0
- package/dist/{profile/profile.enricher.js → enrichment/enrichment.enricher.js} +1 -1
- package/dist/enrichment/enrichment.enricher.js.map +1 -0
- package/dist/{profile/profile.generator.d.ts → enrichment/enrichment.generator.d.ts} +3 -3
- package/dist/enrichment/enrichment.generator.d.ts.map +1 -0
- package/dist/{profile/profile.generator.js → enrichment/enrichment.generator.js} +6 -6
- package/dist/enrichment/enrichment.generator.js.map +1 -0
- package/dist/{profile/profile.graph.d.ts → enrichment/enrichment.graph.d.ts} +124 -191
- package/dist/enrichment/enrichment.graph.d.ts.map +1 -0
- package/dist/{profile/profile.graph.js → enrichment/enrichment.graph.js} +33 -241
- package/dist/enrichment/enrichment.graph.js.map +1 -0
- package/dist/{profile/profile.state.d.ts → enrichment/enrichment.state.d.ts} +31 -19
- package/dist/enrichment/enrichment.state.d.ts.map +1 -0
- package/dist/{profile/profile.state.js → enrichment/enrichment.state.js} +5 -13
- package/dist/enrichment/enrichment.state.js.map +1 -0
- package/dist/enrichment/enrichment.tools.d.ts +3 -0
- package/dist/enrichment/enrichment.tools.d.ts.map +1 -0
- package/dist/{profile/profile.tools.js → enrichment/enrichment.tools.js} +74 -87
- package/dist/enrichment/enrichment.tools.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/intent/intent.tools.js +3 -3
- package/dist/intent/intent.tools.js.map +1 -1
- package/dist/opportunity/opportunity.graph.d.ts +1 -7
- package/dist/opportunity/opportunity.graph.d.ts.map +1 -1
- package/dist/opportunity/opportunity.graph.js +5 -22
- package/dist/opportunity/opportunity.graph.js.map +1 -1
- package/dist/opportunity/opportunity.presenter.d.ts.map +1 -1
- package/dist/opportunity/opportunity.presenter.js +3 -11
- package/dist/opportunity/opportunity.presenter.js.map +1 -1
- package/dist/opportunity/opportunity.state.d.ts +2 -8
- package/dist/opportunity/opportunity.state.d.ts.map +1 -1
- package/dist/opportunity/opportunity.state.js.map +1 -1
- package/dist/questioner/questioner.presets.js +1 -1
- package/dist/questioner/questioner.presets.js.map +1 -1
- package/dist/questioner/questioner.tools.d.ts +1 -1
- package/dist/questioner/questioner.tools.js +2 -2
- package/dist/questioner/questioner.tools.js.map +1 -1
- package/dist/shared/agent/tool.factory.js +6 -6
- package/dist/shared/agent/tool.factory.js.map +1 -1
- package/dist/shared/agent/tool.helpers.d.ts +8 -8
- package/dist/shared/agent/tool.helpers.d.ts.map +1 -1
- package/dist/shared/agent/tool.helpers.js.map +1 -1
- package/dist/shared/agent/tool.registry.js +2 -2
- package/dist/shared/agent/tool.registry.js.map +1 -1
- package/dist/shared/hyde/hyde.graph.d.ts +6 -6
- package/dist/shared/hyde/hyde.state.d.ts +2 -2
- package/dist/shared/hyde/hyde.state.js.map +1 -1
- package/dist/shared/interfaces/database.interface.d.ts +14 -14
- package/dist/shared/interfaces/database.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/database.interface.js.map +1 -1
- package/dist/shared/interfaces/{profile-run.interface.d.ts → enrichment-run.interface.d.ts} +21 -21
- package/dist/shared/interfaces/enrichment-run.interface.d.ts.map +1 -0
- package/dist/shared/interfaces/enrichment-run.interface.js +2 -0
- package/dist/shared/interfaces/enrichment-run.interface.js.map +1 -0
- package/dist/shared/schemas/discovery-question.schema.d.ts +2 -2
- package/dist/shared/schemas/identity.schema.d.ts +45 -0
- package/dist/shared/schemas/identity.schema.d.ts.map +1 -0
- package/dist/shared/schemas/identity.schema.js +20 -0
- package/dist/shared/schemas/identity.schema.js.map +1 -0
- package/dist/shared/schemas/question.schema.d.ts +4 -4
- package/dist/shared/schemas/question.schema.d.ts.map +1 -1
- package/dist/shared/schemas/question.schema.js +1 -1
- package/dist/shared/schemas/question.schema.js.map +1 -1
- package/package.json +1 -1
- package/dist/profile/profile.enricher.d.ts.map +0 -1
- package/dist/profile/profile.enricher.js.map +0 -1
- package/dist/profile/profile.generator.d.ts.map +0 -1
- package/dist/profile/profile.generator.js.map +0 -1
- package/dist/profile/profile.graph.d.ts.map +0 -1
- package/dist/profile/profile.graph.js.map +0 -1
- package/dist/profile/profile.state.d.ts.map +0 -1
- package/dist/profile/profile.state.js.map +0 -1
- package/dist/profile/profile.tools.d.ts +0 -3
- package/dist/profile/profile.tools.d.ts.map +0 -1
- package/dist/profile/profile.tools.js.map +0 -1
- package/dist/shared/interfaces/profile-run.interface.d.ts.map +0 -1
- package/dist/shared/interfaces/profile-run.interface.js +0 -2
- package/dist/shared/interfaces/profile-run.interface.js.map +0 -1
- package/dist/shared/schemas/profile.schema.d.ts +0 -100
- package/dist/shared/schemas/profile.schema.d.ts.map +0 -1
- package/dist/shared/schemas/profile.schema.js +0 -26
- package/dist/shared/schemas/profile.schema.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ProfileGraphDatabase, PremiseProvenance } from "../shared/interfaces/database.interface.js";
|
|
1
|
+
import { EnrichmentGraphDatabase, PremiseProvenance } from "../shared/interfaces/database.interface.js";
|
|
3
2
|
import { Scraper } from "../shared/interfaces/scraper.interface.js";
|
|
4
3
|
import type { ProfileEnricher } from "../shared/interfaces/enrichment.interface.js";
|
|
5
4
|
import type { QuestionerEnqueueFn } from "../questioner/questioner.types.js";
|
|
@@ -48,22 +47,29 @@ export interface CompiledPremiseGraph {
|
|
|
48
47
|
* - Read/Write separation (query vs write)
|
|
49
48
|
* - Conditional generation (skip generation if profile already exists)
|
|
50
49
|
*/
|
|
51
|
-
export declare class
|
|
50
|
+
export declare class EnrichmentGraphFactory {
|
|
52
51
|
private database;
|
|
53
52
|
private scraper;
|
|
54
53
|
private enricher?;
|
|
55
54
|
private questionerEnqueue?;
|
|
56
55
|
private premiseGraph?;
|
|
57
|
-
constructor(database:
|
|
56
|
+
constructor(database: EnrichmentGraphDatabase, scraper: Scraper, enricher?: ProfileEnricher | undefined, questionerEnqueue?: QuestionerEnqueueFn | undefined, premiseGraph?: CompiledPremiseGraph | undefined);
|
|
58
57
|
createGraph(): import("@langchain/langgraph").CompiledStateGraph<{
|
|
59
58
|
userId: string;
|
|
60
|
-
operationMode: "query" | "write" | "generate"
|
|
59
|
+
operationMode: "query" | "write" | "generate";
|
|
61
60
|
forceUpdate: boolean;
|
|
62
|
-
isAggregate: boolean;
|
|
63
61
|
objective: string | undefined;
|
|
64
62
|
input: string | undefined;
|
|
65
63
|
activeSocialIds: string[];
|
|
66
|
-
profile:
|
|
64
|
+
profile: {
|
|
65
|
+
identity: {
|
|
66
|
+
name: string;
|
|
67
|
+
bio: string;
|
|
68
|
+
location: string;
|
|
69
|
+
};
|
|
70
|
+
context: string;
|
|
71
|
+
userId?: string | undefined;
|
|
72
|
+
} | undefined;
|
|
67
73
|
needsProfileGeneration: boolean;
|
|
68
74
|
needsUserInfo: boolean;
|
|
69
75
|
missingUserInfo: string[];
|
|
@@ -82,20 +88,33 @@ export declare class ProfileGraphFactory {
|
|
|
82
88
|
name: string;
|
|
83
89
|
bio: string;
|
|
84
90
|
location: string;
|
|
85
|
-
skills: string[];
|
|
86
|
-
interests: string[];
|
|
87
91
|
};
|
|
88
92
|
message?: string;
|
|
89
93
|
} | undefined;
|
|
90
94
|
}, {
|
|
91
95
|
userId?: string | undefined;
|
|
92
|
-
operationMode?: "query" | "write" | "generate" |
|
|
96
|
+
operationMode?: "query" | "write" | "generate" | import("@langchain/langgraph").OverwriteValue<"query" | "write" | "generate"> | undefined;
|
|
93
97
|
forceUpdate?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
94
|
-
isAggregate?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
95
98
|
objective?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
96
99
|
input?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
97
100
|
activeSocialIds?: string[] | import("@langchain/langgraph").OverwriteValue<string[]> | undefined;
|
|
98
|
-
profile?:
|
|
101
|
+
profile?: {
|
|
102
|
+
identity: {
|
|
103
|
+
name: string;
|
|
104
|
+
bio: string;
|
|
105
|
+
location: string;
|
|
106
|
+
};
|
|
107
|
+
context: string;
|
|
108
|
+
userId?: string | undefined;
|
|
109
|
+
} | import("@langchain/langgraph").OverwriteValue<{
|
|
110
|
+
identity: {
|
|
111
|
+
name: string;
|
|
112
|
+
bio: string;
|
|
113
|
+
location: string;
|
|
114
|
+
};
|
|
115
|
+
context: string;
|
|
116
|
+
userId?: string | undefined;
|
|
117
|
+
} | undefined> | undefined;
|
|
99
118
|
needsProfileGeneration?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
100
119
|
needsUserInfo?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
101
120
|
missingUserInfo?: string[] | import("@langchain/langgraph").OverwriteValue<string[]> | undefined;
|
|
@@ -119,8 +138,6 @@ export declare class ProfileGraphFactory {
|
|
|
119
138
|
name: string;
|
|
120
139
|
bio: string;
|
|
121
140
|
location: string;
|
|
122
|
-
skills: string[];
|
|
123
|
-
interests: string[];
|
|
124
141
|
};
|
|
125
142
|
message?: string;
|
|
126
143
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
@@ -130,24 +147,45 @@ export declare class ProfileGraphFactory {
|
|
|
130
147
|
name: string;
|
|
131
148
|
bio: string;
|
|
132
149
|
location: string;
|
|
133
|
-
skills: string[];
|
|
134
|
-
interests: string[];
|
|
135
150
|
};
|
|
136
151
|
message?: string;
|
|
137
152
|
} | undefined> | undefined;
|
|
138
|
-
}, "__start__" | "check_state" | "scrape" | "decompose_premises" | "auto_generate"
|
|
153
|
+
}, "__start__" | "check_state" | "scrape" | "decompose_premises" | "auto_generate", {
|
|
139
154
|
userId: {
|
|
140
155
|
(annotation: import("@langchain/langgraph").SingleReducer<string, string>): import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
141
156
|
(): import("@langchain/langgraph").LastValue<string>;
|
|
142
157
|
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
143
158
|
};
|
|
144
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "write" | "generate"
|
|
159
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "write" | "generate", "query" | "write" | "generate" | import("@langchain/langgraph").OverwriteValue<"query" | "write" | "generate">, unknown>;
|
|
145
160
|
forceUpdate: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
146
|
-
isAggregate: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
147
161
|
objective: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
148
162
|
input: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
149
163
|
activeSocialIds: import("@langchain/langgraph").BaseChannel<string[], string[] | import("@langchain/langgraph").OverwriteValue<string[]>, unknown>;
|
|
150
|
-
profile: import("@langchain/langgraph").BaseChannel<
|
|
164
|
+
profile: import("@langchain/langgraph").BaseChannel<{
|
|
165
|
+
identity: {
|
|
166
|
+
name: string;
|
|
167
|
+
bio: string;
|
|
168
|
+
location: string;
|
|
169
|
+
};
|
|
170
|
+
context: string;
|
|
171
|
+
userId?: string | undefined;
|
|
172
|
+
} | undefined, {
|
|
173
|
+
identity: {
|
|
174
|
+
name: string;
|
|
175
|
+
bio: string;
|
|
176
|
+
location: string;
|
|
177
|
+
};
|
|
178
|
+
context: string;
|
|
179
|
+
userId?: string | undefined;
|
|
180
|
+
} | import("@langchain/langgraph").OverwriteValue<{
|
|
181
|
+
identity: {
|
|
182
|
+
name: string;
|
|
183
|
+
bio: string;
|
|
184
|
+
location: string;
|
|
185
|
+
};
|
|
186
|
+
context: string;
|
|
187
|
+
userId?: string | undefined;
|
|
188
|
+
} | undefined> | undefined, unknown>;
|
|
151
189
|
needsProfileGeneration: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
152
190
|
needsUserInfo: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
153
191
|
missingUserInfo: import("@langchain/langgraph").BaseChannel<string[], string[] | import("@langchain/langgraph").OverwriteValue<string[]>, unknown>;
|
|
@@ -176,8 +214,6 @@ export declare class ProfileGraphFactory {
|
|
|
176
214
|
name: string;
|
|
177
215
|
bio: string;
|
|
178
216
|
location: string;
|
|
179
|
-
skills: string[];
|
|
180
|
-
interests: string[];
|
|
181
217
|
};
|
|
182
218
|
message?: string;
|
|
183
219
|
} | undefined, {
|
|
@@ -187,8 +223,6 @@ export declare class ProfileGraphFactory {
|
|
|
187
223
|
name: string;
|
|
188
224
|
bio: string;
|
|
189
225
|
location: string;
|
|
190
|
-
skills: string[];
|
|
191
|
-
interests: string[];
|
|
192
226
|
};
|
|
193
227
|
message?: string;
|
|
194
228
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
@@ -198,8 +232,6 @@ export declare class ProfileGraphFactory {
|
|
|
198
232
|
name: string;
|
|
199
233
|
bio: string;
|
|
200
234
|
location: string;
|
|
201
|
-
skills: string[];
|
|
202
|
-
interests: string[];
|
|
203
235
|
};
|
|
204
236
|
message?: string;
|
|
205
237
|
} | undefined> | undefined, unknown>;
|
|
@@ -209,13 +241,36 @@ export declare class ProfileGraphFactory {
|
|
|
209
241
|
(): import("@langchain/langgraph").LastValue<string>;
|
|
210
242
|
Root: <S extends import("@langchain/langgraph").StateDefinition>(sd: S) => import("@langchain/langgraph").AnnotationRoot<S>;
|
|
211
243
|
};
|
|
212
|
-
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "write" | "generate"
|
|
244
|
+
operationMode: import("@langchain/langgraph").BaseChannel<"query" | "write" | "generate", "query" | "write" | "generate" | import("@langchain/langgraph").OverwriteValue<"query" | "write" | "generate">, unknown>;
|
|
213
245
|
forceUpdate: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
214
|
-
isAggregate: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
215
246
|
objective: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
216
247
|
input: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
217
248
|
activeSocialIds: import("@langchain/langgraph").BaseChannel<string[], string[] | import("@langchain/langgraph").OverwriteValue<string[]>, unknown>;
|
|
218
|
-
profile: import("@langchain/langgraph").BaseChannel<
|
|
249
|
+
profile: import("@langchain/langgraph").BaseChannel<{
|
|
250
|
+
identity: {
|
|
251
|
+
name: string;
|
|
252
|
+
bio: string;
|
|
253
|
+
location: string;
|
|
254
|
+
};
|
|
255
|
+
context: string;
|
|
256
|
+
userId?: string | undefined;
|
|
257
|
+
} | undefined, {
|
|
258
|
+
identity: {
|
|
259
|
+
name: string;
|
|
260
|
+
bio: string;
|
|
261
|
+
location: string;
|
|
262
|
+
};
|
|
263
|
+
context: string;
|
|
264
|
+
userId?: string | undefined;
|
|
265
|
+
} | import("@langchain/langgraph").OverwriteValue<{
|
|
266
|
+
identity: {
|
|
267
|
+
name: string;
|
|
268
|
+
bio: string;
|
|
269
|
+
location: string;
|
|
270
|
+
};
|
|
271
|
+
context: string;
|
|
272
|
+
userId?: string | undefined;
|
|
273
|
+
} | undefined> | undefined, unknown>;
|
|
219
274
|
needsProfileGeneration: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
220
275
|
needsUserInfo: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
221
276
|
missingUserInfo: import("@langchain/langgraph").BaseChannel<string[], string[] | import("@langchain/langgraph").OverwriteValue<string[]>, unknown>;
|
|
@@ -244,8 +299,6 @@ export declare class ProfileGraphFactory {
|
|
|
244
299
|
name: string;
|
|
245
300
|
bio: string;
|
|
246
301
|
location: string;
|
|
247
|
-
skills: string[];
|
|
248
|
-
interests: string[];
|
|
249
302
|
};
|
|
250
303
|
message?: string;
|
|
251
304
|
} | undefined, {
|
|
@@ -255,8 +308,6 @@ export declare class ProfileGraphFactory {
|
|
|
255
308
|
name: string;
|
|
256
309
|
bio: string;
|
|
257
310
|
location: string;
|
|
258
|
-
skills: string[];
|
|
259
|
-
interests: string[];
|
|
260
311
|
};
|
|
261
312
|
message?: string;
|
|
262
313
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
@@ -266,81 +317,52 @@ export declare class ProfileGraphFactory {
|
|
|
266
317
|
name: string;
|
|
267
318
|
bio: string;
|
|
268
319
|
location: string;
|
|
269
|
-
skills: string[];
|
|
270
|
-
interests: string[];
|
|
271
320
|
};
|
|
272
321
|
message?: string;
|
|
273
322
|
} | undefined> | undefined, unknown>;
|
|
274
323
|
}, import("@langchain/langgraph").StateDefinition, {
|
|
275
|
-
check_state:
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
input: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
286
|
-
activeSocialIds: import("@langchain/langgraph").BaseChannel<string[], string[] | import("@langchain/langgraph").OverwriteValue<string[]>, unknown>;
|
|
287
|
-
profile: import("@langchain/langgraph").BaseChannel<ProfileDocument | undefined, ProfileDocument | import("@langchain/langgraph").OverwriteValue<ProfileDocument | undefined> | undefined, unknown>;
|
|
288
|
-
needsProfileGeneration: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
289
|
-
needsUserInfo: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
290
|
-
missingUserInfo: import("@langchain/langgraph").BaseChannel<string[], string[] | import("@langchain/langgraph").OverwriteValue<string[]>, unknown>;
|
|
291
|
-
error: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
292
|
-
operationsPerformed: import("@langchain/langgraph").BaseChannel<{
|
|
293
|
-
scraped?: boolean;
|
|
294
|
-
decomposedPremises?: boolean;
|
|
295
|
-
generatedProfile?: boolean;
|
|
296
|
-
savedProfile?: boolean;
|
|
297
|
-
}, {
|
|
298
|
-
scraped?: boolean;
|
|
299
|
-
decomposedPremises?: boolean;
|
|
300
|
-
generatedProfile?: boolean;
|
|
301
|
-
savedProfile?: boolean;
|
|
302
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
303
|
-
scraped?: boolean;
|
|
304
|
-
decomposedPremises?: boolean;
|
|
305
|
-
generatedProfile?: boolean;
|
|
306
|
-
savedProfile?: boolean;
|
|
307
|
-
}>, unknown>;
|
|
308
|
-
agentTimings: import("@langchain/langgraph").BaseChannel<DebugMetaAgent[], DebugMetaAgent[] | import("@langchain/langgraph").OverwriteValue<DebugMetaAgent[]>, unknown>;
|
|
309
|
-
readResult: import("@langchain/langgraph").BaseChannel<{
|
|
310
|
-
hasProfile: boolean;
|
|
311
|
-
profile?: {
|
|
312
|
-
id?: string;
|
|
313
|
-
name: string;
|
|
314
|
-
bio: string;
|
|
315
|
-
location: string;
|
|
316
|
-
skills: string[];
|
|
317
|
-
interests: string[];
|
|
318
|
-
};
|
|
319
|
-
message?: string;
|
|
320
|
-
} | undefined, {
|
|
324
|
+
check_state: {
|
|
325
|
+
error: string;
|
|
326
|
+
profile?: undefined;
|
|
327
|
+
readResult?: undefined;
|
|
328
|
+
needsProfileGeneration?: undefined;
|
|
329
|
+
needsUserInfo?: undefined;
|
|
330
|
+
missingUserInfo?: undefined;
|
|
331
|
+
} | {
|
|
332
|
+
profile: any;
|
|
333
|
+
readResult: {
|
|
321
334
|
hasProfile: boolean;
|
|
322
|
-
profile
|
|
323
|
-
id
|
|
324
|
-
name:
|
|
325
|
-
bio:
|
|
326
|
-
location:
|
|
327
|
-
skills: string[];
|
|
328
|
-
interests: string[];
|
|
335
|
+
profile: {
|
|
336
|
+
id: string | undefined;
|
|
337
|
+
name: any;
|
|
338
|
+
bio: any;
|
|
339
|
+
location: any;
|
|
329
340
|
};
|
|
330
|
-
message?:
|
|
331
|
-
} |
|
|
341
|
+
message?: undefined;
|
|
342
|
+
} | {
|
|
332
343
|
hasProfile: boolean;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
+
message: string;
|
|
345
|
+
profile?: undefined;
|
|
346
|
+
};
|
|
347
|
+
error?: undefined;
|
|
348
|
+
needsProfileGeneration?: undefined;
|
|
349
|
+
needsUserInfo?: undefined;
|
|
350
|
+
missingUserInfo?: undefined;
|
|
351
|
+
} | {
|
|
352
|
+
profile: any;
|
|
353
|
+
needsProfileGeneration: boolean;
|
|
354
|
+
needsUserInfo: boolean;
|
|
355
|
+
missingUserInfo: string[];
|
|
356
|
+
error?: undefined;
|
|
357
|
+
readResult?: undefined;
|
|
358
|
+
} | {
|
|
359
|
+
profile: undefined;
|
|
360
|
+
error: string;
|
|
361
|
+
readResult?: undefined;
|
|
362
|
+
needsProfileGeneration?: undefined;
|
|
363
|
+
needsUserInfo?: undefined;
|
|
364
|
+
missingUserInfo?: undefined;
|
|
365
|
+
};
|
|
344
366
|
scrape: {
|
|
345
367
|
error?: undefined;
|
|
346
368
|
objective?: undefined;
|
|
@@ -364,41 +386,22 @@ export declare class ProfileGraphFactory {
|
|
|
364
386
|
};
|
|
365
387
|
decompose_premises: {
|
|
366
388
|
error: string;
|
|
367
|
-
needsProfileGeneration?: undefined;
|
|
368
|
-
forceUpdate?: undefined;
|
|
369
|
-
operationMode?: undefined;
|
|
370
389
|
agentTimings?: undefined;
|
|
371
390
|
operationsPerformed?: undefined;
|
|
372
391
|
} | {
|
|
373
|
-
needsProfileGeneration: boolean;
|
|
374
|
-
forceUpdate: boolean;
|
|
375
392
|
error?: undefined;
|
|
376
|
-
operationMode?: undefined;
|
|
377
393
|
agentTimings?: undefined;
|
|
378
394
|
operationsPerformed?: undefined;
|
|
379
395
|
} | {
|
|
380
|
-
operationMode: "aggregate";
|
|
381
396
|
agentTimings: DebugMetaAgent[];
|
|
382
397
|
error?: undefined;
|
|
383
|
-
needsProfileGeneration?: undefined;
|
|
384
|
-
forceUpdate?: undefined;
|
|
385
398
|
operationsPerformed?: undefined;
|
|
386
399
|
} | {
|
|
387
|
-
operationMode: "aggregate";
|
|
388
400
|
agentTimings: DebugMetaAgent[];
|
|
389
401
|
operationsPerformed: {
|
|
390
402
|
decomposedPremises: boolean;
|
|
391
403
|
};
|
|
392
404
|
error?: undefined;
|
|
393
|
-
needsProfileGeneration?: undefined;
|
|
394
|
-
forceUpdate?: undefined;
|
|
395
|
-
} | {
|
|
396
|
-
needsProfileGeneration: boolean;
|
|
397
|
-
forceUpdate: boolean;
|
|
398
|
-
agentTimings: DebugMetaAgent[];
|
|
399
|
-
error?: undefined;
|
|
400
|
-
operationMode?: undefined;
|
|
401
|
-
operationsPerformed?: undefined;
|
|
402
405
|
};
|
|
403
406
|
auto_generate: {
|
|
404
407
|
error: string;
|
|
@@ -429,76 +432,6 @@ export declare class ProfileGraphFactory {
|
|
|
429
432
|
};
|
|
430
433
|
error?: undefined;
|
|
431
434
|
};
|
|
432
|
-
aggregate_profile: {
|
|
433
|
-
operationMode: "query";
|
|
434
|
-
input?: undefined;
|
|
435
|
-
needsProfileGeneration?: undefined;
|
|
436
|
-
forceUpdate?: undefined;
|
|
437
|
-
isAggregate?: undefined;
|
|
438
|
-
} | {
|
|
439
|
-
input: string;
|
|
440
|
-
needsProfileGeneration: boolean;
|
|
441
|
-
forceUpdate: boolean;
|
|
442
|
-
isAggregate: boolean;
|
|
443
|
-
operationMode?: undefined;
|
|
444
|
-
};
|
|
445
|
-
generate_profile: {
|
|
446
|
-
error: string;
|
|
447
|
-
profile?: undefined;
|
|
448
|
-
agentTimings?: undefined;
|
|
449
|
-
operationsPerformed?: undefined;
|
|
450
|
-
} | {
|
|
451
|
-
profile: {
|
|
452
|
-
userId: string;
|
|
453
|
-
identity: {
|
|
454
|
-
name: string;
|
|
455
|
-
bio: string;
|
|
456
|
-
location: string;
|
|
457
|
-
};
|
|
458
|
-
narrative: {
|
|
459
|
-
context: string;
|
|
460
|
-
};
|
|
461
|
-
attributes: {
|
|
462
|
-
interests: string[];
|
|
463
|
-
skills: string[];
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
agentTimings: DebugMetaAgent[];
|
|
467
|
-
operationsPerformed: {
|
|
468
|
-
generatedProfile: boolean;
|
|
469
|
-
};
|
|
470
|
-
error?: undefined;
|
|
471
|
-
} | {
|
|
472
|
-
error: string;
|
|
473
|
-
agentTimings: DebugMetaAgent[];
|
|
474
|
-
profile?: undefined;
|
|
475
|
-
operationsPerformed?: undefined;
|
|
476
|
-
};
|
|
477
|
-
save_profile: {
|
|
478
|
-
error: string;
|
|
479
|
-
profile?: undefined;
|
|
480
|
-
operationsPerformed?: undefined;
|
|
481
|
-
} | {
|
|
482
|
-
profile: {
|
|
483
|
-
identity: {
|
|
484
|
-
name: string;
|
|
485
|
-
bio: string;
|
|
486
|
-
location: string;
|
|
487
|
-
};
|
|
488
|
-
narrative: {
|
|
489
|
-
context: string;
|
|
490
|
-
};
|
|
491
|
-
attributes: {
|
|
492
|
-
interests: string[];
|
|
493
|
-
skills: string[];
|
|
494
|
-
};
|
|
495
|
-
userId: string;
|
|
496
|
-
};
|
|
497
|
-
operationsPerformed: {
|
|
498
|
-
savedProfile: boolean;
|
|
499
|
-
};
|
|
500
|
-
error?: undefined;
|
|
501
|
-
};
|
|
502
435
|
}, unknown, unknown, []>;
|
|
503
436
|
}
|
|
504
|
-
//# sourceMappingURL=
|
|
437
|
+
//# sourceMappingURL=enrichment.graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrichment.graph.d.ts","sourceRoot":"/","sources":["enrichment/enrichment.graph.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAIpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAG7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAItE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,KAAK,EAAE;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,WAAW,GAAG,YAAY,CAAC;QACjC,aAAa,EAAE,QAAQ,CAAC;QACxB,wEAAwE;QACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,yEAAyE;QACzE,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC/C,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B,GAAG,OAAO,CAAC;QACV,OAAO,CAAC,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,GAAG,SAAS,CAAC;QACrC,+EAA+E;QAC/E,WAAW,CAAC,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,aAAa,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAA;SAAE,GAAG,SAAS,CAAC;QAC3F,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC5B,CAAC,CAAC;CACJ;AA+BD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,QAAQ,CAAC;IACjB,OAAO,CAAC,iBAAiB,CAAC;IAC1B,OAAO,CAAC,YAAY,CAAC;gBAJb,QAAQ,EAAE,uBAAuB,EACjC,OAAO,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,eAAe,YAAA,EAC1B,iBAAiB,CAAC,EAAE,mBAAmB,YAAA,EACvC,YAAY,CAAC,EAAE,oBAAoB,YAAA;IAGtC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBALC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAD,CAAC;;;;;;;;;kBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAD,CAAC;;;;;;;;;kBAAD,CAAC;;;;;;;;;kBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAD,CAAC;;;;;;;;;kBAAD,CAAC;;;;;;;;;kBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwrBrB"}
|