assistant2: Persist threads using `serde_json` instead of `bincode` (#25938)

This PR changes how we persist threads in Assistant2 to use `serde_json`
instead of `bincode` for the representation.

This makes the format more flexible to work with (and will allow for
using things like `#[serde(default)]`) if the schema changes over time.

Note: We have to bump the LMDB database version for this, so any threads
created before now will be gone.

Release Notes:

- N/A
81ff6f7a3cMarshall Bowers committed on 3/3/2025, 5:47:10 PM· committed by GitHubparent669082d
1 file changedLine totals unavailable