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

Method execute

evals/src/core/executor.ts:90–99  ·  view source on GitHub ↗
(stimulus: Stimulus, options: ExecutorOptions)

Source from the content-addressed store, hash-verified

88 }
89
90 execute(stimulus: Stimulus, options: ExecutorOptions): Promise<Trajectory> {
91 // Trials can share one account's limited resources, and a second actor's timing assumes it is the only change in
92 // flight, so trials never overlap.
93 const run = this.queue.then(() => {
94 if (this.stopping) throw new InfrastructureError("The eval run was interrupted before this trial started");
95 return this.trial(stimulus, options);
96 });
97 this.queue = run.catch(() => undefined);
98 return run;
99 }
100
101 /** Vally calls this on SIGINT or SIGTERM and exits once it resolves, so wait for the running trial to clean up its
102 * live resources. The trial stops its agent at its next check. */

Callers 2

cleanup.test.tsFile · 0.80
trialMethod · 0.80

Calls 1

trialMethod · 0.95

Tested by

no test coverage detected