tests

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 0 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 {
	Validate []Validation `yaml:"validate" json:"validate"`
}

type AgentTest added in v1.19.0

type AgentTest struct {
	Goal                       string                      `yaml:"goal" json:"goal"`
	Persona                    string                      `yaml:"persona" json:"persona"`
	MaxSteps                   int                         `yaml:"maxSteps" json:"maxSteps"`
	UserInformation            []UserInfo                  `yaml:"userInformation,omitempty" json:"userInformation,omitempty"`
	OpenAIConfig               *OpenAIConfig               `yaml:"openAIConfig,omitempty" json:"openAIConfig,omitempty"`
	VoiceflowAgentTesterConfig *VoiceflowAgentTesterConfig `yaml:"voiceflowAgentTesterConfig,omitempty" json:"voiceflowAgentTesterConfig,omitempty"`
}

AgentTest defines an agent-to-agent test configuration

type Interaction

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

type OpenAIConfig added in v1.19.0

type OpenAIConfig struct {
	Model       string   `yaml:"model,omitempty" json:"model,omitempty"`
	Temperature *float64 `yaml:"temperature,omitempty" json:"temperature,omitempty"`
}

OpenAIConfig defines OpenAI configuration for agent-to-agent tests

type SimilarityConfig added in v1.12.0

type SimilarityConfig struct {
	Provider            string  `yaml:"provider" json:"provider"`
	Model               string  `yaml:"model" json:"model"`
	Temperature         float64 `yaml:"temperature" json:"temperature"`
	SimilarityThreshold float64 `yaml:"similarityThreshold" json:"similarityThreshold"`
	TopK                int     `yaml:"top_k" json:"top_k"`
	TopP                float64 `yaml:"top_p" json:"top_p"`
}

type Suite

type Suite struct {
	Name            string        `yaml:"name" json:"name"`
	Description     string        `yaml:"description" json:"description"`
	EnvironmentName string        `yaml:"environmentName" json:"environmentName"`
	Tests           []TestFile    `yaml:"tests" json:"tests"`
	OpenAIConfig    *OpenAIConfig `yaml:"openAIConfig,omitempty" json:"openAIConfig,omitempty"`
}

type Test

type Test struct {
	Name         string        `yaml:"name" json:"name"`
	Description  string        `yaml:"description" json:"description"`
	Interactions []Interaction `yaml:"interactions,omitempty" json:"interactions,omitempty"`
	Agent        *AgentTest    `yaml:"agent,omitempty" json:"agent,omitempty"`
}

type TestFile

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

type User

type User struct {
	Type string `yaml:"type" json:"type"`
	Text string `yaml:"text,omitempty" json:"text,omitempty"`
}

type UserInfo added in v1.19.0

type UserInfo struct {
	Name  string `yaml:"name" json:"name"`
	Value string `yaml:"value" json:"value"`
}

UserInfo represents information that the agent can use when requested

type Validation

type Validation struct {
	ID               string            `yaml:"id" json:"id,omitempty"`
	Type             string            `yaml:"type" json:"type"`
	Value            string            `yaml:"value,omitempty" json:"value,omitempty"`
	Values           []string          `yaml:"values,omitempty" json:"values,omitempty"`
	SimilarityConfig *SimilarityConfig `yaml:"similarityConfig,omitempty" json:"similarityConfig,omitempty"`
	VariableConfig   *VariableConfig   `yaml:"variableConfig,omitempty" json:"variableConfig,omitempty"`
}

type VariableConfig added in v1.13.0

type VariableConfig struct {
	Name     string `yaml:"name" json:"name"`
	JsonPath string `yaml:"jsonPath,omitempty" json:"jsonPath,omitempty"`
}

type VoiceflowAgentTesterConfig added in v1.19.0

type VoiceflowAgentTesterConfig struct {
	EnvironmentName string `yaml:"environmentName" json:"environmentName"`
	APIKey          string `yaml:"apiKey" json:"apiKey"`
}

VoiceflowAgentTesterConfig defines configuration for using a Voiceflow agent as the tester

Jump to

Keyboard shortcuts

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