Challenges with structured output
- Populating complex, nested schemas
- Updating existing schemas without information loss

- Generating complex, nested schemas
- Updating existing schemas without information loss
- Generating + updating
Practically, we see these issues come:
https://github.com/langchain-ai/langmem
Trustcall
- JSON Patch: Update, add, or delete items within a JSON structure w/o replacing entire doc
- Cheaper
- No undesired deletions
https://github.com/hinthornw/trustcall
Type-safe generation of complex schemas
Generating the correct edits to existing schemas
Simultaneous updates & insertions