* Upload a single chat file to temporary execution storage * * This is a convenience function for uploading individual files. * For batch uploads, use processChatFiles() for better performance. * * @param file Chat file to upload * @param executionContext Execution context for temporary storag
( file: ChatFile, executionContext: ChatExecutionContext, requestId: string, userId?: string )
| 85 | * @returns UserFile object with upload result |
| 86 | */ |
| 87 | async function uploadChatFile( |
| 88 | file: ChatFile, |
| 89 | executionContext: ChatExecutionContext, |
| 90 | requestId: string, |
| 91 | userId?: string |
| 92 | ): Promise<UserFile> { |
| 93 | const [userFile] = await processChatFiles([file], executionContext, requestId, userId) |
| 94 | return userFile |
| 95 | } |
nothing calls this directly
no test coverage detected