@indexnetwork/protocol 4.5.0-rc.332.1 → 4.5.0-rc.334.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 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/negotiation/negotiation.agent.d.ts +21 -0
- package/dist/negotiation/negotiation.agent.d.ts.map +1 -1
- package/dist/negotiation/negotiation.agent.js +79 -11
- package/dist/negotiation/negotiation.agent.js.map +1 -1
- package/dist/negotiation/negotiation.graph.d.ts +56 -26
- package/dist/negotiation/negotiation.graph.d.ts.map +1 -1
- package/dist/negotiation/negotiation.graph.js +174 -19
- package/dist/negotiation/negotiation.graph.js.map +1 -1
- package/dist/negotiation/negotiation.protocol.d.ts +287 -0
- package/dist/negotiation/negotiation.protocol.d.ts.map +1 -0
- package/dist/negotiation/negotiation.protocol.js +152 -0
- package/dist/negotiation/negotiation.protocol.js.map +1 -0
- package/dist/negotiation/negotiation.screen.d.ts +128 -0
- package/dist/negotiation/negotiation.screen.d.ts.map +1 -0
- package/dist/negotiation/negotiation.screen.js +131 -0
- package/dist/negotiation/negotiation.screen.js.map +1 -0
- package/dist/negotiation/negotiation.state.d.ts +28 -9
- package/dist/negotiation/negotiation.state.d.ts.map +1 -1
- package/dist/negotiation/negotiation.state.js +28 -4
- package/dist/negotiation/negotiation.state.js.map +1 -1
- package/dist/negotiation/negotiation.tools.d.ts.map +1 -1
- package/dist/negotiation/negotiation.tools.js +86 -31
- package/dist/negotiation/negotiation.tools.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/shared/agent/model.config.d.ts +5 -0
- package/dist/shared/agent/model.config.d.ts.map +1 -1
- package/dist/shared/agent/model.config.js +1 -0
- package/dist/shared/agent/model.config.js.map +1 -1
- package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +6 -0
- package/dist/shared/interfaces/agent-dispatcher.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/agent-dispatcher.interface.js.map +1 -1
- package/dist/shared/interfaces/database.interface.d.ts +9 -0
- package/dist/shared/interfaces/database.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/database.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 +19 -3
- package/dist/shared/schemas/negotiation-state.schema.d.ts.map +1 -1
- package/dist/shared/schemas/negotiation-state.schema.js +15 -1
- package/dist/shared/schemas/negotiation-state.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ import type { NegotiationGraphDatabase } from "../shared/interfaces/database.int
|
|
|
3
3
|
import type { NegotiationTimeoutQueue } from "../shared/interfaces/negotiation-events.interface.js";
|
|
4
4
|
import type { AgentDispatcher } from "../shared/interfaces/agent-dispatcher.interface.js";
|
|
5
5
|
import { type NegotiationTurn, type NegotiationOutcome, type UserNegotiationContext, type SeedAssessment, type NegotiationGraphLike } from "./negotiation.state.js";
|
|
6
|
+
import { type ScreenDecisionRecord } from "./negotiation.screen.js";
|
|
7
|
+
import type { NegotiationProtocolVersion } from "../shared/schemas/negotiation-state.schema.js";
|
|
6
8
|
import type { QuestionerEnqueueFn } from "../questioner/questioner.types.js";
|
|
7
9
|
/**
|
|
8
10
|
* Factory for the bilateral negotiation LangGraph state machine.
|
|
@@ -24,6 +26,8 @@ export declare class NegotiationGraphFactory {
|
|
|
24
26
|
seedAssessment: SeedAssessment;
|
|
25
27
|
initiatorUserId: string | undefined;
|
|
26
28
|
discoveryQuery: string | undefined;
|
|
29
|
+
protocolVersion: NegotiationProtocolVersion;
|
|
30
|
+
screenDecision: ScreenDecisionRecord | null;
|
|
27
31
|
isContinuation: boolean;
|
|
28
32
|
opportunityId: string;
|
|
29
33
|
conversationId: string;
|
|
@@ -34,7 +38,7 @@ export declare class NegotiationGraphFactory {
|
|
|
34
38
|
timeoutMs: number;
|
|
35
39
|
currentSpeaker: "source" | "candidate";
|
|
36
40
|
lastTurn: {
|
|
37
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
41
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
38
42
|
assessment: {
|
|
39
43
|
reasoning: string;
|
|
40
44
|
suggestedRoles: {
|
|
@@ -71,6 +75,8 @@ export declare class NegotiationGraphFactory {
|
|
|
71
75
|
seedAssessment?: SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment> | undefined;
|
|
72
76
|
initiatorUserId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
73
77
|
discoveryQuery?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
78
|
+
protocolVersion?: NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion> | undefined;
|
|
79
|
+
screenDecision?: ScreenDecisionRecord | import("@langchain/langgraph").OverwriteValue<ScreenDecisionRecord | null> | null | undefined;
|
|
74
80
|
isContinuation?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
75
81
|
opportunityId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
76
82
|
conversationId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
@@ -81,7 +87,7 @@ export declare class NegotiationGraphFactory {
|
|
|
81
87
|
timeoutMs?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
82
88
|
currentSpeaker?: "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate"> | undefined;
|
|
83
89
|
lastTurn?: {
|
|
84
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
90
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
85
91
|
assessment: {
|
|
86
92
|
reasoning: string;
|
|
87
93
|
suggestedRoles: {
|
|
@@ -91,7 +97,7 @@ export declare class NegotiationGraphFactory {
|
|
|
91
97
|
};
|
|
92
98
|
message?: string | null | undefined;
|
|
93
99
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
94
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
100
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
95
101
|
assessment: {
|
|
96
102
|
reasoning: string;
|
|
97
103
|
suggestedRoles: {
|
|
@@ -124,7 +130,7 @@ export declare class NegotiationGraphFactory {
|
|
|
124
130
|
reason?: "timeout" | "turn_cap" | undefined;
|
|
125
131
|
} | null> | null | undefined;
|
|
126
132
|
error?: string | import("@langchain/langgraph").OverwriteValue<string | null> | null | undefined;
|
|
127
|
-
}, "__start__" | "init" | "turn" | "finalize", {
|
|
133
|
+
}, "__start__" | "init" | "screen" | "turn" | "finalize", {
|
|
128
134
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
129
135
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
130
136
|
indexContext: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -140,6 +146,8 @@ export declare class NegotiationGraphFactory {
|
|
|
140
146
|
seedAssessment: import("@langchain/langgraph").BaseChannel<SeedAssessment, SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment>, unknown>;
|
|
141
147
|
initiatorUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
142
148
|
discoveryQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
149
|
+
protocolVersion: import("@langchain/langgraph").BaseChannel<NegotiationProtocolVersion, NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion>, unknown>;
|
|
150
|
+
screenDecision: import("@langchain/langgraph").BaseChannel<ScreenDecisionRecord | null, ScreenDecisionRecord | import("@langchain/langgraph").OverwriteValue<ScreenDecisionRecord | null> | null, unknown>;
|
|
143
151
|
isContinuation: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
144
152
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
145
153
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
@@ -150,7 +158,7 @@ export declare class NegotiationGraphFactory {
|
|
|
150
158
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
151
159
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
152
160
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
153
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
161
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
154
162
|
assessment: {
|
|
155
163
|
reasoning: string;
|
|
156
164
|
suggestedRoles: {
|
|
@@ -160,7 +168,7 @@ export declare class NegotiationGraphFactory {
|
|
|
160
168
|
};
|
|
161
169
|
message?: string | null | undefined;
|
|
162
170
|
} | null, {
|
|
163
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
171
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
164
172
|
assessment: {
|
|
165
173
|
reasoning: string;
|
|
166
174
|
suggestedRoles: {
|
|
@@ -170,7 +178,7 @@ export declare class NegotiationGraphFactory {
|
|
|
170
178
|
};
|
|
171
179
|
message?: string | null | undefined;
|
|
172
180
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
173
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
181
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
174
182
|
assessment: {
|
|
175
183
|
reasoning: string;
|
|
176
184
|
suggestedRoles: {
|
|
@@ -228,6 +236,8 @@ export declare class NegotiationGraphFactory {
|
|
|
228
236
|
seedAssessment: import("@langchain/langgraph").BaseChannel<SeedAssessment, SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment>, unknown>;
|
|
229
237
|
initiatorUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
230
238
|
discoveryQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
239
|
+
protocolVersion: import("@langchain/langgraph").BaseChannel<NegotiationProtocolVersion, NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion>, unknown>;
|
|
240
|
+
screenDecision: import("@langchain/langgraph").BaseChannel<ScreenDecisionRecord | null, ScreenDecisionRecord | import("@langchain/langgraph").OverwriteValue<ScreenDecisionRecord | null> | null, unknown>;
|
|
231
241
|
isContinuation: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
232
242
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
233
243
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
@@ -238,7 +248,7 @@ export declare class NegotiationGraphFactory {
|
|
|
238
248
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
239
249
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
240
250
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
241
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
251
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
242
252
|
assessment: {
|
|
243
253
|
reasoning: string;
|
|
244
254
|
suggestedRoles: {
|
|
@@ -248,7 +258,7 @@ export declare class NegotiationGraphFactory {
|
|
|
248
258
|
};
|
|
249
259
|
message?: string | null | undefined;
|
|
250
260
|
} | null, {
|
|
251
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
261
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
252
262
|
assessment: {
|
|
253
263
|
reasoning: string;
|
|
254
264
|
suggestedRoles: {
|
|
@@ -258,7 +268,7 @@ export declare class NegotiationGraphFactory {
|
|
|
258
268
|
};
|
|
259
269
|
message?: string | null | undefined;
|
|
260
270
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
261
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
271
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
262
272
|
assessment: {
|
|
263
273
|
reasoning: string;
|
|
264
274
|
suggestedRoles: {
|
|
@@ -319,9 +329,13 @@ export declare class NegotiationGraphFactory {
|
|
|
319
329
|
maxTurns: number;
|
|
320
330
|
isContinuation: boolean;
|
|
321
331
|
initiatorUserId: string;
|
|
332
|
+
protocolVersion: NegotiationProtocolVersion;
|
|
322
333
|
priorTurnCount: number;
|
|
323
334
|
error?: undefined;
|
|
324
335
|
};
|
|
336
|
+
screen: {
|
|
337
|
+
screenDecision: ScreenDecisionRecord;
|
|
338
|
+
};
|
|
325
339
|
turn: import("@langchain/langgraph").UpdateType<{
|
|
326
340
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
327
341
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
@@ -338,6 +352,8 @@ export declare class NegotiationGraphFactory {
|
|
|
338
352
|
seedAssessment: import("@langchain/langgraph").BaseChannel<SeedAssessment, SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment>, unknown>;
|
|
339
353
|
initiatorUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
340
354
|
discoveryQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
355
|
+
protocolVersion: import("@langchain/langgraph").BaseChannel<NegotiationProtocolVersion, NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion>, unknown>;
|
|
356
|
+
screenDecision: import("@langchain/langgraph").BaseChannel<ScreenDecisionRecord | null, ScreenDecisionRecord | import("@langchain/langgraph").OverwriteValue<ScreenDecisionRecord | null> | null, unknown>;
|
|
341
357
|
isContinuation: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
342
358
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
343
359
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
@@ -348,7 +364,7 @@ export declare class NegotiationGraphFactory {
|
|
|
348
364
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
349
365
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
350
366
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
351
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
367
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
352
368
|
assessment: {
|
|
353
369
|
reasoning: string;
|
|
354
370
|
suggestedRoles: {
|
|
@@ -358,7 +374,7 @@ export declare class NegotiationGraphFactory {
|
|
|
358
374
|
};
|
|
359
375
|
message?: string | null | undefined;
|
|
360
376
|
} | null, {
|
|
361
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
377
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
362
378
|
assessment: {
|
|
363
379
|
reasoning: string;
|
|
364
380
|
suggestedRoles: {
|
|
@@ -368,7 +384,7 @@ export declare class NegotiationGraphFactory {
|
|
|
368
384
|
};
|
|
369
385
|
message?: string | null | undefined;
|
|
370
386
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
371
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
387
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
372
388
|
assessment: {
|
|
373
389
|
reasoning: string;
|
|
374
390
|
suggestedRoles: {
|
|
@@ -507,6 +523,8 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
507
523
|
seedAssessment: SeedAssessment;
|
|
508
524
|
initiatorUserId: string | undefined;
|
|
509
525
|
discoveryQuery: string | undefined;
|
|
526
|
+
protocolVersion: NegotiationProtocolVersion;
|
|
527
|
+
screenDecision: ScreenDecisionRecord | null;
|
|
510
528
|
isContinuation: boolean;
|
|
511
529
|
opportunityId: string;
|
|
512
530
|
conversationId: string;
|
|
@@ -517,7 +535,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
517
535
|
timeoutMs: number;
|
|
518
536
|
currentSpeaker: "source" | "candidate";
|
|
519
537
|
lastTurn: {
|
|
520
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
538
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
521
539
|
assessment: {
|
|
522
540
|
reasoning: string;
|
|
523
541
|
suggestedRoles: {
|
|
@@ -554,6 +572,8 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
554
572
|
seedAssessment?: SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment> | undefined;
|
|
555
573
|
initiatorUserId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
556
574
|
discoveryQuery?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
575
|
+
protocolVersion?: NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion> | undefined;
|
|
576
|
+
screenDecision?: ScreenDecisionRecord | import("@langchain/langgraph").OverwriteValue<ScreenDecisionRecord | null> | null | undefined;
|
|
557
577
|
isContinuation?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
558
578
|
opportunityId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
559
579
|
conversationId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
@@ -564,7 +584,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
564
584
|
timeoutMs?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
565
585
|
currentSpeaker?: "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate"> | undefined;
|
|
566
586
|
lastTurn?: {
|
|
567
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
587
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
568
588
|
assessment: {
|
|
569
589
|
reasoning: string;
|
|
570
590
|
suggestedRoles: {
|
|
@@ -574,7 +594,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
574
594
|
};
|
|
575
595
|
message?: string | null | undefined;
|
|
576
596
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
577
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
597
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
578
598
|
assessment: {
|
|
579
599
|
reasoning: string;
|
|
580
600
|
suggestedRoles: {
|
|
@@ -607,7 +627,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
607
627
|
reason?: "timeout" | "turn_cap" | undefined;
|
|
608
628
|
} | null> | null | undefined;
|
|
609
629
|
error?: string | import("@langchain/langgraph").OverwriteValue<string | null> | null | undefined;
|
|
610
|
-
}, "__start__" | "init" | "turn" | "finalize", {
|
|
630
|
+
}, "__start__" | "init" | "screen" | "turn" | "finalize", {
|
|
611
631
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
612
632
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
613
633
|
indexContext: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -623,6 +643,8 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
623
643
|
seedAssessment: import("@langchain/langgraph").BaseChannel<SeedAssessment, SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment>, unknown>;
|
|
624
644
|
initiatorUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
625
645
|
discoveryQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
646
|
+
protocolVersion: import("@langchain/langgraph").BaseChannel<NegotiationProtocolVersion, NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion>, unknown>;
|
|
647
|
+
screenDecision: import("@langchain/langgraph").BaseChannel<ScreenDecisionRecord | null, ScreenDecisionRecord | import("@langchain/langgraph").OverwriteValue<ScreenDecisionRecord | null> | null, unknown>;
|
|
626
648
|
isContinuation: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
627
649
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
628
650
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
@@ -633,7 +655,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
633
655
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
634
656
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
635
657
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
636
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
658
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
637
659
|
assessment: {
|
|
638
660
|
reasoning: string;
|
|
639
661
|
suggestedRoles: {
|
|
@@ -643,7 +665,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
643
665
|
};
|
|
644
666
|
message?: string | null | undefined;
|
|
645
667
|
} | null, {
|
|
646
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
668
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
647
669
|
assessment: {
|
|
648
670
|
reasoning: string;
|
|
649
671
|
suggestedRoles: {
|
|
@@ -653,7 +675,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
653
675
|
};
|
|
654
676
|
message?: string | null | undefined;
|
|
655
677
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
656
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
678
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
657
679
|
assessment: {
|
|
658
680
|
reasoning: string;
|
|
659
681
|
suggestedRoles: {
|
|
@@ -711,6 +733,8 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
711
733
|
seedAssessment: import("@langchain/langgraph").BaseChannel<SeedAssessment, SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment>, unknown>;
|
|
712
734
|
initiatorUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
713
735
|
discoveryQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
736
|
+
protocolVersion: import("@langchain/langgraph").BaseChannel<NegotiationProtocolVersion, NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion>, unknown>;
|
|
737
|
+
screenDecision: import("@langchain/langgraph").BaseChannel<ScreenDecisionRecord | null, ScreenDecisionRecord | import("@langchain/langgraph").OverwriteValue<ScreenDecisionRecord | null> | null, unknown>;
|
|
714
738
|
isContinuation: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
715
739
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
716
740
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
@@ -721,7 +745,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
721
745
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
722
746
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
723
747
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
724
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
748
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
725
749
|
assessment: {
|
|
726
750
|
reasoning: string;
|
|
727
751
|
suggestedRoles: {
|
|
@@ -731,7 +755,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
731
755
|
};
|
|
732
756
|
message?: string | null | undefined;
|
|
733
757
|
} | null, {
|
|
734
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
758
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
735
759
|
assessment: {
|
|
736
760
|
reasoning: string;
|
|
737
761
|
suggestedRoles: {
|
|
@@ -741,7 +765,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
741
765
|
};
|
|
742
766
|
message?: string | null | undefined;
|
|
743
767
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
744
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
768
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
745
769
|
assessment: {
|
|
746
770
|
reasoning: string;
|
|
747
771
|
suggestedRoles: {
|
|
@@ -802,9 +826,13 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
802
826
|
maxTurns: number;
|
|
803
827
|
isContinuation: boolean;
|
|
804
828
|
initiatorUserId: string;
|
|
829
|
+
protocolVersion: NegotiationProtocolVersion;
|
|
805
830
|
priorTurnCount: number;
|
|
806
831
|
error?: undefined;
|
|
807
832
|
};
|
|
833
|
+
screen: {
|
|
834
|
+
screenDecision: ScreenDecisionRecord;
|
|
835
|
+
};
|
|
808
836
|
turn: import("@langchain/langgraph").UpdateType<{
|
|
809
837
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
810
838
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
@@ -821,6 +849,8 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
821
849
|
seedAssessment: import("@langchain/langgraph").BaseChannel<SeedAssessment, SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment>, unknown>;
|
|
822
850
|
initiatorUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
823
851
|
discoveryQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
852
|
+
protocolVersion: import("@langchain/langgraph").BaseChannel<NegotiationProtocolVersion, NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion>, unknown>;
|
|
853
|
+
screenDecision: import("@langchain/langgraph").BaseChannel<ScreenDecisionRecord | null, ScreenDecisionRecord | import("@langchain/langgraph").OverwriteValue<ScreenDecisionRecord | null> | null, unknown>;
|
|
824
854
|
isContinuation: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
825
855
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
826
856
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
@@ -831,7 +861,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
831
861
|
timeoutMs: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
832
862
|
currentSpeaker: import("@langchain/langgraph").BaseChannel<"source" | "candidate", "source" | "candidate" | import("@langchain/langgraph").OverwriteValue<"source" | "candidate">, unknown>;
|
|
833
863
|
lastTurn: import("@langchain/langgraph").BaseChannel<{
|
|
834
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
864
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
835
865
|
assessment: {
|
|
836
866
|
reasoning: string;
|
|
837
867
|
suggestedRoles: {
|
|
@@ -841,7 +871,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
841
871
|
};
|
|
842
872
|
message?: string | null | undefined;
|
|
843
873
|
} | null, {
|
|
844
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
874
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
845
875
|
assessment: {
|
|
846
876
|
reasoning: string;
|
|
847
877
|
suggestedRoles: {
|
|
@@ -851,7 +881,7 @@ export declare function createDefaultNegotiationGraph(deps: {
|
|
|
851
881
|
};
|
|
852
882
|
message?: string | null | undefined;
|
|
853
883
|
} | import("@langchain/langgraph").OverwriteValue<{
|
|
854
|
-
action: "propose" | "accept" | "reject" | "counter" | "question";
|
|
884
|
+
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline";
|
|
855
885
|
assessment: {
|
|
856
886
|
reasoning: string;
|
|
857
887
|
suggestedRoles: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"negotiation.graph.d.ts","sourceRoot":"/","sources":["negotiation/negotiation.graph.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,KAAK,EAAE,eAAe,EAA0B,MAAM,oDAAoD,CAAC;AAClH,OAAO,EAAyB,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG3L,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"negotiation.graph.d.ts","sourceRoot":"/","sources":["negotiation/negotiation.graph.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,KAAK,EAAE,eAAe,EAA0B,MAAM,oDAAoD,CAAC;AAClH,OAAO,EAAyB,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG3L,OAAO,EAAkE,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpI,OAAO,KAAK,EAAmB,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAEjH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAmB7E;;;GA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