MCPcopy Create free account
hub / github.com/cli/cli / stimulusVariant

Function stimulusVariant

evals/src/core/executor.ts:44–47  ·  view source on GitHub ↗
(value: unknown, variants: readonly string[])

Source from the content-addressed store, hash-verified

42
43/** Validates a stimulus's `tags.variant` against the variants its suite accepts. */
44export function stimulusVariant(value: unknown, variants: readonly string[]): string {
45 if (typeof value === "string" && variants.includes(value)) return value;
46 throw new InfrastructureError(`Unsupported stimulus variant: ${String(value)}`);
47}
48
49/**
50 * Vally executor that runs one live agent trial of a suite scenario: the suite provisions a fixture, the Copilot agent

Callers 2

harness.test.tsFile · 0.85
trialMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected