Skip to main content
Overview > InworldSafetyEdgeAsset Class: 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 string SafetyEdge, 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 a SafetyResult 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

ParameterTypeDescription
inputDataInworldBaseDataThe input data to evaluate for safety compliance.

Returns

Type: bool