Module exposing: defineModelInputCapabilities, getModelInputModalities, hasDeclaredInputModalities, requiredInputModalities, coversInputModalities, MODEL_INPUT_CAPABILITIES_REVIEWED_AT, MODEL_INPUT_CAPABILITIES
// Source: https://github.com/MemTensor/memmy-agent | License: MIT | Copyright 2026-present MemTensor
// Provided via justclaw.it.com; keep this notice with the code.
export type ModelInputModality = "text" | "image" | "video";
const TEXT = Object.freeze(["text"] as const);
const TEXT_IMAGE = Object.freeze(["text", "image"] as const);
const TEXT_IMAGE_VIDEO = Object.freeze(["text", "image", "video"] as const);
export const MODEL_INPUT_CAPABILITIES_REVIEWED_AT = "2026-10-14";
export function defineModelInputCapabilities(
entries: ReadonlyArray<readonly [string, readonly ModelInputModality[]]>,
): Readonly<Record<string, readonly ModelInputModality[]>> {
const result: Record<string, readonly ModelInputModality[]> = Object.create(null);
for (const [model, modalities] of entries) {
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key