Files
agent-framework/dotnet/src/Microsoft.Agents.AI.Purview/Constants.cs
T
eoindoherty1 b19860b8a8 .NET: Implement Purview middleware in dotnet (#1949)
* Move Purview integration logic into middleware

* Improve error handling and user id management

* Rename purview package

* Handle 402s more explicitly; add Middleware generation methods; don't ignore exceptions

* Use DI container; pass scope id to PC

* Add protection scope caching

* Wrap more exceptions in PurviewClient

* Remove block check dedup; add tests

* Refactor PurviewWrapper intialization; Add unit tests

* Use different .Use method and add IDisposable stub

* Add background job processing for Purview

* Misc comment cleanup

* Apply copilot comments

* Fix formatting

* Formatting other files to fix pipeline

* Small updates to settings and exceptions

* Add README

* Move Purview sample

* Address review comments and update XML comments

* Newline after namespace

* Move public Purview classes to single namespace; Clean up csproj and slnx

* Commit the renames

* Remove unused openAI dependency

---------

Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
2025-11-14 00:50:08 +00:00

30 lines
838 B
C#

// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.AI.Purview;
/// <summary>
/// Shared constants for the Purview service.
/// </summary>
internal static class Constants
{
/// <summary>
/// The odata type property name used in requests and responses.
/// </summary>
public const string ODataTypePropertyName = "@odata.type";
/// <summary>
/// The OData Graph namespace used for odata types.
/// </summary>
public const string ODataGraphNamespace = "microsoft.graph";
/// <summary>
/// The name of the property that contains the conversation id.
/// </summary>
public const string ConversationId = "conversationId";
/// <summary>
/// The name of the property that contains the user id.
/// </summary>
public const string UserId = "userId";
}