Skip to content

Add samples for guardrails with hosted agents#768

Closed
amitbhave10 wants to merge 2 commits into
microsoft-foundry:mainfrom
amitbhave10:main
Closed

Add samples for guardrails with hosted agents#768
amitbhave10 wants to merge 2 commits into
microsoft-foundry:mainfrom
amitbhave10:main

Conversation

@amitbhave10

Copy link
Copy Markdown
Contributor

Add samples for guardrails with hosted agents

foundry-samples automation and others added 2 commits June 10, 2026 09:51
Add a new Agent Framework / Responses hosted-agent sample that attaches a
Responsible AI content safety guardrail via a definition-level policies block
(type: rai_policy, rai_policy_name = full ARM resource ID). Includes a README
covering prerequisites, azd and VS Code deploy paths, and runtime verification
(benign prompt returns 200, a blocked prompt returns 400 content_filter). Add a
learning-path entry to the hosted-agents catalog README.

Verified end-to-end with azd deploy: the deployed agent reaches active with the
rai_config persisted, and a harmful prompt is blocked at the input stage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

👋 Thanks for your contribution, @amitbhave10!

This repository is read-only. If you are contributing on behalf of Microsoft, please submit your PR to the private staging repository instead:

👉 foundry-samples-pr

See CONTRIBUTING.md for full instructions.

@github-actions github-actions Bot closed this Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant