-
Notifications
You must be signed in to change notification settings - Fork 557
feat!: add support for preserving and optionally applying guardrails to reasoning traces #1145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d335a2f
feat(filters): enhance reasoning trace handling and extraction
Pouyanpi 80f9a5f
feat(config): add guardrail reasoning traces option
Pouyanpi c59e5dd
feat(taskmanager): enhance task output parsing logic
Pouyanpi 166b209
test: update reasoning trace handling in tests
Pouyanpi 26e3f7d
refactor(llm): standardize access to parsed task output text
Pouyanpi 52edbcf
feat(taskmanager): enhance reasoning trace handling
Pouyanpi 753af44
feat(llmrails): prepend reasoning trace to response content
Pouyanpi 3ba82dc
refactor: rename guardrail_reasoning_traces field
Pouyanpi 72c1974
test: add tests for LLM Rails reasoning output
Pouyanpi 45153ab
refactor: rename reasoning trace function
Pouyanpi ade7776
add edge cases for token removal logic
Pouyanpi 8439e0d
add async reasoning trace tests
Pouyanpi 2838164
fix(llmrails): handle reasoning trace with and without prompt
Pouyanpi 1e3ba77
fix: set contextvar to None
Pouyanpi 5719b04
add case when there is no reasoning tag
Pouyanpi ccc2482
remove unsused code
Pouyanpi 43ea1d9
enhance reasoning trace extraction test cases
Pouyanpi 12afd11
enhance trace extraction and stripping
Pouyanpi 73a32fa
revert style changes
Pouyanpi b266c48
rename `apply_to_traces` to `apply_to_reasoning_traces` across test c…
Pouyanpi 95a4fc6
review: fix docstring
Pouyanpi e1ee5e3
review: make start/end tokens optional in helpers
Pouyanpi bbe80c2
review: use None instead of empty strings
Pouyanpi 64ba92a
review: add docstring for parse_task_output
Pouyanpi c5c85e8
review: update apply_to_reasoning_traces description
Pouyanpi 5f63018
review: improve docstring
Pouyanpi 759eb63
review: update reasoning traces contextvar typehint
Pouyanpi 0e34af6
resolve conflict after rebase
Pouyanpi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.