profileconversation

package
v1.182.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.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 Agent

type Agent struct {
	Intent   string      `yaml:"intent"`
	Validate []*Validate `yaml:"validate"`
}

type Interaction

type Interaction struct {
	ID    string `yaml:"id"`
	User  *User  `yaml:"user"`
	Agent *Agent `yaml:"agent"`
}

type Suite

type Suite struct {
	Name        string   `yaml:"name"`
	Description string   `yaml:"description"`
	ProjectID   string   `yaml:"projectId"`
	LocationID  string   `yaml:"locationId"`
	AgentName   string   `yaml:"agentName"`
	Tests       []*Tests `yaml:"tests"`
}

func NewSuite

func NewSuite(file string) (*Suite, error)

type Test

type Test struct {
	Name         string         `yaml:"name"`
	Description  string         `yaml:"description"`
	LocaleID     string         `yaml:"localeId"`
	Interactions []*Interaction `yaml:"interactions"`
}

func NewTest

func NewTest(file string) (*Test, error)

type Tests

type Tests struct {
	ID   string `yaml:"id"`
	File string `yaml:"file"`
}

type User

type User struct {
	Type   string `yaml:"type"`
	Text   string `yaml:"text,omitempty"`
	Prompt string `yaml:"prompt,omitempty"`
	Audio  string `yaml:"audio,omitempty"`
}

type Validate

type Validate struct {
	Type                            string                      `yaml:"type"`
	Value                           string                      `yaml:"value"`
	Algorithm                       string                      `yaml:"algorithm,omitempty"`
	Threshold                       float64                     `yaml:"threshold,omitempty"`
	ConfigurationContains           *configurations.Contains    `yaml:"configuration-contains,omitempty"`
	ConfigurationRegexp             *configurations.Regexp      `yaml:"configuration-regexp,omitempty"`
	ConfigurationEquals             *configurations.Equals      `yaml:"configuration-equals,omitempty"`
	ConfigurationHamming            *metrics.Hamming            `yaml:"configuration-hamming,omitempty"`
	ConfigurationLevenshtein        *metrics.Levenshtein        `yaml:"configuration-levenshtein,omitempty"`
	ConfigurationJaro               *metrics.Jaro               `yaml:"configuration-jaro,omitempty"`
	ConfigurationJaroWinkler        *metrics.JaroWinkler        `yaml:"configuration-jaro-winkler,omitempty"`
	ConfigurationSmithWatermanGotoh *metrics.SmithWatermanGotoh `yaml:"configuration-smith-waterman-gotoh,omitempty"`
	ConfigurationSorensenDice       *metrics.SorensenDice       `yaml:"configuration-sorensen-dice,omitempty"`
	ConfigurationJaccard            *metrics.Jaccard            `yaml:"configuration-jaccard,omitempty"`
	ConfigurationOverlapCoefficient *metrics.OverlapCoefficient `yaml:"configuration-overlap-coefficient,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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