Help us shape the future of Go! Take the 2026 Go Developer Survey

classifier

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ClaudeMaxTurns = 2
View Source
const ClaudeVerdictSchema = `` /* 147-byte string literal not displayed */
View Source
const DefaultClaudeClassifierModel = "haiku"
View Source
const VerdictParked = "parked"

Variables

This section is empty.

Functions

func BuildPrompt

func BuildPrompt(text string) string

func ClassifyWithCodex added in v0.2.10

func ClassifyWithCodex(text string, timeout time.Duration) (string, error)

func ClassifyWithCodexExecutable added in v0.2.10

func ClassifyWithCodexExecutable(text, configuredExecutable string, timeout time.Duration) (string, error)

func ClassifyWithCodexExecutableInDir added in v0.5.0

func ClassifyWithCodexExecutableInDir(text, configuredExecutable, workDir string, timeout time.Duration) (string, error)

func ClassifyWithCopilot

func ClassifyWithCopilot(text string, timeout time.Duration) (string, error)

func ClaudeClassifierModel added in v0.12.0

func ClaudeClassifierModel() string

func ComposeYieldInput added in v0.12.0

func ComposeYieldInput(lastMessage string, runningBackgroundTasks int) string

func ParseResponse

func ParseResponse(response string) string

func ParseVerdict added in v0.12.0

func ParseVerdict(structuredOutput json.RawMessage) (string, bool)

func SetLogger

func SetLogger(fn LogFunc)

func TruncateForLog added in v0.12.0

func TruncateForLog(value string) string

Types

type LogFunc

type LogFunc func(format string, args ...interface{})
var DefaultLogger LogFunc = func(format string, args ...interface{}) {}

Jump to

Keyboard shortcuts

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