Skip to content

Commit a479349

Browse files
authored
Python: Correct Purview middleware setup in package guide (#9553)
1 parent 597342c commit a479349

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎python/packages/purview/AGENTS.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Integration with Microsoft Purview for data governance and policy enforcement.
1111

1212
### Configuration
1313

14-
- **`PurviewSettings`** - Pydantic settings for Purview configuration
14+
- **`PurviewSettings`** - TypedDict settings for Purview configuration
1515
- **`PurviewAppLocation`** / **`PurviewLocationType`** - Location configuration
1616

1717
### Caching
@@ -29,9 +29,10 @@ Integration with Microsoft Purview for data governance and policy enforcement.
2929

3030
```python
3131
from agent_framework.microsoft import PurviewPolicyMiddleware, PurviewSettings
32+
from azure.identity import DefaultAzureCredential
3233

3334
settings = PurviewSettings(...)
34-
middleware = PurviewPolicyMiddleware(settings=settings)
35+
middleware = PurviewPolicyMiddleware(credential=DefaultAzureCredential(), settings=settings)
3536
agent = Agent(..., middleware=[middleware])
3637
```
3738

0 commit comments

Comments
 (0)