
























@@ -53,6 +53,7 @@ export type ResolveCommandConversationResolutionInput = {
5353fallbackTo?: string | null;
5454from?: string | null;
5555nativeChannelId?: string | null;
56+includePlacementHint?: boolean;
5657};
57585859export type ResolveInboundConversationResolutionInput = {
@@ -114,6 +115,7 @@ function normalizeResolutionTarget(params: {
114115source: ConversationResolutionSource;
115116threadId?: string;
116117plugin?: ChannelPlugin;
118+includePlacementHint?: boolean;
117119}): ConversationResolution | null {
118120const conversationId = normalizeOptionalString(params.conversation?.conversationId);
119121if (!conversationId) {
@@ -131,6 +133,10 @@ function normalizeResolutionTarget(params: {
131133const normalizedParentConversationId = defaultParentToSelf
132134 ? normalized.conversationId
133135 : normalized.parentConversationId;
136+const placementHint =
137+params.includePlacementHint === false
138+ ? undefined
139+ : resolveChannelDefaultBindingPlacement(params.channel);
134140return {
135141canonical: {
136142channel: params.channel,
@@ -141,7 +147,7 @@ function normalizeResolutionTarget(params: {
141147 : {}),
142148},
143149 ...(params.threadId ? { threadId: params.threadId } : {}),
144-placementHint: resolveChannelDefaultBindingPlacement(params.channel),
150+...(placementHint ? { placementHint } : {}),
145151source: params.source,
146152};
147153}
@@ -273,6 +279,7 @@ export function resolveCommandConversationResolution(
273279source: "command-provider",
274280 threadId,
275281 plugin,
282+includePlacementHint: params.includePlacementHint,
276283});
277284if (providerResolution) {
278285return providerResolution;
@@ -297,6 +304,7 @@ export function resolveCommandConversationResolution(
297304source: "focused-binding",
298305 threadId,
299306 plugin,
307+includePlacementHint: params.includePlacementHint,
300308});
301309if (focusedResolution) {
302310return focusedResolution;
@@ -337,6 +345,7 @@ export function resolveCommandConversationResolution(
337345source: "command-fallback",
338346 threadId,
339347 plugin,
348+includePlacementHint: params.includePlacementHint,
340349});
341350}
342351此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。