openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
14 lines (12 loc) • 755 B
TypeScript
import { B as ChannelToolSend } from "./types.core-DVz0Aka0.js";
//#region src/plugin-sdk/tool-send.d.ts
/** Extract the canonical send target fields from tool arguments when the action matches. */
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;
} | null;
//#endregion
export { type ChannelToolSend, extractToolSend };