Draft
Conversation
lakindu-yl
reviewed
Feb 26, 2026
Member
|
@JohnPraveenYL You need to add documentation as to how to use WalledAI. README files in relevant places. And documentation pages. |
amithad
reviewed
Feb 26, 2026
amithad
reviewed
Feb 26, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for WalledAI-based guardrails to Agent Kernel and provides a CLI/LangGraph demo showcasing input safety checks plus PII masking/unmasking.
Changes:
- Introduce WalledAI input/output guardrail implementations and wire them into the guardrail factories + config validation.
- Add
walledaioptional dependency (and lockfile updates) foragentkernel. - Add a runnable CLI demo package under
examples/cli/guardrail/walledai(scripts, config, docs, and tests).
Reviewed changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/cli/guardrail/walledai/pyproject.toml | Defines a standalone demo project and dependencies. |
| examples/cli/guardrail/walledai/demo_test.py | Adds example-level tests for the demo (currently requires real WALLED_API_KEY). |
| examples/cli/guardrail/walledai/demo.py | Demo entrypoint wiring LangGraph agents + CLI. |
| examples/cli/guardrail/walledai/custom_agent.py | Demo helper agent implementation. |
| examples/cli/guardrail/walledai/config.yaml | Enables guardrails with type: walledai for the demo. |
| examples/cli/guardrail/walledai/build.sh | Demo build/bootstrap script using uv. |
| examples/cli/guardrail/walledai/README.md | Demo documentation and usage instructions. |
| ak-py/uv.lock | Locks new dependency graph including walledai and transitive deps. |
| ak-py/src/agentkernel/guardrail/walledai.py | Implements WalledAI guardrail hooks (safety + redaction + unmasking). |
| ak-py/src/agentkernel/guardrail/guardrail.py | Adds factory routing for walledai input/output types. |
| ak-py/src/agentkernel/core/config.py | Extends guardrail type validation to allow walledai. |
| ak-py/pyproject.toml | Adds walledai optional-dependency extra. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
amithad
reviewed
Feb 27, 2026
amithad
reviewed
Mar 3, 2026
amithad
reviewed
Mar 3, 2026
amithad
reviewed
Mar 3, 2026
amithad
requested changes
Mar 3, 2026
…ing/unmasking can be turned on or off as needed
amithad
reviewed
Mar 4, 2026
…led` to `pii` across documentation, configuration files, and codebase for consistency.
amithad
reviewed
Mar 4, 2026
amithad
reviewed
Mar 4, 2026
amithad
reviewed
Mar 4, 2026
…sts for unmasking
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.
Description
This PR implements WalledAI Guardrails to enhance the security and privacy of agent interactions. It introduces automated input safety checks, PII (Personally Identifiable Information) masking/redaction for incoming requests, and a mechanism to unmask sensitive data in the agent's output before it reaches the user.
Type of Change
Related Issues
Fixes #
Relates to #
Changes Made
Testing
Checklist
Screenshots (if applicable)
Additional Notes