Skip to content

How can I store custom parts with mastra mongodb storage #10936

@daneatmastra

Description

@daneatmastra

This issue was created from Discord post 1446411042447032411:

Open in Discord

Hello, i want my user can attach file-reference ( not attachment directly )

                        ...message.parts,
                        ...(attachments
                            ? attachments.map((attachment) => ({
                                    type: 'file-reference',
                                    fileId: attachment.fileId,
                                    fileName: attachment.fileName
                                }))
                            : [])
                    ]```

But the parts "file-reference" is not stored in mongodb .How can i achieve this ?

Metadata

Metadata

Assignees

Labels

discordFor issues created from Discord discussions.trio-tnt

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions