Skip to content

Commit 58de276

Browse files
committed
File serializer
1 parent e540f5f commit 58de276

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/sim/lib/copilot/vfs/serializers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ export function serializeFileMeta(file: {
286286
contentType: file.contentType,
287287
size: file.size,
288288
uploadedAt: file.uploadedAt.toISOString(),
289+
readContentWith: file.vfsPath ? `${file.vfsPath}/content` : undefined,
290+
note: 'This is file metadata only. To read the file text/bytes, read the readContentWith path (i.e. append /content).',
289291
},
290292
null,
291293
2

0 commit comments

Comments
 (0)