InworldSafetyEdgeAsset | Inherits from: InworldEdgeAsset
Specialized edge asset for content safety checking within graph workflows in the Inworld framework.
Extends the base edge functionality to evaluate SafetyResult and filter harmful or unsafe content.
This asset can be created through Unity’s Create menu and used to add safety gates to conversation flows.
Properties
Methods
Reference
EdgeTypeName
A constant stringSafetyEdge, primarily used when registering a custom edge condition name for safety processing.
Returns
Type:string
MeetsCondition
Evaluates whether the input data satisfies the safety condition for this edge. Constructs aSafetyResult from the input and checks IsValid and IsSafe. Behavior is controlled by AllowedPassByDefault — if true, safe content passes; if false, unsafe content passes. If the SafetyResult is not valid, the method returns false.
Parameters
| Parameter | Type | Description |
|---|---|---|
| inputData | InworldBaseData | The input data to evaluate for safety compliance. |
Returns
Type:bool