OptionalcontextVariables
contextVariables?: { name: string; value: string }[]
OptionalconversationHistory
conversationHistory?: (
| { index?: number; message: string; role: "user" }
| { index?: number; message: string; role: "agent"; topic: string }
)[]
OptionalcustomEvaluations
customEvaluations?: {
label: string;
name: string;
parameters: (
| { isReference: false; name: "operator"; value: string }
| { isReference: true; name: "actual"; value: string }
| { isReference: boolean; name: "expected"; value: string }
)[];
}[]
expectedActions
expectedActions: string[] | undefined
expectedOutcome
expectedOutcome: string | undefined
expectedTopic
expectedTopic: string | undefined
Optionalmetrics
metrics?: typeof metric[number][] utterance
utterance: string