Skip to content

Add sample demonstrating per-user Prompt Agent isolation with delegat…#47795

Open
howieleung wants to merge 1 commit into
mainfrom
howie/samples-23
Open

Add sample demonstrating per-user Prompt Agent isolation with delegat…#47795
howieleung wants to merge 1 commit into
mainfrom
howie/samples-23

Conversation

@howieleung

Copy link
Copy Markdown
Member

…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:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.py showing two delegated users invoking the same Prompt Agent.
  • Update assets.json tag 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.
# ------------------------------------

"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants