@indexnetwork/protocol 6.8.0-rc.395.1 → 6.10.0-rc.397.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 +8 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -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.consultation-policy.d.ts +40 -0
- package/dist/negotiation/negotiation.consultation-policy.d.ts.map +1 -0
- package/dist/negotiation/negotiation.consultation-policy.js +69 -0
- package/dist/negotiation/negotiation.consultation-policy.js.map +1 -0
- package/dist/negotiation/negotiation.graph.d.ts +86 -28
- package/dist/negotiation/negotiation.graph.d.ts.map +1 -1
- package/dist/negotiation/negotiation.graph.js +311 -81
- 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 +25 -2
- package/dist/negotiation/negotiation.state.d.ts.map +1 -1
- package/dist/negotiation/negotiation.state.js +35 -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 +47 -10
- package/dist/questioner/questioner.types.d.ts.map +1 -1
- package/dist/questioner/questioner.types.js +61 -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,8 +1,9 @@
|
|
|
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
|
-
import { type NegotiationTurn, type NegotiationOutcome, type UserNegotiationContext, type
|
|
5
|
+
import { type NegotiationTurn, type NegotiationOutcome, type UserNegotiationContext, type NegotiationGraphLike } from "./negotiation.state.js";
|
|
6
|
+
import { type NegotiationConsultationReason } from "./negotiation.consultation-policy.js";
|
|
6
7
|
import { type ScreenDecisionRecord } from "./negotiation.screen.js";
|
|
7
8
|
import { type DeadlockShiftRecord } from "./negotiation.deadlock.js";
|
|
8
9
|
import type { NegotiationProtocolVersion } from "../shared/schemas/negotiation-state.schema.js";
|
|
@@ -24,11 +25,13 @@ export declare class NegotiationGraphFactory {
|
|
|
24
25
|
createGraph(): import("@langchain/langgraph").CompiledStateGraph<{
|
|
25
26
|
sourceUser: UserNegotiationContext;
|
|
26
27
|
candidateUser: UserNegotiationContext;
|
|
28
|
+
sourceIntentId: string | undefined;
|
|
29
|
+
candidateIntentId: string | undefined;
|
|
27
30
|
indexContext: {
|
|
28
31
|
networkId: string;
|
|
29
32
|
prompt: string;
|
|
30
33
|
};
|
|
31
|
-
seedAssessment: SeedAssessment;
|
|
34
|
+
seedAssessment: import("./negotiation.state.js").SeedAssessment;
|
|
32
35
|
initiatorUserId: string | undefined;
|
|
33
36
|
discoveryQuery: string | undefined;
|
|
34
37
|
protocolVersion: NegotiationProtocolVersion;
|
|
@@ -39,6 +42,12 @@ export declare class NegotiationGraphFactory {
|
|
|
39
42
|
opportunityId: string;
|
|
40
43
|
opportunityStatus: OpportunityStatus | undefined;
|
|
41
44
|
opportunityUpdatedAt: Date | undefined;
|
|
45
|
+
resumeFromTaskId: string | undefined;
|
|
46
|
+
continuationSettlementId: string | undefined;
|
|
47
|
+
continuationExecution: import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined;
|
|
48
|
+
continuationReceipt: NegotiationContinuationReceipt | undefined;
|
|
49
|
+
privateConsultation: import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined;
|
|
50
|
+
consultationPolicyReason: NegotiationConsultationReason | undefined;
|
|
42
51
|
conversationId: string;
|
|
43
52
|
taskId: string;
|
|
44
53
|
messages: import("./negotiation.state.js").NegotiationMessage[];
|
|
@@ -61,7 +70,7 @@ export declare class NegotiationGraphFactory {
|
|
|
61
70
|
draftQuestion?: string | null | undefined;
|
|
62
71
|
} | null | undefined;
|
|
63
72
|
} | null;
|
|
64
|
-
status: "
|
|
73
|
+
status: "waiting_for_agent" | "input_required" | "completed" | "active";
|
|
65
74
|
priorTurnCount: number;
|
|
66
75
|
userAnswers: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[];
|
|
67
76
|
outcome: {
|
|
@@ -78,6 +87,8 @@ export declare class NegotiationGraphFactory {
|
|
|
78
87
|
}, {
|
|
79
88
|
sourceUser?: UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext> | undefined;
|
|
80
89
|
candidateUser?: UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext> | undefined;
|
|
90
|
+
sourceIntentId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
91
|
+
candidateIntentId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
81
92
|
indexContext?: {
|
|
82
93
|
networkId: string;
|
|
83
94
|
prompt: string;
|
|
@@ -85,7 +96,7 @@ export declare class NegotiationGraphFactory {
|
|
|
85
96
|
networkId: string;
|
|
86
97
|
prompt: string;
|
|
87
98
|
}> | undefined;
|
|
88
|
-
seedAssessment?: SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment> | undefined;
|
|
99
|
+
seedAssessment?: import("./negotiation.state.js").SeedAssessment | import("@langchain/langgraph").OverwriteValue<import("./negotiation.state.js").SeedAssessment> | undefined;
|
|
89
100
|
initiatorUserId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
90
101
|
discoveryQuery?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
91
102
|
protocolVersion?: NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion> | undefined;
|
|
@@ -96,6 +107,12 @@ export declare class NegotiationGraphFactory {
|
|
|
96
107
|
opportunityId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
97
108
|
opportunityStatus?: OpportunityStatus | import("@langchain/langgraph").OverwriteValue<OpportunityStatus | undefined> | undefined;
|
|
98
109
|
opportunityUpdatedAt?: Date | import("@langchain/langgraph").OverwriteValue<Date | undefined> | undefined;
|
|
110
|
+
resumeFromTaskId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
111
|
+
continuationSettlementId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
112
|
+
continuationExecution?: import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationContinuationExecution | undefined> | undefined;
|
|
113
|
+
continuationReceipt?: NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined;
|
|
114
|
+
privateConsultation?: import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined> | undefined;
|
|
115
|
+
consultationPolicyReason?: NegotiationConsultationReason | import("@langchain/langgraph").OverwriteValue<NegotiationConsultationReason | undefined> | undefined;
|
|
99
116
|
conversationId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
100
117
|
taskId?: string | import("@langchain/langgraph").OverwriteValue<string> | undefined;
|
|
101
118
|
messages?: import("./negotiation.state.js").NegotiationMessage[] | import("@langchain/langgraph").OverwriteValue<import("./negotiation.state.js").NegotiationMessage[]> | undefined;
|
|
@@ -132,7 +149,7 @@ export declare class NegotiationGraphFactory {
|
|
|
132
149
|
draftQuestion?: string | null | undefined;
|
|
133
150
|
} | null | undefined;
|
|
134
151
|
} | null> | null | undefined;
|
|
135
|
-
status?: "
|
|
152
|
+
status?: "waiting_for_agent" | "input_required" | "completed" | "active" | import("@langchain/langgraph").OverwriteValue<"waiting_for_agent" | "input_required" | "completed" | "active"> | undefined;
|
|
136
153
|
priorTurnCount?: number | import("@langchain/langgraph").OverwriteValue<number> | undefined;
|
|
137
154
|
userAnswers?: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | import("@langchain/langgraph").OverwriteValue<import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[]> | undefined;
|
|
138
155
|
outcome?: {
|
|
@@ -158,6 +175,8 @@ export declare class NegotiationGraphFactory {
|
|
|
158
175
|
}, "screen" | "turn" | "__start__" | "init" | "finalize", {
|
|
159
176
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
160
177
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
178
|
+
sourceIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
179
|
+
candidateIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
161
180
|
indexContext: import("@langchain/langgraph").BaseChannel<{
|
|
162
181
|
networkId: string;
|
|
163
182
|
prompt: string;
|
|
@@ -168,7 +187,7 @@ export declare class NegotiationGraphFactory {
|
|
|
168
187
|
networkId: string;
|
|
169
188
|
prompt: string;
|
|
170
189
|
}>, unknown>;
|
|
171
|
-
seedAssessment: import("@langchain/langgraph").BaseChannel<SeedAssessment, SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment>, unknown>;
|
|
190
|
+
seedAssessment: import("@langchain/langgraph").BaseChannel<import("./negotiation.state.js").SeedAssessment, import("./negotiation.state.js").SeedAssessment | import("@langchain/langgraph").OverwriteValue<import("./negotiation.state.js").SeedAssessment>, unknown>;
|
|
172
191
|
initiatorUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
173
192
|
discoveryQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
174
193
|
protocolVersion: import("@langchain/langgraph").BaseChannel<NegotiationProtocolVersion, NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion>, unknown>;
|
|
@@ -179,6 +198,12 @@ export declare class NegotiationGraphFactory {
|
|
|
179
198
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
180
199
|
opportunityStatus: import("@langchain/langgraph").BaseChannel<OpportunityStatus | undefined, OpportunityStatus | import("@langchain/langgraph").OverwriteValue<OpportunityStatus | undefined> | undefined, unknown>;
|
|
181
200
|
opportunityUpdatedAt: import("@langchain/langgraph").BaseChannel<Date | undefined, Date | import("@langchain/langgraph").OverwriteValue<Date | undefined> | undefined, unknown>;
|
|
201
|
+
resumeFromTaskId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
202
|
+
continuationSettlementId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
203
|
+
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>;
|
|
204
|
+
continuationReceipt: import("@langchain/langgraph").BaseChannel<NegotiationContinuationReceipt | undefined, NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
205
|
+
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>;
|
|
206
|
+
consultationPolicyReason: import("@langchain/langgraph").BaseChannel<NegotiationConsultationReason | undefined, NegotiationConsultationReason | import("@langchain/langgraph").OverwriteValue<NegotiationConsultationReason | undefined> | undefined, unknown>;
|
|
182
207
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
183
208
|
taskId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
184
209
|
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 +254,7 @@ export declare class NegotiationGraphFactory {
|
|
|
229
254
|
draftQuestion?: string | null | undefined;
|
|
230
255
|
} | null | undefined;
|
|
231
256
|
} | null> | null, unknown>;
|
|
232
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
257
|
+
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
258
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
234
259
|
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
260
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -264,6 +289,8 @@ export declare class NegotiationGraphFactory {
|
|
|
264
289
|
}, {
|
|
265
290
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
266
291
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
292
|
+
sourceIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
293
|
+
candidateIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
267
294
|
indexContext: import("@langchain/langgraph").BaseChannel<{
|
|
268
295
|
networkId: string;
|
|
269
296
|
prompt: string;
|
|
@@ -274,7 +301,7 @@ export declare class NegotiationGraphFactory {
|
|
|
274
301
|
networkId: string;
|
|
275
302
|
prompt: string;
|
|
276
303
|
}>, unknown>;
|
|
277
|
-
seedAssessment: import("@langchain/langgraph").BaseChannel<SeedAssessment, SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment>, unknown>;
|
|
304
|
+
seedAssessment: import("@langchain/langgraph").BaseChannel<import("./negotiation.state.js").SeedAssessment, import("./negotiation.state.js").SeedAssessment | import("@langchain/langgraph").OverwriteValue<import("./negotiation.state.js").SeedAssessment>, unknown>;
|
|
278
305
|
initiatorUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
279
306
|
discoveryQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
280
307
|
protocolVersion: import("@langchain/langgraph").BaseChannel<NegotiationProtocolVersion, NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion>, unknown>;
|
|
@@ -285,6 +312,12 @@ export declare class NegotiationGraphFactory {
|
|
|
285
312
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
286
313
|
opportunityStatus: import("@langchain/langgraph").BaseChannel<OpportunityStatus | undefined, OpportunityStatus | import("@langchain/langgraph").OverwriteValue<OpportunityStatus | undefined> | undefined, unknown>;
|
|
287
314
|
opportunityUpdatedAt: import("@langchain/langgraph").BaseChannel<Date | undefined, Date | import("@langchain/langgraph").OverwriteValue<Date | undefined> | undefined, unknown>;
|
|
315
|
+
resumeFromTaskId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
316
|
+
continuationSettlementId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
317
|
+
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>;
|
|
318
|
+
continuationReceipt: import("@langchain/langgraph").BaseChannel<NegotiationContinuationReceipt | undefined, NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
319
|
+
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>;
|
|
320
|
+
consultationPolicyReason: import("@langchain/langgraph").BaseChannel<NegotiationConsultationReason | undefined, NegotiationConsultationReason | import("@langchain/langgraph").OverwriteValue<NegotiationConsultationReason | undefined> | undefined, unknown>;
|
|
288
321
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
289
322
|
taskId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
290
323
|
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 +368,7 @@ export declare class NegotiationGraphFactory {
|
|
|
335
368
|
draftQuestion?: string | null | undefined;
|
|
336
369
|
} | null | undefined;
|
|
337
370
|
} | null> | null, unknown>;
|
|
338
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
371
|
+
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
372
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
340
373
|
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
374
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -378,6 +411,28 @@ export declare class NegotiationGraphFactory {
|
|
|
378
411
|
parts: unknown[];
|
|
379
412
|
createdAt: Date;
|
|
380
413
|
}[] | undefined;
|
|
414
|
+
privateConsultation?: import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined;
|
|
415
|
+
userAnswers?: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | undefined;
|
|
416
|
+
conversationId: string;
|
|
417
|
+
taskId: string;
|
|
418
|
+
currentSpeaker: "source" | "candidate";
|
|
419
|
+
turnCount: number;
|
|
420
|
+
maxTurns: number;
|
|
421
|
+
isContinuation: boolean;
|
|
422
|
+
initiatorUserId: string;
|
|
423
|
+
protocolVersion: NegotiationProtocolVersion;
|
|
424
|
+
priorTurnCount: number;
|
|
425
|
+
error?: undefined;
|
|
426
|
+
} | {
|
|
427
|
+
messages?: {
|
|
428
|
+
id: string;
|
|
429
|
+
senderId: string;
|
|
430
|
+
role: "agent";
|
|
431
|
+
parts: unknown[];
|
|
432
|
+
createdAt: Date;
|
|
433
|
+
}[] | undefined;
|
|
434
|
+
consultationPolicyReason: NegotiationConsultationReason;
|
|
435
|
+
privateConsultation?: import("../shared/interfaces/database.interface.js").NegotiationPrivateConsultation | undefined;
|
|
381
436
|
userAnswers?: import("../shared/interfaces/database.interface.js").NegotiationUserAnswer[] | undefined;
|
|
382
437
|
conversationId: string;
|
|
383
438
|
taskId: string;
|
|
@@ -399,6 +454,8 @@ export declare class NegotiationGraphFactory {
|
|
|
399
454
|
turn: import("@langchain/langgraph").UpdateType<{
|
|
400
455
|
sourceUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
401
456
|
candidateUser: import("@langchain/langgraph").BaseChannel<UserNegotiationContext, UserNegotiationContext | import("@langchain/langgraph").OverwriteValue<UserNegotiationContext>, unknown>;
|
|
457
|
+
sourceIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
458
|
+
candidateIntentId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
402
459
|
indexContext: import("@langchain/langgraph").BaseChannel<{
|
|
403
460
|
networkId: string;
|
|
404
461
|
prompt: string;
|
|
@@ -409,7 +466,7 @@ export declare class NegotiationGraphFactory {
|
|
|
409
466
|
networkId: string;
|
|
410
467
|
prompt: string;
|
|
411
468
|
}>, unknown>;
|
|
412
|
-
seedAssessment: import("@langchain/langgraph").BaseChannel<SeedAssessment, SeedAssessment | import("@langchain/langgraph").OverwriteValue<SeedAssessment>, unknown>;
|
|
469
|
+
seedAssessment: import("@langchain/langgraph").BaseChannel<import("./negotiation.state.js").SeedAssessment, import("./negotiation.state.js").SeedAssessment | import("@langchain/langgraph").OverwriteValue<import("./negotiation.state.js").SeedAssessment>, unknown>;
|
|
413
470
|
initiatorUserId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
414
471
|
discoveryQuery: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
415
472
|
protocolVersion: import("@langchain/langgraph").BaseChannel<NegotiationProtocolVersion, NegotiationProtocolVersion | import("@langchain/langgraph").OverwriteValue<NegotiationProtocolVersion>, unknown>;
|
|
@@ -420,6 +477,12 @@ export declare class NegotiationGraphFactory {
|
|
|
420
477
|
opportunityId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
421
478
|
opportunityStatus: import("@langchain/langgraph").BaseChannel<OpportunityStatus | undefined, OpportunityStatus | import("@langchain/langgraph").OverwriteValue<OpportunityStatus | undefined> | undefined, unknown>;
|
|
422
479
|
opportunityUpdatedAt: import("@langchain/langgraph").BaseChannel<Date | undefined, Date | import("@langchain/langgraph").OverwriteValue<Date | undefined> | undefined, unknown>;
|
|
480
|
+
resumeFromTaskId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
481
|
+
continuationSettlementId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
482
|
+
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>;
|
|
483
|
+
continuationReceipt: import("@langchain/langgraph").BaseChannel<NegotiationContinuationReceipt | undefined, NegotiationContinuationReceipt | import("@langchain/langgraph").OverwriteValue<NegotiationContinuationReceipt | undefined> | undefined, unknown>;
|
|
484
|
+
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>;
|
|
485
|
+
consultationPolicyReason: import("@langchain/langgraph").BaseChannel<NegotiationConsultationReason | undefined, NegotiationConsultationReason | import("@langchain/langgraph").OverwriteValue<NegotiationConsultationReason | undefined> | undefined, unknown>;
|
|
423
486
|
conversationId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
424
487
|
taskId: import("@langchain/langgraph").BaseChannel<string, string | import("@langchain/langgraph").OverwriteValue<string>, unknown>;
|
|
425
488
|
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 +533,7 @@ export declare class NegotiationGraphFactory {
|
|
|
470
533
|
draftQuestion?: string | null | undefined;
|
|
471
534
|
} | null | undefined;
|
|
472
535
|
} | null> | null, unknown>;
|
|
473
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
536
|
+
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
537
|
priorTurnCount: import("@langchain/langgraph").BaseChannel<number, number | import("@langchain/langgraph").OverwriteValue<number>, unknown>;
|
|
475
538
|
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
539
|
outcome: import("@langchain/langgraph").BaseChannel<{
|
|
@@ -503,26 +566,14 @@ export declare class NegotiationGraphFactory {
|
|
|
503
566
|
} | null> | null, unknown>;
|
|
504
567
|
error: import("@langchain/langgraph").BaseChannel<string | null, string | import("@langchain/langgraph").OverwriteValue<string | null> | null, unknown>;
|
|
505
568
|
}>;
|
|
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
|
-
};
|
|
569
|
+
finalize: {};
|
|
522
570
|
}, unknown, unknown, []>;
|
|
523
571
|
}
|
|
524
572
|
export interface NegotiationCandidate {
|
|
525
573
|
userId: string;
|
|
574
|
+
/** Exact opportunity-bound source and candidate intent IDs. */
|
|
575
|
+
sourceIntentId?: string;
|
|
576
|
+
candidateIntentId?: string;
|
|
526
577
|
reasoning: string;
|
|
527
578
|
valencyRole: string;
|
|
528
579
|
networkId?: string;
|
|
@@ -563,6 +614,7 @@ export type OnNegotiationResolved = (entry: {
|
|
|
563
614
|
accepted: NegotiationResult | null;
|
|
564
615
|
turns: NegotiationTurn[];
|
|
565
616
|
outcome: NegotiationOutcome;
|
|
617
|
+
continuationReceipt?: import('../shared/interfaces/database.interface.js').NegotiationContinuationReceipt;
|
|
566
618
|
}) => Promise<void>;
|
|
567
619
|
/**
|
|
568
620
|
* Runs bilateral negotiation for each candidate in parallel.
|
|
@@ -584,5 +636,11 @@ export declare function negotiateCandidates(negotiationGraph: NegotiationGraphLi
|
|
|
584
636
|
* inheriting from a prior task on the same opportunity/conversation.
|
|
585
637
|
*/
|
|
586
638
|
initiatorUserId?: string;
|
|
639
|
+
/** Exact settled task to resume; only the durable run-existing path sets this. */
|
|
640
|
+
resumeFromTaskId?: string;
|
|
641
|
+
/** Deterministic settlement key paired with resumeFromTaskId. */
|
|
642
|
+
continuationSettlementId?: string;
|
|
643
|
+
/** Current durable lease/fence for this exact continuation successor. */
|
|
644
|
+
continuationExecution?: import('../shared/interfaces/database.interface.js').NegotiationContinuationExecution;
|
|
587
645
|
}): Promise<NegotiationResult[]>;
|
|
588
646
|
//# 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"],"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