@indexnetwork/protocol 6.8.0-rc.395.1 → 6.9.0-rc.396.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/CHANGELOG.md +1 -0
- package/dist/index.d.ts +6 -3
- 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 +3 -1
- package/dist/negotiation/negotiation.agent.d.ts.map +1 -1
- package/dist/negotiation/negotiation.agent.js +4 -1
- package/dist/negotiation/negotiation.agent.js.map +1 -1
- package/dist/negotiation/negotiation.graph.d.ts +53 -22
- package/dist/negotiation/negotiation.graph.d.ts.map +1 -1
- package/dist/negotiation/negotiation.graph.js +235 -71
- package/dist/negotiation/negotiation.graph.js.map +1 -1
- package/dist/negotiation/negotiation.question-safety.d.ts +26 -0
- package/dist/negotiation/negotiation.question-safety.d.ts.map +1 -0
- package/dist/negotiation/negotiation.question-safety.js +56 -0
- package/dist/negotiation/negotiation.question-safety.js.map +1 -0
- package/dist/negotiation/negotiation.state.d.ts +22 -2
- package/dist/negotiation/negotiation.state.d.ts.map +1 -1
- package/dist/negotiation/negotiation.state.js +30 -0
- package/dist/negotiation/negotiation.state.js.map +1 -1
- package/dist/opportunity/opportunity.graph.d.ts +12 -1
- package/dist/opportunity/opportunity.graph.d.ts.map +1 -1
- package/dist/opportunity/opportunity.graph.js +43 -5
- package/dist/opportunity/opportunity.graph.js.map +1 -1
- package/dist/opportunity/opportunity.state.d.ts +5 -2
- package/dist/opportunity/opportunity.state.d.ts.map +1 -1
- package/dist/opportunity/opportunity.state.js +5 -0
- package/dist/opportunity/opportunity.state.js.map +1 -1
- package/dist/questioner/questioner.agent.d.ts +1 -1
- package/dist/questioner/questioner.agent.d.ts.map +1 -1
- package/dist/questioner/questioner.agent.js +5 -0
- package/dist/questioner/questioner.agent.js.map +1 -1
- package/dist/questioner/questioner.presets.d.ts.map +1 -1
- package/dist/questioner/questioner.presets.js +9 -13
- package/dist/questioner/questioner.presets.js.map +1 -1
- package/dist/questioner/questioner.types.d.ts +44 -10
- package/dist/questioner/questioner.types.d.ts.map +1 -1
- package/dist/questioner/questioner.types.js +56 -1
- package/dist/questioner/questioner.types.js.map +1 -1
- package/dist/shared/agent/tool.factory.d.ts.map +1 -1
- package/dist/shared/agent/tool.factory.js +1 -0
- package/dist/shared/agent/tool.factory.js.map +1 -1
- package/dist/shared/interfaces/agent-dispatcher.interface.d.ts +3 -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 +81 -6
- 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/negotiation-events.interface.d.ts +14 -2
- 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/question.schema.d.ts +347 -28
- package/dist/shared/schemas/question.schema.d.ts.map +1 -1
- package/dist/shared/schemas/question.schema.js +132 -2
- package/dist/shared/schemas/question.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TraceEmitter } from "../shared/observability/request-context.js";
|
|
2
|
-
import type { NegotiationGraphDatabase, OpportunityStatus } from "../shared/interfaces/database.interface.js";
|
|
2
|
+
import type { NegotiationGraphDatabase, OpportunityStatus, NegotiationContinuationReceipt } from "../shared/interfaces/database.interface.js";
|
|
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";
|
|
@@ -24,6 +24,8 @@ export declare class NegotiationGraphFactory {
|
|
|
24
24
|
createGraph(): import("@langchain/langgraph").CompiledStateGraph<{
|
|
25
25
|
sourceUser: UserNegotiationContext;
|
|
26
26
|
candidateUser: UserNegotiationContext;
|
|
27
|
+
sourceIntentId: string | undefined;
|
|
28
|
+
candidateIntentId: string | undefined;
|
|
27
29
|
indexContext: {
|
|
28
30
|
networkId: string;
|
|
29
31
|
prompt: string;
|
|
@@ -39,6 +41,11 @@ export declare class NegotiationGraphFactory {
|
|
|
39
41
|
opportunityId: string;
|
|
40
42
|
opportunityStatus: OpportunityStatus | undefined;
|
|
41
43
|
opportunityUpdatedAt: Date | undefined;
|
|
44
|
+
resumeFromTaskId: string | undefined;
|
|
45
|
+
continuationSettlementId: string | undefined;
|
|
46
|
+
continuationExecution: import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined;
|
|
47
|
+
continuationReceipt: NegotiationContinuationReceipt | undefined;
|
|
48
|
+
privateConsultation: import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined;
|
|
42
49
|
conversationId: string;
|
|
43
50
|
taskId: string;
|
|
44
51
|
messages: import("./negotiation.state.js").NegotiationMessage[];
|
|
@@ -61,7 +68,7 @@ export declare class NegotiationGraphFactory {
|
|
|
61
68
|
draftQuestion?: string | null | undefined;
|
|
62
69
|
} | null | undefined;
|
|
63
70
|
} | null;
|
|
64
|
-
status: "
|
|
71
|
+
status: "waiting_for_agent" | "input_required" | "completed" | "active";
|
|
65
72
|
priorTurnCount: number;
|
|
66
73
|
userAnswers: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[];
|
|
67
74
|
outcome: {
|
|
@@ -78,6 +85,8 @@ export declare class NegotiationGraphFactory {
|
|
|
78
85
|
}, {
|
|
79
86
|
sourceUser?: UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext> | undefined;
|
|
80
87
|
candidateUser?: UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext> | undefined;
|
|
88
|
+
sourceIntentId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
89
|
+
candidateIntentId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
81
90
|
indexContext?: {
|
|
82
91
|
networkId: string;
|
|
83
92
|
prompt: string;
|
|
@@ -96,6 +105,11 @@ export declare class NegotiationGraphFactory {
|
|
|
96
105
|
opportunityId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
97
106
|
opportunityStatus?: OpportunityStatus | import("@langchain/langgraph").OverwriteValue<OpportunityStatus | undefined> | undefined;
|
|
98
107
|
opportunityUpdatedAt?: Date | import("@langchain/langgraph").OverwriteValue<Date | undefined> | undefined;
|
|
108
|
+
resumeFromTaskId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
109
|
+
continuationSettlementId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
110
|
+
continuationExecution?: import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined> | undefined;
|
|
111
|
+
continuationReceipt?: NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined;
|
|
112
|
+
privateConsultation?: import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined> | undefined;
|
|
99
113
|
conversationId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
100
114
|
taskId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
101
115
|
messages?: import("./negotiation.state.js").NegotiationMessage[] | import("@langchain/langgraph").OverwriteValue<import("./negotiation.state.js").NegotiationMessage[]> | undefined;
|
|
@@ -132,7 +146,7 @@ export declare class NegotiationGraphFactory {
|
|
|
132
146
|
draftQuestion?: string | null | undefined;
|
|
133
147
|
} | null | undefined;
|
|
134
148
|
} | null> | null | undefined;
|
|
135
|
-
status?: "
|
|
149
|
+
status?: "waiting_for_agent" | "input_required" | "completed" | "active" | import("@langchain/langgraph").OverwriteValue<"waiting_for_agent" | "input_required" | "completed" | "active"> | undefined;
|
|
136
150
|
priorTurnCount?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
137
151
|
userAnswers?: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]> | undefined;
|
|
138
152
|
outcome?: {
|
|
@@ -158,6 +172,8 @@ export declare class NegotiationGraphFactory {
|
|
|
158
172
|
}, "screen" | "turn" | "__start__" | "init" | "finalize", {
|
|
159
173
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
160
174
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
175
|
+
sourceIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
176
|
+
candidateIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
161
177
|
indexContext: import("@langchain/langgraph").BaseChannel<{
|
|
162
178
|
networkId: string;
|
|
163
179
|
prompt: string;
|
|
@@ -179,6 +195,11 @@ export declare class NegotiationGraphFactory {
|
|
|
179
195
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
180
196
|
opportunityStatus: import("@langchain/langgraph").BaseChannel<OpportunityStatus | undefined, OpportunityStatus | import("@langchain/langgraph").OverwriteValue<OpportunityStatus | undefined> | undefined, unknown>;
|
|
181
197
|
opportunityUpdatedAt: import("@langchain/langgraph").BaseChannel<Date | undefined, Date | import("@langchain/langgraph").OverwriteValue<Date | undefined> | undefined, unknown>;
|
|
198
|
+
resumeFromTaskId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
199
|
+
continuationSettlementId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
200
|
+
continuationExecution: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined, import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined> | undefined, unknown>;
|
|
201
|
+
continuationReceipt: import("@langchain/langgraph").BaseChannel<NegotiationContinuationReceipt | undefined, NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
202
|
+
privateConsultation: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined, import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined> | undefined, unknown>;
|
|
182
203
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
183
204
|
taskId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
184
205
|
messages: import("@langchain/langgraph").BaseChannel<import("./negotiation.state.js").NegotiationMessage[], import("./negotiation.state.js").NegotiationMessage[] | import("@langchain/langgraph").OverwriteValue<import("./negotiation.state.js").NegotiationMessage[]>, unknown>;
|
|
@@ -229,7 +250,7 @@ export declare class NegotiationGraphFactory {
|
|
|
229
250
|
draftQuestion?: string | null | undefined;
|
|
230
251
|
} | null | undefined;
|
|
231
252
|
} | null> | null, unknown>;
|
|
232
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
253
|
+
status: import("@langchain/langgraph").BaseChannel<"waiting_for_agent" | "input_required" | "completed" | "active", "waiting_for_agent" | "input_required" | "completed" | "active" | import("@langchain/langgraph").OverwriteValue<"waiting_for_agent" | "input_required" | "completed" | "active">, unknown>;
|
|
233
254
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
234
255
|
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>;
|
|
235
256
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -264,6 +285,8 @@ export declare class NegotiationGraphFactory {
|
|
|
264
285
|
}, {
|
|
265
286
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
266
287
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
288
|
+
sourceIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
289
|
+
candidateIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
267
290
|
indexContext: import("@langchain/langgraph").BaseChannel<{
|
|
268
291
|
networkId: string;
|
|
269
292
|
prompt: string;
|
|
@@ -285,6 +308,11 @@ export declare class NegotiationGraphFactory {
|
|
|
285
308
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
286
309
|
opportunityStatus: import("@langchain/langgraph").BaseChannel<OpportunityStatus | undefined, OpportunityStatus | import("@langchain/langgraph").OverwriteValue<OpportunityStatus | undefined> | undefined, unknown>;
|
|
287
310
|
opportunityUpdatedAt: import("@langchain/langgraph").BaseChannel<Date | undefined, Date | import("@langchain/langgraph").OverwriteValue<Date | undefined> | undefined, unknown>;
|
|
311
|
+
resumeFromTaskId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
312
|
+
continuationSettlementId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
313
|
+
continuationExecution: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined, import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined> | undefined, unknown>;
|
|
314
|
+
continuationReceipt: import("@langchain/langgraph").BaseChannel<NegotiationContinuationReceipt | undefined, NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
315
|
+
privateConsultation: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined, import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined> | undefined, unknown>;
|
|
288
316
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
289
317
|
taskId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
290
318
|
messages: import("@langchain/langgraph").BaseChannel<import("./negotiation.state.js").NegotiationMessage[], import("./negotiation.state.js").NegotiationMessage[] | import("@langchain/langgraph").OverwriteValue<import("./negotiation.state.js").NegotiationMessage[]>, unknown>;
|
|
@@ -335,7 +363,7 @@ export declare class NegotiationGraphFactory {
|
|
|
335
363
|
draftQuestion?: string | null | undefined;
|
|
336
364
|
} | null | undefined;
|
|
337
365
|
} | null> | null, unknown>;
|
|
338
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
366
|
+
status: import("@langchain/langgraph").BaseChannel<"waiting_for_agent" | "input_required" | "completed" | "active", "waiting_for_agent" | "input_required" | "completed" | "active" | import("@langchain/langgraph").OverwriteValue<"waiting_for_agent" | "input_required" | "completed" | "active">, unknown>;
|
|
339
367
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
340
368
|
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>;
|
|
341
369
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -378,6 +406,7 @@ export declare class NegotiationGraphFactory {
|
|
|
378
406
|
parts: unknown[];
|
|
379
407
|
createdAt: Date;
|
|
380
408
|
}[] | undefined;
|
|
409
|
+
privateConsultation?: import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined;
|
|
381
410
|
userAnswers?: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | undefined;
|
|
382
411
|
conversationId: string;
|
|
383
412
|
taskId: string;
|
|
@@ -399,6 +428,8 @@ export declare class NegotiationGraphFactory {
|
|
|
399
428
|
turn: import("@langchain/langgraph").UpdateType<{
|
|
400
429
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
401
430
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
431
|
+
sourceIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
432
|
+
candidateIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
402
433
|
indexContext: import("@langchain/langgraph").BaseChannel<{
|
|
403
434
|
networkId: string;
|
|
404
435
|
prompt: string;
|
|
@@ -420,6 +451,11 @@ export declare class NegotiationGraphFactory {
|
|
|
420
451
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
421
452
|
opportunityStatus: import("@langchain/langgraph").BaseChannel<OpportunityStatus | undefined, OpportunityStatus | import("@langchain/langgraph").OverwriteValue<OpportunityStatus | undefined> | undefined, unknown>;
|
|
422
453
|
opportunityUpdatedAt: import("@langchain/langgraph").BaseChannel<Date | undefined, Date | import("@langchain/langgraph").OverwriteValue<Date | undefined> | undefined, unknown>;
|
|
454
|
+
resumeFromTaskId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
455
|
+
continuationSettlementId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
456
|
+
continuationExecution: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined, import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined> | undefined, unknown>;
|
|
457
|
+
continuationReceipt: import("@langchain/langgraph").BaseChannel<NegotiationContinuationReceipt | undefined, NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
458
|
+
privateConsultation: import("@langchain/langgraph").BaseChannel<import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined, import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined> | undefined, unknown>;
|
|
423
459
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
424
460
|
taskId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
425
461
|
messages: import("@langchain/langgraph").BaseChannel<import("./negotiation.state.js").NegotiationMessage[], import("./negotiation.state.js").NegotiationMessage[] | import("@langchain/langgraph").OverwriteValue<import("./negotiation.state.js").NegotiationMessage[]>, unknown>;
|
|
@@ -470,7 +506,7 @@ export declare class NegotiationGraphFactory {
|
|
|
470
506
|
draftQuestion?: string | null | undefined;
|
|
471
507
|
} | null | undefined;
|
|
472
508
|
} | null> | null, unknown>;
|
|
473
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
509
|
+
status: import("@langchain/langgraph").BaseChannel<"waiting_for_agent" | "input_required" | "completed" | "active", "waiting_for_agent" | "input_required" | "completed" | "active" | import("@langchain/langgraph").OverwriteValue<"waiting_for_agent" | "input_required" | "completed" | "active">, unknown>;
|
|
474
510
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
475
511
|
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>;
|
|
476
512
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -503,26 +539,14 @@ export declare class NegotiationGraphFactory {
|
|
|
503
539
|
} | null> | null, unknown>;
|
|
504
540
|
error: import("@langchain/langgraph").BaseChannel<string | null, string | import("@langchain/langgraph").OverwriteValue<string | null> | null, unknown>;
|
|
505
541
|
}>;
|
|
506
|
-
finalize: {
|
|
507
|
-
outcome?: undefined;
|
|
508
|
-
status?: undefined;
|
|
509
|
-
} | {
|
|
510
|
-
outcome: {
|
|
511
|
-
reasoning: string;
|
|
512
|
-
turnCount: number;
|
|
513
|
-
agreedRoles: {
|
|
514
|
-
userId: string;
|
|
515
|
-
role: "agent" | "patient" | "peer";
|
|
516
|
-
}[];
|
|
517
|
-
hasOpportunity: boolean;
|
|
518
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
519
|
-
};
|
|
520
|
-
status: "completed";
|
|
521
|
-
};
|
|
542
|
+
finalize: {};
|
|
522
543
|
}, unknown, unknown, []>;
|
|
523
544
|
}
|
|
524
545
|
export interface NegotiationCandidate {
|
|
525
546
|
userId: string;
|
|
547
|
+
/** Exact opportunity-bound source and candidate intent IDs. */
|
|
548
|
+
sourceIntentId?: string;
|
|
549
|
+
candidateIntentId?: string;
|
|
526
550
|
reasoning: string;
|
|
527
551
|
valencyRole: string;
|
|
528
552
|
networkId?: string;
|
|
@@ -563,6 +587,7 @@ export type OnNegotiationResolved = (entry: {
|
|
|
563
587
|
accepted: NegotiationResult | null;
|
|
564
588
|
turns: NegotiationTurn[];
|
|
565
589
|
outcome: NegotiationOutcome;
|
|
590
|
+
continuationReceipt?: import('../shared/interfaces/database.interface.js').NegotiationContinuationReceipt;
|
|
566
591
|
}) => Promise<void>;
|
|
567
592
|
/**
|
|
568
593
|
* Runs bilateral negotiation for each candidate in parallel.
|
|
@@ -584,5 +609,11 @@ export declare function negotiateCandidates(negotiationGraph: NegotiationGraphLi
|
|
|
584
609
|
* inheriting from a prior task on the same opportunity/conversation.
|
|
585
610
|
*/
|
|
586
611
|
initiatorUserId?: string;
|
|
612
|
+
/** Exact settled task to resume; only the durable run-existing path sets this. */
|
|
613
|
+
resumeFromTaskId?: string;
|
|
614
|
+
/** Deterministic settlement key paired with resumeFromTaskId. */
|
|
615
|
+
continuationSettlementId?: string;
|
|
616
|
+
/** Current durable lease/fence for this exact continuation successor. */
|
|
617
|
+
continuationExecution?: import('../shared/interfaces/database.interface.js').NegotiationContinuationExecution;
|
|
587
618
|
}): Promise<NegotiationResult[]>;
|
|
588
619
|
//# sourceMappingURL=negotiation.graph.d.ts.map
|
|
@@ -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,iBAAiB,EAAE,MAAM,4CAA4C,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,iBAAiB,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC9I,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,EAAwG,KAAK,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC3K,OAAO,KAAK,EAAmB,0BAA0B,EAAE,MAAM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