Core concepts
Structured export
Have a model fill a schema you define, from the memories alone.
Instead of dumping raw memories, structured export has an LLM read them and populate a schema you define, so you get a typed object, a user profile, a summary record, a CRM row, rather than a list of sentences. The engine owns the prompt and the JSON handling and takes on no LLM dependency: you supply the model through the ExportModel trait (AWS Bedrock on the hosted platform), the same pattern consolidation uses.
Rust
use mentedb::export::export_structured;
let schema = r#"{ "name": "string", "city": "string", "dietary": ["string"] }"#;
// model implements ExportModel (your LLM). Returns a serde_json::Value
// populated only from the memories; unsupported fields come back null.
let profile = export_structured(&memories, schema, None, &model)?;
println!("{}", profile["city"]); // "NYC"Available in the Rust engine today. The hosted platform wraps it with a Bedrock model and an export endpoint; SDK wrappers follow.