MCPcopy Create free account
hub / github.com/browserbase/stagehand / defineBenchTask

Function defineBenchTask

packages/evals/framework/defineTask.ts:35–44  ·  view source on GitHub ↗
(
  meta: BenchTaskMeta,
  fn: (ctx: BenchTaskContext) => Promise<void | TaskResult>,
)

Source from the content-addressed store, hash-verified

33 * Bench tasks receive { v3, agent, page, logger, input, ... } and return TaskResult.
34 */
35export function defineBenchTask(
36 meta: BenchTaskMeta,
37 fn: (ctx: BenchTaskContext) => Promise<void | TaskResult>,
38): TaskDefinition {
39 return {
40 __taskDefinition: true,
41 meta,
42 fn,
43 };
44}
45
46/**
47 * Generic defineTask — for cases where the tier is ambiguous at definition time.

Callers 15

defineTask.test.tsFile · 0.85
instructions.tsFile · 0.85
history.tsFile · 0.85
peeler_complex.tsFile · 0.85
allrecipes.tsFile · 0.85
arxiv.tsFile · 0.85
sciquest.tsFile · 0.85
wichita.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected