(file: { filename?: string; mediaType: string })
| 8 | import { readAttachFileFromPath } from "@/node/utils/attachments/readAttachmentFromPath"; |
| 9 | |
| 10 | function formatDisplayOnlyFileLabel(file: { filename?: string; mediaType: string }): string { |
| 11 | return file.filename != null ? `${file.filename} (${file.mediaType})` : file.mediaType; |
| 12 | } |
| 13 | |
| 14 | export const createAttachFileTool: ToolFactory = (config: ToolConfiguration) => { |
| 15 | return tool({ |
no outgoing calls
no test coverage detected