MCPcopy Index your code
hub / github.com/simstudioai/sim / getBedrockDocumentFormat

Function getBedrockDocumentFormat

apps/sim/providers/attachments.ts:628–632  ·  view source on GitHub ↗
(attachment: PreparedProviderAttachment)

Source from the content-addressed store, hash-verified

626}
627
628function getBedrockDocumentFormat(attachment: PreparedProviderAttachment): string {
629 if (attachment.extension === 'md' || attachment.mimeType === 'text/markdown') return 'md'
630 if (attachment.extension === 'txt' || attachment.mimeType === 'text/plain') return 'txt'
631 return attachment.extension || 'txt'
632}
633
634function getBedrockImageFormat(attachment: PreparedProviderAttachment): string {
635 return attachment.extension === 'jpg' ? 'jpeg' : attachment.extension

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected