You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AI Agents integrations render stringified json-like data in a nice
way (make the sub nodes of the data structure collapsible)
In Javascript it comes down to having double quotes in a string:
- Good: `'{"role": "system", "content": "some context"}'`
- Bad: `"{'role': 'system', 'content': 'some context'}"`
Also pydantics `model_dump()` sometimes returns `function` or `class`
objects that can not be json serialized so I updated `_normalize_data()`
to make sure everything is converted to a primitive data type, always.
0 commit comments