mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 19:35:28 -06:00
19 lines
558 B
TypeScript
19 lines
558 B
TypeScript
import type { MsgContext } from "../auto-reply/templating.js";
|
|
import {
|
|
MediaAttachmentCache,
|
|
type MediaAttachmentCacheOptions,
|
|
normalizeAttachments,
|
|
} from "./attachments.js";
|
|
import type { MediaAttachment } from "./types.js";
|
|
|
|
export function normalizeMediaAttachments(ctx: MsgContext): MediaAttachment[] {
|
|
return normalizeAttachments(ctx);
|
|
}
|
|
|
|
export function createMediaAttachmentCache(
|
|
attachments: MediaAttachment[],
|
|
options?: MediaAttachmentCacheOptions,
|
|
): MediaAttachmentCache {
|
|
return new MediaAttachmentCache(attachments, options);
|
|
}
|