@composio/core
Version:

27 lines (25 loc) • 931 B
JavaScript
import { i as transformProperties } from "../../FileToolModifier.utils.neutral-BcIR-cVE.mjs";
//#region src/utils/modifiers/FileToolModifier.workerd.ts
const UNSUPPORTED_MESSAGE = "File upload/download modifiers are not available on edge runtimes yet. Please set `autoUploadDownloadFiles: false` or run Composio in another JS runtime (Node.js / Bun).";
var FileToolModifier = class {
constructor(_client) {}
async modifyToolSchema(toolSlug, toolkitSlug, schema) {
if (!schema.inputParameters?.properties) return schema;
const properties = transformProperties(schema.inputParameters.properties);
return {
...schema,
inputParameters: {
...schema.inputParameters,
properties
}
};
}
async fileUploadModifier(_tool, _options) {
throw new Error(UNSUPPORTED_MESSAGE);
}
async fileDownloadModifier(_tool, _options) {
throw new Error(UNSUPPORTED_MESSAGE);
}
};
//#endregion
export { FileToolModifier };