RaiInvocationModeration Class
- java.
lang. Object - com.
azure. ai. agents. models. RaiInvocationModeration
- com.
Implements
public final class RaiInvocationModeration
implements JsonSerializable<RaiInvocationModeration>
Declares where request/response text lives so content-safety guardrails can extract it.
Constructor Summary
| Constructor | Description |
|---|---|
| RaiInvocationModeration(RaiInvocationResponseMode responseMode) |
Creates an instance of Rai |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Rai |
fromJson(JsonReader jsonReader)
Reads an instance of Rai |
|
Rai |
getInputContentType()
Get the input |
| List<String> |
getInputPaths()
Get the input |
|
Rai |
getOutputContentType()
Get the output |
| List<String> |
getOutputPaths()
Get the output |
|
Rai |
getResponseMode()
Get the response |
|
List<Rai |
getStreamSelectors()
Get the stream |
|
Rai |
setInputContentType(RaiInvocationContentType inputContentType)
Set the input |
|
Rai |
setInputPaths(List<String> inputPaths)
Set the input |
|
Rai |
setOutputContentType(RaiInvocationContentType outputContentType)
Set the output |
|
Rai |
setOutputPaths(List<String> outputPaths)
Set the output |
|
Rai |
setStreamSelectors(List<RaiSseTextSelector> streamSelectors)
Set the stream |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
RaiInvocationModeration
public RaiInvocationModeration(RaiInvocationResponseMode responseMode)
Creates an instance of RaiInvocationModeration class.
Parameters:
Method Details
fromJson
public static RaiInvocationModeration fromJson(JsonReader jsonReader)
Reads an instance of RaiInvocationModeration from the JsonReader.
Parameters:
Returns:
Throws:
getInputContentType
public RaiInvocationContentType getInputContentType()
Get the inputContentType property: How the REQUEST body is parsed. When omitted, the service defaults to `json`.
Returns:
getInputPaths
public List<String> getInputPaths()
Get the inputPaths property: Path(s) to user text in the REQUEST body. Required when input_content_type is `json`.
Returns:
getOutputContentType
public RaiInvocationContentType getOutputContentType()
Get the outputContentType property: How the RESPONSE body is parsed. When omitted, the service defaults to `json`.
Returns:
getOutputPaths
public List<String> getOutputPaths()
Get the outputPaths property: 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`.
Returns:
getResponseMode
public RaiInvocationResponseMode getResponseMode()
Get the responseMode property: Author-declared response shape; drives which output gate runs and which fields are required.
Returns:
getStreamSelectors
public List<RaiSseTextSelector> getStreamSelectors()
Get the streamSelectors property: One SSE event->field selector per event type carrying text. Required when response_mode is streaming/both and output_content_type is `json`.
Returns:
setInputContentType
public RaiInvocationModeration setInputContentType(RaiInvocationContentType inputContentType)
Set the inputContentType property: How the REQUEST body is parsed. When omitted, the service defaults to `json`.
Parameters:
Returns:
setInputPaths
public RaiInvocationModeration setInputPaths(List<String> inputPaths)
Set the inputPaths property: Path(s) to user text in the REQUEST body. Required when input_content_type is `json`.
Parameters:
Returns:
setOutputContentType
public RaiInvocationModeration setOutputContentType(RaiInvocationContentType outputContentType)
Set the outputContentType property: How the RESPONSE body is parsed. When omitted, the service defaults to `json`.
Parameters:
Returns:
setOutputPaths
public RaiInvocationModeration setOutputPaths(List<String> outputPaths)
Set the outputPaths property: 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`.
Parameters:
Returns:
setStreamSelectors
public RaiInvocationModeration setStreamSelectors(List<RaiSseTextSelector> streamSelectors)
Set the streamSelectors property: One SSE event->field selector per event type carrying text. Required when response_mode is streaming/both and output_content_type is `json`.
Parameters:
Returns: