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

Function iterateRequestFiles

apps/sim/providers/file-attachments.server.ts:28–34  ·  view source on GitHub ↗
(messages: Message[] | undefined)

Source from the content-addressed store, hash-verified

26const GEMINI_PROCESSING_TIMEOUT_MS = 5 * 60_000
27
28function* iterateRequestFiles(messages: Message[] | undefined): Generator<UserFile> {
29 for (const message of messages ?? []) {
30 for (const file of message.files ?? []) {
31 yield file
32 }
33 }
34}
35
36/**
37 * Resolves every attachment that exceeds the inline threshold on a large-file-capable

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected