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

Function hasModelAttachment

apps/sim/lib/copilot/tools/handlers/vfs.ts:59–67  ·  view source on GitHub ↗
(result: unknown)

Source from the content-addressed store, hash-verified

57}
58
59function hasModelAttachment(result: unknown): boolean {
60 if (!result || typeof result !== 'object') {
61 return false
62 }
63 const attachment = (result as { attachment?: { type?: string } }).attachment
64 return (
65 attachment?.type === 'image' || attachment?.type === 'file' || attachment?.type === 'document'
66 )
67}
68
69export async function executeVfsGrep(
70 params: Record<string, unknown>,

Callers 1

executeVfsReadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected