Genie Truncation Deprecation Warning#157
Merged
aravind-segu merged 2 commits intomainfrom Aug 5, 2025
Merged
Conversation
smurching
reviewed
Aug 5, 2025
|
|
||
| if not truncate_results: | ||
| warnings.warn( | ||
| "Automatic data truncation in Genie will be deprecated in a future version. Currently your data is being truncated by default. To preserve this behavior, set truncate_results=True when initializing the Genie class.", |
Collaborator
There was a problem hiding this comment.
Suggested change
| "Automatic data truncation in Genie will be deprecated in a future version. Currently your data is being truncated by default. To preserve this behavior, set truncate_results=True when initializing the Genie class.", | |
| "Detected large Genie output, truncating it to better fit in LLM context windows. Automatic result truncation in Genie is deprecated and will be disabled by default in a future release; we recommend truncating large Genie results in your agent code instead, if needed. To keep automatic truncation for large Genie outputs enabled, set truncate_results=True when initializing the Genie class.", |
smurching
approved these changes
Aug 5, 2025
Collaborator
smurching
left a comment
There was a problem hiding this comment.
One comment on wording otherwise LGTM!
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In this release warn users that genie auto truncation will be deprecated. In the next release only truncate data if the flag
truncate_resultsis set to True.