fix(converter): add explicit Message type check in convert_to_data function (#8722)

* update

* update to template

* Update Meeting Summary.json

* [autofix.ci] apply automated fixes

* Update Meeting Summary.json

* Update Research Translation Loop.json

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
This commit is contained in:
Edwin Jose
2025-06-25 14:24:40 -05:00
committed by GitHub
parent d2d774d11c
commit 557120df8c
3 changed files with 479 additions and 779 deletions

View File

@ -28,6 +28,8 @@ def convert_to_data(v: DataFrame | Data | Message | dict) -> Data:
"""
if isinstance(v, dict):
return Data(v)
if isinstance(v, Message):
return v.to_data()
return v if isinstance(v, Data) else v.to_data()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long