import type { ChannelMessageActionAdapter } from "openclaw/plugin-sdk/channel-contract"; import { isSlackInteractiveRepliesEnabled } from "./interactive-replies.js"; import { listSlackMessageActions } from "./message-actions.js";
export function describeSlackMessageTool({
cfg,
accountId,
}: Parameters<NonNullable<ChannelMessageActionAdapter["describeMessageTool"]>>[0]) { const actions = listSlackMessageActions(cfg, accountId); const capabilities = new Set<"presentation">(); if (actions.includes("send")) {
capabilities.add("presentation");
} if (isSlackInteractiveRepliesEnabled({ cfg, accountId })) {
capabilities.add("presentation");
} return {
actions,
capabilities: Array.from(capabilities),
};
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.