From 3724e5ffb2447b152c8e88d3a9c396e4e6004624 Mon Sep 17 00:00:00 2001 From: ktz03 <2484593937@qq.com> Date: Tue, 20 Oct 2026 12:34:49 +0800 Subject: [PATCH] Python: Correct Purview middleware setup in package guide --- python/packages/purview/AGENTS.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/packages/purview/AGENTS.md b/python/packages/purview/AGENTS.md index 550d1ae5a78..23260489165 100644 --- a/python/packages/purview/AGENTS.md +++ b/python/packages/purview/AGENTS.md @@ -11,7 +11,7 @@ Integration with Microsoft Purview for data governance and policy enforcement. ### Configuration -- **`PurviewSettings`** - Pydantic settings for Purview configuration +- **`PurviewSettings`** - TypedDict settings for Purview configuration - **`PurviewAppLocation`** / **`PurviewLocationType`** - Location configuration ### Caching @@ -29,9 +29,10 @@ Integration with Microsoft Purview for data governance and policy enforcement. ```python from agent_framework.microsoft import PurviewPolicyMiddleware, PurviewSettings +from azure.identity import DefaultAzureCredential settings = PurviewSettings(...) -middleware = PurviewPolicyMiddleware(settings=settings) +middleware = PurviewPolicyMiddleware(credential=DefaultAzureCredential(), settings=settings) agent = Agent(..., middleware=[middleware]) ```