Language

UnifiedModerateSource Struct

Definition

The workload event source evaluated by Unified Moderate.

public readonly struct UnifiedModerateSource : IEquatable<Azure.AI.ContentSafety.UnifiedModerateSource>
type UnifiedModerateSource = struct
Public Structure UnifiedModerateSource
Implements IEquatable(Of UnifiedModerateSource)
Inheritance
UnifiedModerateSource
Implements

Constructors

Name Description
UnifiedModerateSource(String)

Initializes a new instance of UnifiedModerateSource.

Properties

Name Description
Input

Input submitted to a model or agent. The content field must contain nonempty plain text. Tool fields do not apply.

Output

Output produced by a model or agent. The content field must contain nonempty plain text. Tool fields do not apply.

PostToolCall

A tool result after the invocation completes. The content field must be a string containing the JSON-encoded tool result. toolName is required; toolCallId, toolArguments, toolResultIsError, and toolDurationMs are optional.

PreToolCall

A proposed tool invocation before it is executed. The content field must be a string containing a JSON-encoded object with the proposed tool arguments. toolName is required; toolCallId is optional; post-call fields do not apply.

Methods

Name Description
Equals(UnifiedModerateSource)

Indicates whether the current object is equal to another object of the same type.

ToString()

Returns the fully qualified type name of this instance.

Operators

Name Description
Equality(UnifiedModerateSource, UnifiedModerateSource)

Determines if two UnifiedModerateSource values are the same.

Implicit(String to Nullable<UnifiedModerateSource>)
Implicit(String to UnifiedModerateSource)

Converts a string to a UnifiedModerateSource.

Inequality(UnifiedModerateSource, UnifiedModerateSource)

Determines if two UnifiedModerateSource values are not the same.

Applies to