Challenges with structured output

  1. Populating complex, nested schemas
  2. Updating existing schemas without information loss

trustcall.png

  1. Generating complex, nested schemas
  2. Updating existing schemas without information loss
  3. Generating + updating

Practically, we see these issues come:

https://github.com/langchain-ai/langmem

Trustcall

https://github.com/hinthornw/trustcall

Type-safe generation of complex schemas

Generating the correct edits to existing schemas

Simultaneous updates & insertions