Commit d017bfe
authored
Add other types to pydantic (#2274)
Adds support for Pdf, Video and Audio.
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Add support for Pdf, Video, and Audio types in Pydantic models with
corresponding tests.
>
> - **Behavior**:
> - Adds support for `Pdf`, `Video`, and `Audio` types in Pydantic
models.
> - Updates `__get_pydantic_core_schema__()` in `media_repr.rs` to
handle new media types.
> - **Tests**:
> - Adds `test_pydantic_audio.py` to test `Audio` type serialization and
deserialization.
> - Adds `test_pydantic_pdf.py` to test `Pdf` type serialization and
deserialization.
> - Adds `test_pydantic_video.py` to test `Video` type serialization and
deserialization.
> - **Misc**:
> - Refactors `_union_schema()` in `media_repr.rs` for cleaner schema
definition.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 30222ee. You can
[customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->1 parent a89ceb6 commit d017bfe
6 files changed
Lines changed: 1972 additions & 991 deletions
File tree
- engine
- language_client_go/pkg/cffi
- language_client_python/src/types
- integ-tests/python/tests
0 commit comments