-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
FieldType::Constrained
prompt rendering with aliases
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Adds `RunFoo2` function across clients, new types, refines recursive type handling, and updates unreachable code with context. > > - **New Functionality**: > - Adds `RunFoo2` function to Python (`async_client.py`, `sync_client.py`), Ruby (`client.rb`), and TypeScript (`async_client.ts`, `sync_client.ts`) clients. > - Introduces `Foo2` and `Foo3` types in `types.py`, `types.rb`, and `types.ts`. > - **Code Improvements**: > - Replaces `unreachable!()` with `unreachable!("context")` in `expr.rs`, `coerce_array.rs`, `coerce_optional.rs`, and `coerce_union.rs`. > - Refactors recursive type handling in `types.rs`. > - **Testing**: > - Adds `test_constrained_type_alias` in `test_runtime.rs`. > - Adds `test_type_alias_with_assert` in `test_file_manager.rs`. > - Adds `test_alias_bug` in `test_functions.py`. > - **Miscellaneous**: > - Adds `antonio.baml` test file for integration tests. > > <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 10f4999. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN --> --------- Co-authored-by: Greg Hale <[email protected]>
- Loading branch information
1 parent
8d94b0c
commit 3d95e20
Showing
7 changed files
with
81 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters