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
fix(chat_history): Support nested multimodal content in get_history() (#208, #141)
ChatHistory.get_history() now correctly handles multimodal objects (Image, PDF, Audio) nested inside sub-schemas, not just at the top level
Replaced json.dumps() with Pydantic-native model_dump_json(exclude=...) to fix TypeError when schemas contain both multimodal fields and nested Pydantic models
Added recursive _extract_multimodal_info() that walks the full object tree to find multimodal content at any depth
Handles lists, tuples, dicts, and deeply nested Pydantic models
All-multimodal containers (list/dict) are fully excluded from the JSON output
New Examples
nested-multimodal: End-to-end example demonstrating nested multimodal schemas with actual LLM calls