@indexnetwork/protocol 4.5.0-rc.334.1 → 4.5.0-rc.336.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-streaming.types.d.ts +1 -1
- package/dist/chat/chat-streaming.types.d.ts.map +1 -1
- package/dist/chat/chat-streaming.types.js.map +1 -1
- package/dist/chat/chat.agent.d.ts +1 -1
- package/dist/chat/chat.agent.d.ts.map +1 -1
- package/dist/chat/chat.agent.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/negotiation/negotiation.agent.d.ts +9 -0
- package/dist/negotiation/negotiation.agent.d.ts.map +1 -1
- package/dist/negotiation/negotiation.agent.js +11 -3
- package/dist/negotiation/negotiation.agent.js.map +1 -1
- package/dist/negotiation/negotiation.graph.d.ts +130 -34
- package/dist/negotiation/negotiation.graph.d.ts.map +1 -1
- package/dist/negotiation/negotiation.graph.js +168 -7
- package/dist/negotiation/negotiation.graph.js.map +1 -1
- package/dist/negotiation/negotiation.protocol.d.ts +250 -2
- package/dist/negotiation/negotiation.protocol.d.ts.map +1 -1
- package/dist/negotiation/negotiation.protocol.js +57 -8
- package/dist/negotiation/negotiation.protocol.js.map +1 -1
- package/dist/negotiation/negotiation.state.d.ts +40 -7
- package/dist/negotiation/negotiation.state.d.ts.map +1 -1
- package/dist/negotiation/negotiation.state.js +5 -1
- package/dist/negotiation/negotiation.state.js.map +1 -1
- package/dist/opportunity/question.prompt.d.ts +1 -1
- package/dist/opportunity/question.prompt.d.ts.map +1 -1
- package/dist/opportunity/question.prompt.js.map +1 -1
- package/dist/questioner/questioner.presets.d.ts.map +1 -1
- package/dist/questioner/questioner.presets.js +66 -0
- package/dist/questioner/questioner.presets.js.map +1 -1
- package/dist/questioner/questioner.types.d.ts +21 -1
- package/dist/questioner/questioner.types.d.ts.map +1 -1
- package/dist/questioner/questioner.types.js.map +1 -1
- package/dist/shared/interfaces/negotiation-events.interface.d.ts +30 -0
- package/dist/shared/interfaces/negotiation-events.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/negotiation-events.interface.js.map +1 -1
- package/dist/shared/schemas/discovery-question.schema.d.ts +8 -8
- package/dist/shared/schemas/discovery-question.schema.js +1 -1
- package/dist/shared/schemas/discovery-question.schema.js.map +1 -1
- package/dist/shared/schemas/negotiation-state.schema.d.ts +41 -4
- package/dist/shared/schemas/negotiation-state.schema.d.ts.map +1 -1
- package/dist/shared/schemas/negotiation-state.schema.js +14 -0
- package/dist/shared/schemas/negotiation-state.schema.js.map +1 -1
- 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 +3 -0
- package/dist/shared/schemas/question.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ export declare class NegotiationGraphFactory {
|
|
|
38
38
|
timeoutMs: number;
|
|
39
39
|
currentSpeaker: "source" | "candidate";
|
|
40
40
|
lastTurn: {
|
|
41
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
41
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
42
42
|
assessment: {
|
|
43
43
|
reasoning: string;
|
|
44
44
|
suggestedRoles: {
|
|
@@ -47,8 +47,12 @@ export declare class NegotiationGraphFactory {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
message?: string | null | undefined;
|
|
50
|
+
askUser?: {
|
|
51
|
+
disclosureSubject: string;
|
|
52
|
+
draftQuestion?: string | null | undefined;
|
|
53
|
+
} | null | undefined;
|
|
50
54
|
} | null;
|
|
51
|
-
status: "completed" | "waiting_for_agent" | "active";
|
|
55
|
+
status: "completed" | "waiting_for_agent" | "active" | "input_required";
|
|
52
56
|
priorTurnCount: number;
|
|
53
57
|
userAnswers: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[];
|
|
54
58
|
outcome: {
|
|
@@ -87,7 +91,7 @@ export declare class NegotiationGraphFactory {
|
|
|
87
91
|
timeoutMs?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
88
92
|
currentSpeaker?: "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate"> | undefined;
|
|
89
93
|
lastTurn?: {
|
|
90
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
94
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
91
95
|
assessment: {
|
|
92
96
|
reasoning: string;
|
|
93
97
|
suggestedRoles: {
|
|
@@ -96,8 +100,12 @@ export declare class NegotiationGraphFactory {
|
|
|
96
100
|
};
|
|
97
101
|
};
|
|
98
102
|
message?: string | null | undefined;
|
|
103
|
+
askUser?: {
|
|
104
|
+
disclosureSubject: string;
|
|
105
|
+
draftQuestion?: string | null | undefined;
|
|
106
|
+
} | null | undefined;
|
|
99
107
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
100
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
108
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
101
109
|
assessment: {
|
|
102
110
|
reasoning: string;
|
|
103
111
|
suggestedRoles: {
|
|
@@ -106,8 +114,12 @@ export declare class NegotiationGraphFactory {
|
|
|
106
114
|
};
|
|
107
115
|
};
|
|
108
116
|
message?: string | null | undefined;
|
|
117
|
+
askUser?: {
|
|
118
|
+
disclosureSubject: string;
|
|
119
|
+
draftQuestion?: string | null | undefined;
|
|
120
|
+
} | null | undefined;
|
|
109
121
|
} | null> | null | undefined;
|
|
110
|
-
status?: "completed" | "waiting_for_agent" | "active" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active"> | undefined;
|
|
122
|
+
status?: "completed" | "waiting_for_agent" | "active" | "input_required" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active" | "input_required"> | undefined;
|
|
111
123
|
priorTurnCount?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
112
124
|
userAnswers?: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]> | undefined;
|
|
113
125
|
outcome?: {
|
|
@@ -158,7 +170,7 @@ export declare class NegotiationGraphFactory {
|
|
|
158
170
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
159
171
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
160
172
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
161
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
173
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
162
174
|
assessment: {
|
|
163
175
|
reasoning: string;
|
|
164
176
|
suggestedRoles: {
|
|
@@ -167,8 +179,12 @@ export declare class NegotiationGraphFactory {
|
|
|
167
179
|
};
|
|
168
180
|
};
|
|
169
181
|
message?: string | null | undefined;
|
|
182
|
+
askUser?: {
|
|
183
|
+
disclosureSubject: string;
|
|
184
|
+
draftQuestion?: string | null | undefined;
|
|
185
|
+
} | null | undefined;
|
|
170
186
|
} | null, {
|
|
171
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
187
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
172
188
|
assessment: {
|
|
173
189
|
reasoning: string;
|
|
174
190
|
suggestedRoles: {
|
|
@@ -177,8 +193,12 @@ export declare class NegotiationGraphFactory {
|
|
|
177
193
|
};
|
|
178
194
|
};
|
|
179
195
|
message?: string | null | undefined;
|
|
196
|
+
askUser?: {
|
|
197
|
+
disclosureSubject: string;
|
|
198
|
+
draftQuestion?: string | null | undefined;
|
|
199
|
+
} | null | undefined;
|
|
180
200
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
181
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
201
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
182
202
|
assessment: {
|
|
183
203
|
reasoning: string;
|
|
184
204
|
suggestedRoles: {
|
|
@@ -187,8 +207,12 @@ export declare class NegotiationGraphFactory {
|
|
|
187
207
|
};
|
|
188
208
|
};
|
|
189
209
|
message?: string | null | undefined;
|
|
210
|
+
askUser?: {
|
|
211
|
+
disclosureSubject: string;
|
|
212
|
+
draftQuestion?: string | null | undefined;
|
|
213
|
+
} | null | undefined;
|
|
190
214
|
} | null> | null, unknown>;
|
|
191
|
-
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active", "completed" | "waiting_for_agent" | "active" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active">, unknown>;
|
|
215
|
+
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active" | "input_required", "completed" | "waiting_for_agent" | "active" | "input_required" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active" | "input_required">, unknown>;
|
|
192
216
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
193
217
|
userAnswers: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[], import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]>, unknown>;
|
|
194
218
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -248,7 +272,7 @@ export declare class NegotiationGraphFactory {
|
|
|
248
272
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
249
273
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
250
274
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
251
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
275
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
252
276
|
assessment: {
|
|
253
277
|
reasoning: string;
|
|
254
278
|
suggestedRoles: {
|
|
@@ -257,8 +281,12 @@ export declare class NegotiationGraphFactory {
|
|
|
257
281
|
};
|
|
258
282
|
};
|
|
259
283
|
message?: string | null | undefined;
|
|
284
|
+
askUser?: {
|
|
285
|
+
disclosureSubject: string;
|
|
286
|
+
draftQuestion?: string | null | undefined;
|
|
287
|
+
} | null | undefined;
|
|
260
288
|
} | null, {
|
|
261
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
289
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
262
290
|
assessment: {
|
|
263
291
|
reasoning: string;
|
|
264
292
|
suggestedRoles: {
|
|
@@ -267,8 +295,12 @@ export declare class NegotiationGraphFactory {
|
|
|
267
295
|
};
|
|
268
296
|
};
|
|
269
297
|
message?: string | null | undefined;
|
|
298
|
+
askUser?: {
|
|
299
|
+
disclosureSubject: string;
|
|
300
|
+
draftQuestion?: string | null | undefined;
|
|
301
|
+
} | null | undefined;
|
|
270
302
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
271
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
303
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
272
304
|
assessment: {
|
|
273
305
|
reasoning: string;
|
|
274
306
|
suggestedRoles: {
|
|
@@ -277,8 +309,12 @@ export declare class NegotiationGraphFactory {
|
|
|
277
309
|
};
|
|
278
310
|
};
|
|
279
311
|
message?: string | null | undefined;
|
|
312
|
+
askUser?: {
|
|
313
|
+
disclosureSubject: string;
|
|
314
|
+
draftQuestion?: string | null | undefined;
|
|
315
|
+
} | null | undefined;
|
|
280
316
|
} | null> | null, unknown>;
|
|
281
|
-
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active", "completed" | "waiting_for_agent" | "active" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active">, unknown>;
|
|
317
|
+
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active" | "input_required", "completed" | "waiting_for_agent" | "active" | "input_required" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active" | "input_required">, unknown>;
|
|
282
318
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
283
319
|
userAnswers: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[], import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]>, unknown>;
|
|
284
320
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -364,7 +400,7 @@ export declare class NegotiationGraphFactory {
|
|
|
364
400
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
365
401
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
366
402
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
367
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
403
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
368
404
|
assessment: {
|
|
369
405
|
reasoning: string;
|
|
370
406
|
suggestedRoles: {
|
|
@@ -373,8 +409,12 @@ export declare class NegotiationGraphFactory {
|
|
|
373
409
|
};
|
|
374
410
|
};
|
|
375
411
|
message?: string | null | undefined;
|
|
412
|
+
askUser?: {
|
|
413
|
+
disclosureSubject: string;
|
|
414
|
+
draftQuestion?: string | null | undefined;
|
|
415
|
+
} | null | undefined;
|
|
376
416
|
} | null, {
|
|
377
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
417
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
378
418
|
assessment: {
|
|
379
419
|
reasoning: string;
|
|
380
420
|
suggestedRoles: {
|
|
@@ -383,8 +423,12 @@ export declare class NegotiationGraphFactory {
|
|
|
383
423
|
};
|
|
384
424
|
};
|
|
385
425
|
message?: string | null | undefined;
|
|
426
|
+
askUser?: {
|
|
427
|
+
disclosureSubject: string;
|
|
428
|
+
draftQuestion?: string | null | undefined;
|
|
429
|
+
} | null | undefined;
|
|
386
430
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
387
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
431
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
388
432
|
assessment: {
|
|
389
433
|
reasoning: string;
|
|
390
434
|
suggestedRoles: {
|
|
@@ -393,8 +437,12 @@ export declare class NegotiationGraphFactory {
|
|
|
393
437
|
};
|
|
394
438
|
};
|
|
395
439
|
message?: string | null | undefined;
|
|
440
|
+
askUser?: {
|
|
441
|
+
disclosureSubject: string;
|
|
442
|
+
draftQuestion?: string | null | undefined;
|
|
443
|
+
} | null | undefined;
|
|
396
444
|
} | null> | null, unknown>;
|
|
397
|
-
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active", "completed" | "waiting_for_agent" | "active" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active">, unknown>;
|
|
445
|
+
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active" | "input_required", "completed" | "waiting_for_agent" | "active" | "input_required" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active" | "input_required">, unknown>;
|
|
398
446
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
399
447
|
userAnswers: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[], import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]>, unknown>;
|
|
400
448
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -535,7 +583,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
535
583
|
timeoutMs: number;
|
|
536
584
|
currentSpeaker: "source" | "candidate";
|
|
537
585
|
lastTurn: {
|
|
538
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
586
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
539
587
|
assessment: {
|
|
540
588
|
reasoning: string;
|
|
541
589
|
suggestedRoles: {
|
|
@@ -544,8 +592,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
544
592
|
};
|
|
545
593
|
};
|
|
546
594
|
message?: string | null | undefined;
|
|
595
|
+
askUser?: {
|
|
596
|
+
disclosureSubject: string;
|
|
597
|
+
draftQuestion?: string | null | undefined;
|
|
598
|
+
} | null | undefined;
|
|
547
599
|
} | null;
|
|
548
|
-
status: "completed" | "waiting_for_agent" | "active";
|
|
600
|
+
status: "completed" | "waiting_for_agent" | "active" | "input_required";
|
|
549
601
|
priorTurnCount: number;
|
|
550
602
|
userAnswers: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[];
|
|
551
603
|
outcome: {
|
|
@@ -584,7 +636,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
584
636
|
timeoutMs?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
585
637
|
currentSpeaker?: "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate"> | undefined;
|
|
586
638
|
lastTurn?: {
|
|
587
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
639
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
588
640
|
assessment: {
|
|
589
641
|
reasoning: string;
|
|
590
642
|
suggestedRoles: {
|
|
@@ -593,8 +645,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
593
645
|
};
|
|
594
646
|
};
|
|
595
647
|
message?: string | null | undefined;
|
|
648
|
+
askUser?: {
|
|
649
|
+
disclosureSubject: string;
|
|
650
|
+
draftQuestion?: string | null | undefined;
|
|
651
|
+
} | null | undefined;
|
|
596
652
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
597
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
653
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
598
654
|
assessment: {
|
|
599
655
|
reasoning: string;
|
|
600
656
|
suggestedRoles: {
|
|
@@ -603,8 +659,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
603
659
|
};
|
|
604
660
|
};
|
|
605
661
|
message?: string | null | undefined;
|
|
662
|
+
askUser?: {
|
|
663
|
+
disclosureSubject: string;
|
|
664
|
+
draftQuestion?: string | null | undefined;
|
|
665
|
+
} | null | undefined;
|
|
606
666
|
} | null> | null | undefined;
|
|
607
|
-
status?: "completed" | "waiting_for_agent" | "active" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active"> | undefined;
|
|
667
|
+
status?: "completed" | "waiting_for_agent" | "active" | "input_required" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active" | "input_required"> | undefined;
|
|
608
668
|
priorTurnCount?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
609
669
|
userAnswers?: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]> | undefined;
|
|
610
670
|
outcome?: {
|
|
@@ -655,7 +715,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
655
715
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
656
716
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
657
717
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
658
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
718
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
659
719
|
assessment: {
|
|
660
720
|
reasoning: string;
|
|
661
721
|
suggestedRoles: {
|
|
@@ -664,8 +724,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
664
724
|
};
|
|
665
725
|
};
|
|
666
726
|
message?: string | null | undefined;
|
|
727
|
+
askUser?: {
|
|
728
|
+
disclosureSubject: string;
|
|
729
|
+
draftQuestion?: string | null | undefined;
|
|
730
|
+
} | null | undefined;
|
|
667
731
|
} | null, {
|
|
668
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
732
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
669
733
|
assessment: {
|
|
670
734
|
reasoning: string;
|
|
671
735
|
suggestedRoles: {
|
|
@@ -674,8 +738,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
674
738
|
};
|
|
675
739
|
};
|
|
676
740
|
message?: string | null | undefined;
|
|
741
|
+
askUser?: {
|
|
742
|
+
disclosureSubject: string;
|
|
743
|
+
draftQuestion?: string | null | undefined;
|
|
744
|
+
} | null | undefined;
|
|
677
745
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
678
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
746
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
679
747
|
assessment: {
|
|
680
748
|
reasoning: string;
|
|
681
749
|
suggestedRoles: {
|
|
@@ -684,8 +752,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
684
752
|
};
|
|
685
753
|
};
|
|
686
754
|
message?: string | null | undefined;
|
|
755
|
+
askUser?: {
|
|
756
|
+
disclosureSubject: string;
|
|
757
|
+
draftQuestion?: string | null | undefined;
|
|
758
|
+
} | null | undefined;
|
|
687
759
|
} | null> | null, unknown>;
|
|
688
|
-
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active", "completed" | "waiting_for_agent" | "active" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active">, unknown>;
|
|
760
|
+
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active" | "input_required", "completed" | "waiting_for_agent" | "active" | "input_required" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active" | "input_required">, unknown>;
|
|
689
761
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
690
762
|
userAnswers: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[], import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]>, unknown>;
|
|
691
763
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -745,7 +817,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
745
817
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
746
818
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
747
819
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
748
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
820
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
749
821
|
assessment: {
|
|
750
822
|
reasoning: string;
|
|
751
823
|
suggestedRoles: {
|
|
@@ -754,8 +826,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
754
826
|
};
|
|
755
827
|
};
|
|
756
828
|
message?: string | null | undefined;
|
|
829
|
+
askUser?: {
|
|
830
|
+
disclosureSubject: string;
|
|
831
|
+
draftQuestion?: string | null | undefined;
|
|
832
|
+
} | null | undefined;
|
|
757
833
|
} | null, {
|
|
758
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
834
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
759
835
|
assessment: {
|
|
760
836
|
reasoning: string;
|
|
761
837
|
suggestedRoles: {
|
|
@@ -764,8 +840,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
764
840
|
};
|
|
765
841
|
};
|
|
766
842
|
message?: string | null | undefined;
|
|
843
|
+
askUser?: {
|
|
844
|
+
disclosureSubject: string;
|
|
845
|
+
draftQuestion?: string | null | undefined;
|
|
846
|
+
} | null | undefined;
|
|
767
847
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
768
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
848
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
769
849
|
assessment: {
|
|
770
850
|
reasoning: string;
|
|
771
851
|
suggestedRoles: {
|
|
@@ -774,8 +854,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
774
854
|
};
|
|
775
855
|
};
|
|
776
856
|
message?: string | null | undefined;
|
|
857
|
+
askUser?: {
|
|
858
|
+
disclosureSubject: string;
|
|
859
|
+
draftQuestion?: string | null | undefined;
|
|
860
|
+
} | null | undefined;
|
|
777
861
|
} | null> | null, unknown>;
|
|
778
|
-
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active", "completed" | "waiting_for_agent" | "active" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active">, unknown>;
|
|
862
|
+
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active" | "input_required", "completed" | "waiting_for_agent" | "active" | "input_required" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active" | "input_required">, unknown>;
|
|
779
863
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
780
864
|
userAnswers: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[], import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]>, unknown>;
|
|
781
865
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -861,7 +945,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
861
945
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
862
946
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
863
947
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
864
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
948
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
865
949
|
assessment: {
|
|
866
950
|
reasoning: string;
|
|
867
951
|
suggestedRoles: {
|
|
@@ -870,8 +954,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
870
954
|
};
|
|
871
955
|
};
|
|
872
956
|
message?: string | null | undefined;
|
|
957
|
+
askUser?: {
|
|
958
|
+
disclosureSubject: string;
|
|
959
|
+
draftQuestion?: string | null | undefined;
|
|
960
|
+
} | null | undefined;
|
|
873
961
|
} | null, {
|
|
874
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
962
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
875
963
|
assessment: {
|
|
876
964
|
reasoning: string;
|
|
877
965
|
suggestedRoles: {
|
|
@@ -880,8 +968,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
880
968
|
};
|
|
881
969
|
};
|
|
882
970
|
message?: string | null | undefined;
|
|
971
|
+
askUser?: {
|
|
972
|
+
disclosureSubject: string;
|
|
973
|
+
draftQuestion?: string | null | undefined;
|
|
974
|
+
} | null | undefined;
|
|
883
975
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
884
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
976
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
885
977
|
assessment: {
|
|
886
978
|
reasoning: string;
|
|
887
979
|
suggestedRoles: {
|
|
@@ -890,8 +982,12 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
890
982
|
};
|
|
891
983
|
};
|
|
892
984
|
message?: string | null | undefined;
|
|
985
|
+
askUser?: {
|
|
986
|
+
disclosureSubject: string;
|
|
987
|
+
draftQuestion?: string | null | undefined;
|
|
988
|
+
} | null | undefined;
|
|
893
989
|
} | null> | null, unknown>;
|
|
894
|
-
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active", "completed" | "waiting_for_agent" | "active" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active">, unknown>;
|
|
990
|
+
status: import("@langchain/langgraph").BaseChannel<"completed" | "waiting_for_agent" | "active" | "input_required", "completed" | "waiting_for_agent" | "active" | "input_required" | import("@langchain/langgraph").OverwriteValue<"completed" | "waiting_for_agent" | "active" | "input_required">, unknown>;
|
|
895
991
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
896
992
|
userAnswers: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[], import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]>, unknown>;
|
|
897
993
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"negotiation.graph.d.ts","sourceRoot":"/","sources":["negot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