profilenlu

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	ID       string    `yaml:"id"`
	Input    *Input    `yaml:"input"`
	Validate *Validate `yaml:"validate"`
}

type Input

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

type Parameter

type Parameter struct {
	Parameter string `yaml:"parameter"`
	Value     string `yaml:"value"`
}

func FindParameterByName

func FindParameterByName(validate Validate, name string) (*Parameter, error)

func RemoveParameterByName

func RemoveParameterByName(parameters []*Parameter, name string) []*Parameter

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"`
	Checks      []*Check `yaml:"checks"`
}

func NewTest

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

type Tests

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

type Validate

type Validate struct {
	Intent     string       `yaml:"intent"`
	Parameters []*Parameter `yaml:"parameters"`
}

Jump to

Keyboard shortcuts

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