Add sample demonstrating per-user Prompt Agent isolation with delegat…#47795
Open
howieleung wants to merge 1 commit into
Open
Add sample demonstrating per-user Prompt Agent isolation with delegat…#47795howieleung wants to merge 1 commit into
howieleung wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new azure-ai-projects agent sample intended to demonstrate per-user isolation behavior when sending delegated end-user identities via an HTTP header, and updates the package assets tag to match the new sample’s recorded assets.
Changes:
- Add a new agents sample:
sample_agent_user_identity_isolation.pyshowing two delegated users invoking the same Prompt Agent. - Update
assets.jsontag to a new assets snapshot.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| sdk/ai/azure-ai-projects/samples/agents/sample_agent_user_identity_isolation.py | New sample demonstrating delegated user identity header usage across multiple response chains. |
| sdk/ai/azure-ai-projects/assets.json | Bumps the assets tag to the latest snapshot for the package. |
Comment on lines
+16
to
+17
| * First delegated user: "1 + 1 = ?" then "+ 10" -> 12 | ||
| * Second delegated user: "2 + 2 = ?" then "+ 10" -> 14 |
| # Licensed under the MIT License. | ||
| # ------------------------------------ | ||
|
|
||
| """ |
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.
…ed identities
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines