letta icon indicating copy to clipboard operation
letta copied to clipboard

Please add metadata field to messages

Open seunggs opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. I have a use case where message needs to include some metadata and currently I have to have a bad workaround to create a separate db table to manage the metadata for each message separately. It's made even more frustrating by how hard it is to get the correct user message since the only way you can differentiate multiple user messages is by the content.

My use case is similar to ChatGPT canvas feature where LLM agent helps me edit some document.

In my case, I'm sending two messages: 1) document context and 2) user request. Since both are type user_message, the only way I can pick the user request message to add metadata to is by examining the content which requires a hack like adding <user_request> in my user request content.

Having a metadata field in messages would make this much easier and give everyone flexibility to attach arbitrary data to messages.

Describe the solution you'd like Add a metadata field for messages

seunggs avatar Mar 04 '25 04:03 seunggs

@sarahwooders any ETA on this by any chance? This would make my use case a lot easier and more robust to work with. Thanks for adding this feature!

seunggs avatar Mar 12 '25 14:03 seunggs

@sarahwooders FYI - it'd be good to also add tags and searchability (ideally through both tags and metadata fields)

seunggs avatar Mar 20 '25 14:03 seunggs

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Apr 20 '25 02:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 04 '25 02:05 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 04 '25 02:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 18 '25 02:06 github-actions[bot]