openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
17 lines • 815 B
TypeScript
import { Oj as ChannelToolSend } from "../config-contracts--zSNHFlu.js";
/** Extract the canonical send target fields from tool arguments when the action matches. */
export declare function extractToolSend(
/** Raw model tool arguments supplied to a channel action. */
args: Record<string, unknown>,
/** Action name that should be treated as a send action. */
expectedAction?: string): {
/** Canonical destination id used by core send routing. */
to: string;
/** Optional channel account/profile id when the action includes one. */
accountId?: string;
/** Optional thread/topic id, normalized to string for channel send adapters. */
threadId?: string;
/** True when the send explicitly opts out of ambient thread inheritance. */
threadSuppressed?: boolean;
} | null;
export type { ChannelToolSend };