-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unstable_internal_repr on FunctionResult in python (#1068)
This exposes the very last web request with some stats. Retries and such are not available. <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Add `unstable_internal_repr` method to `FunctionResult` for debugging and serialize related Rust structs. > > - **Functionality**: > - Add `unstable_internal_repr()` method to `FunctionResult` in `baml_py.pyi` and `function_results.rs` for debugging internal response representation. > - **Serialization**: > - Add `Serialize` derive to `RenderedPrompt` in `lib.rs`. > - Add `Serialize` derive to `LLMResponse`, `LLMErrorResponse`, `ErrorCode`, and `LLMCompleteResponse` in `mod.rs`. > > <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 0d85cd9. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
4 changed files
with
21 additions
and
5 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