moderation

package
v0.3.129 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLlamaEngine

func NewLlamaEngine(modelPath string, threads int) (_ *llamaEngine, err error)

Types

type Engine

type Engine interface {
	Moderate(content string) (bool, string, error)
	Close()
}

type ModerationReason added in v0.3.129

type ModerationReason = string

type ModerationResult added in v0.3.129

type ModerationResult bool
const (
	OK      ModerationResult = true
	FAILURE ModerationResult = false
)

Directories

Path Synopsis
binding

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL