Class ContentModerator
Inheritance
object
ContentModerator
Assembly: .dll
Syntax
public class ContentModerator : AIGenerative<ModerationOptions, ModerationProfile, string, Moderation>
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.
Declaration
public override UniTask<Moderation> GenerateAsync(string inputMessage)
Parameters
Type |
Name |
Description |
string |
inputMessage |
|
Returns
Overrides
GenerateAsync(string, List<IFile>)
Declaration
public UniTask<Moderation> GenerateAsync(string inputMessage, List<IFile> attachedFiles)
Parameters
Type |
Name |
Description |
string |
inputMessage |
|
List<IFile> |
attachedFiles |
|
Returns