ARCH: включить оборот конкретного контрагента в revenue-контур
This commit is contained in:
@@ -536,6 +536,34 @@ export function createAssistantTransitionPolicy(deps) {
|
||||
? deps.hasFollowupMarker(String(alternateMessage ?? "")) ||
|
||||
deps.hasReferentialPointer(String(alternateMessage ?? ""))
|
||||
: false);
|
||||
const hasConcreteFollowupReference =
|
||||
hasPrimaryIndexReferenceSignal ||
|
||||
hasAlternateIndexReferenceSignal ||
|
||||
hasOrganizationClarificationContinuation ||
|
||||
inventoryShortFollowupPrimary ||
|
||||
inventoryShortFollowupAlternate ||
|
||||
hasInventoryRootTemporalFollowupPrimary ||
|
||||
hasInventoryRootTemporalFollowupAlternate ||
|
||||
hasInventoryRootRestatementPrimary ||
|
||||
hasInventoryRootRestatementAlternate ||
|
||||
inventoryPurchaseDateVatBridge ||
|
||||
Boolean(debtRoleSwapIntent) ||
|
||||
deps.hasFollowupMarker(userMessage) ||
|
||||
deps.hasReferentialPointer(userMessage) ||
|
||||
(deps.toNonEmptyString(alternateMessage)
|
||||
? deps.hasFollowupMarker(String(alternateMessage ?? "")) ||
|
||||
deps.hasReferentialPointer(String(alternateMessage ?? ""))
|
||||
: false);
|
||||
const hasCurrentTurnExplicitEntity =
|
||||
Array.isArray(assistantTurnMeaning?.explicit_entity_candidates) &&
|
||||
assistantTurnMeaning.explicit_entity_candidates.length > 0;
|
||||
if (
|
||||
assistantTurnMeaning?.intent_override_strength === "explicit_current_turn_intent" &&
|
||||
hasCurrentTurnExplicitEntity &&
|
||||
!hasConcreteFollowupReference
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
const hasStandaloneAddressTopic =
|
||||
deps.hasStandaloneAddressTopicSignal(userMessage) ||
|
||||
(deps.toNonEmptyString(alternateMessage) ? deps.hasStandaloneAddressTopicSignal(alternateMessage) : false);
|
||||
|
||||
Reference in New Issue
Block a user