Skip to content

Conversation

@cdbartholomew
Copy link
Contributor

Summary

  • Auto-consolidated mental models have a text field but no name or summary. The old code always constructed text as f"{name}: {summary}" which produced ": " for these models.
  • Now uses the text field when available, falling back to name/summary construction for backwards compatibility with older model formats.
  • Fixes both get_mental_model and search_mental_models code paths in the reflect response builder.

Test plan

  • Run reflect with a bank that has auto-consolidated mental models
  • Verify the based_on.mental-models entries have correct text (not ": ")
  • Verify backwards compatibility with older mental models that have name/summary fields

Auto-consolidated mental models have a `text` field but no `name` or
`summary`. The old code always constructed text as `f"{name}: {summary}"`
which produced `": "` for these models. Now uses the `text` field when
available, falling back to name/summary construction for backwards
compatibility with older model formats.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants