ภาษา

ProjectsAgentsModelFactory.RaiInvocationModeration Method

Definition

Declares where request/response text lives so content-safety guardrails can extract it.

public static Azure.AI.Projects.Agents.RaiInvocationModeration RaiInvocationModeration(Azure.AI.Projects.Agents.RaiInvocationContentType? inputContentType = default, Azure.AI.Projects.Agents.RaiInvocationContentType? outputContentType = default, Azure.AI.Projects.Agents.RaiInvocationMode responseMode = default, System.Collections.Generic.IEnumerable<string> inputPaths = default, System.Collections.Generic.IEnumerable<string> outputPaths = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.Agents.RaiSseTextSelector> streamSelectors = default);
static member RaiInvocationModeration : Nullable<Azure.AI.Projects.Agents.RaiInvocationContentType> * Nullable<Azure.AI.Projects.Agents.RaiInvocationContentType> * Azure.AI.Projects.Agents.RaiInvocationMode * seq<string> * seq<string> * seq<Azure.AI.Projects.Agents.RaiSseTextSelector> -> Azure.AI.Projects.Agents.RaiInvocationModeration
Public Shared Function RaiInvocationModeration (Optional inputContentType As Nullable(Of RaiInvocationContentType) = Nothing, Optional outputContentType As Nullable(Of RaiInvocationContentType) = Nothing, Optional responseMode As RaiInvocationMode = Nothing, Optional inputPaths As IEnumerable(Of String) = Nothing, Optional outputPaths As IEnumerable(Of String) = Nothing, Optional streamSelectors As IEnumerable(Of RaiSseTextSelector) = Nothing) As RaiInvocationModeration

Parameters

inputContentType
Nullable<RaiInvocationContentType>

How the REQUEST body is parsed. When omitted, the service defaults to json.

outputContentType
Nullable<RaiInvocationContentType>

How the RESPONSE body is parsed. When omitted, the service defaults to json.

responseMode
RaiInvocationMode

Author-declared response shape; drives which output gate runs and which fields are required.

inputPaths
IEnumerable<String>

Path(s) to user text in the REQUEST body. Required when input_content_type is json.

outputPaths
IEnumerable<String>

Path(s) to agent text in a NON-STREAMING response body. Required when response_mode is non_streaming/both and output_content_type is json.

streamSelectors
IEnumerable<RaiSseTextSelector>

One SSE event->field selector per event type carrying text. Required when response_mode is streaming/both and output_content_type is json.

Returns

A new RaiInvocationModeration instance for mocking.

Applies to