Table of Contents

Class ContentModerator

public class ContentModerator : AIGenerative<ModerationOptions, ModerationProfile, string, Moderation>
Inheritance
object
ContentModerator
Inherited Members

Methods

GenerateAsync(string)

Asynchronously generates output based on the provided input prompt. This method should be overridden in derived classes to implement the actual generation logic. It returns a UniTask that resolves to the generated output. The onReceiveGeneratedContent event is triggered with the generated output once the task completes.

public override UniTask<Moderation> GenerateAsync(string inputMessage)

Parameters

inputMessage string

Returns

UniTask<Moderation>

GenerateAsync(string, List<IFile>)

public UniTask<Moderation> GenerateAsync(string inputMessage, List<IFile> attachedFiles)

Parameters

inputMessage string
attachedFiles List<IFile>

Returns

UniTask<Moderation>