voiceeval

package
v0.35.15 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package voiceeval contains deterministic dialogue checks for Voice Agent workflow tests. It is intentionally small and local: production moderation still belongs to the realtime provider, while tests use these rules to prove that scripted turns stay aligned with the active instructions.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingRequiredText = errors.New("voiceeval: missing required text")
	ErrForbiddenText       = errors.New("voiceeval: forbidden text present")
)

Functions

func EvaluateTranscript

func EvaluateTranscript(turns []Turn) error

func EvaluateTurn

func EvaluateTurn(turn Turn) error

Types

type Rule

type Rule struct {
	Contains    []string
	NotContains []string
}

type Turn

type Turn struct {
	Speaker string
	StepID  string
	Text    string
	Rule    Rule
}

Jump to

Keyboard shortcuts

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