feat: guardianlib intrinsics (#8)#678
Open
ink-pad wants to merge 2 commits intogenerative-computing:mainfrom
Open
feat: guardianlib intrinsics (#8)#678ink-pad wants to merge 2 commits intogenerative-computing:mainfrom
ink-pad wants to merge 2 commits intogenerative-computing:mainfrom
Conversation
* Update README.md Added policy_guardrails intrinsic * Update catalog.py Added policy guardrails * Create policy_guardrails.json Initial checkin * Create test_guardian.py initial checkin * Create policy_guardrails.py Initial check in * Create guardian.py Adding policy_guardrails intrinsic * Update guardian.py Fixed method call (call_intrinsic instead of _call_intrinsic) * feat: add guardian core intrinsic component * Added factuality examples * Added unit tests for factuality intrinsics * Fixed the pre-commit errors * fix guardian intrinsic names to match HF repo paths * fix: lint fixes from pre-commit * Removed duplicated code in correction example * refactor: remove _call_guardian_intrinsic workaround, use call_intrinsic * style: ruff format guardian.py --------- Co-authored-by: Moninder Singh <39064734+monindersingh@users.noreply.github.com> Co-authored-by: Subhajit Chaudhury <subhajit@ibm.com> Co-authored-by: Radu Marinescu <radu.marinescu@ie.ibm.com>
Contributor
|
The PR description has been updated. Please fill out the template for your PR to be reviewed. |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
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.
Component PR
Description
Implementation Checklist
Protocol Compliance
parts()returns list of constituent parts (Components or CBlocks)format_for_llm()returns TemplateRepresentation or string_parse(computed: ModelOutputThunk)parses model output correctly into the specified Component return typeContent Blocks
Integration
mellea/stdlib/components/__init__.pyor, if you are adding a library of components, from your sub-moduleTesting
tests/components/