Freigeben über


RedTeam Class

Definition

Red team details.

public class RedTeam : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Evaluation.RedTeam>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Evaluation.RedTeam>
type RedTeam = class
    interface IJsonModel<RedTeam>
    interface IPersistableModel<RedTeam>
Public Class RedTeam
Implements IJsonModel(Of RedTeam), IPersistableModel(Of RedTeam)
Inheritance
RedTeam
Implements

Constructors

Name Description
RedTeam(TargetConfig)

Initializes a new instance of RedTeam.

Properties

Name Description
ApplicationScenario

Application scenario for the red team operation, to generate scenario specific attacks.

AttackStrategies

List of attack strategies or nested lists of attack strategies.

DisplayName

Name of the red-team run.

IsSimulationOnly

Simulation-only or Simulation + Evaluation. Default false, if true the scan outputs conversation not evaluation result.

Name

Identifier of the red team run.

Properties

Red team's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed.

RiskCategories

List of risk categories to generate attack objectives for.

Status

Status of the red-team. It is set by service and is read-only.

Tags

Red team's tags. Unlike properties, tags are fully mutable.

Target

Target configuration for the red-team run.

TurnCount

Number of simulation rounds.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Operators

Name Description
Explicit(ClientResult to RedTeam)
Implicit(RedTeam to BinaryContent)

Explicit Interface Implementations

Name Description
IJsonModel<RedTeam>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<RedTeam>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<RedTeam>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<RedTeam>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<RedTeam>.Write(ModelReaderWriterOptions)

Applies to