Outbound: scope core send media roots by agent (#17268)

Merged with gates skipped by maintainer request.

Prepared head SHA: 663ac49b3a
This commit is contained in:
Gustavo Madeira Santana
2026-02-15 11:43:02 -05:00
committed by GitHub
parent b4f16001aa
commit 9adcccadb1
7 changed files with 118 additions and 0 deletions

View File

@@ -31,6 +31,8 @@ export type MessageGatewayOptions = {
type MessageSendParams = {
to: string;
content: string;
/** Active agent id for per-agent outbound media root scoping. */
agentId?: string;
channel?: string;
mediaUrl?: string;
mediaUrls?: string[];
@@ -179,6 +181,7 @@ export async function sendMessage(params: MessageSendParams): Promise<MessageSen
cfg,
channel: outboundChannel,
to: resolvedTarget.to,
agentId: params.agentId,
accountId: params.accountId,
payloads: normalizedPayloads,
replyToId: params.replyToId,