Files
microsoft--semantic-kernel/dotnet/samples/Demos/ContentSafety/Services/PromptShield/PromptShieldRequest.cs
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

25 lines
868 B
C#

// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
namespace ContentSafety.Services.PromptShield;
/// <summary>
/// Input for Prompt Shield service.
/// More information here: https://learn.microsoft.com/en-us/azure/ai-services/content-safety/quickstart-jailbreak#analyze-attacks
/// </summary>
public class PromptShieldRequest
{
/// <summary>
/// Represents a text or message input provided by the user. This could be a question, command, or other form of text input.
/// </summary>
[JsonPropertyName("userPrompt")]
public string UserPrompt { get; set; } = string.Empty;
/// <summary>
/// Represents a list or collection of textual documents, articles, or other string-based content.
/// </summary>
[JsonPropertyName("documents")]
public List<string>? Documents { get; set; } = [];
}