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
commit 557120df8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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