classifier

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassifierService

type ClassifierService interface {
	// IsFlagged returns whether a specific message has been flagged for
	// containing inappropriate content.
	IsFlagged(string) (bool, error)
}

type OpenAIClassifierService

type OpenAIClassifierService struct {
	// contains filtered or unexported fields
}

func NewOpenAIClassifier

func NewOpenAIClassifier(apiKey string) *OpenAIClassifierService

func (*OpenAIClassifierService) IsFlagged

func (s *OpenAIClassifierService) IsFlagged(message string) (bool, error)

Jump to

Keyboard shortcuts

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