-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support: MemoryExport API #2129
Conversation
--- | ||
title: 'Get Memory Export' | ||
openapi: get /v1/exports/ | ||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to add some description here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have added it here: https://github.com/mem0ai/mem0/pull/2129/files#diff-3f833dc3e592cbd68a680aba03b33162e8841c28ca0c27bdde5989e8ba2a4480R403?
Does that works?
openapi: post /v1/exports/ | ||
--- | ||
|
||
Create a structured export of memories based on a provided Pydantic schema. This feature allows you to extract memories in a structured format that matches your schema definition. The export will consider `all memories` that match the parameters you provide, such as `user_id`, `agent_id`, `run_id`, or `session_id`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submit a job to create a structured export of memories using a customizable Pydantic schema. This process may take some time to complete, especially if you’re exporting a large number of memories. You can tailor the export by applying various filters (e.g., user_id
, agent_id
, run_id
, or session_id
) and by modifying the Pydantic schema to ensure the final data matches your exact needs.
Co-authored-by: Deshraj Yadav <[email protected]>
Co-authored-by: Deshraj Yadav <[email protected]>
Co-authored-by: Deshraj Yadav <[email protected]>
Description
Add support for a new API: MemoryExport. This helps in extracting memories into a structured format based on pydantic schema provided.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
Checklist:
Maintainer Checklist