MCPcopy Create free account
hub / github.com/braintrustdata/bash-agent-evals / createTask

Function createTask

evals/shared.ts:130–132  ·  view source on GitHub ↗
(agentFn: (q: string, cb: undefined, model: ModelId) => Promise<{ answer: string }>)

Source from the content-addressed store, hash-verified

128// Legacy: Helper to create task with model (direct call, no worker)
129export const createTask =
130 (agentFn: (q: string, cb: undefined, model: ModelId) => Promise<{ answer: string }>) =>
131 async (input: string) =>
132 (await agentFn(input, undefined, model)).answer;
133
134// Shared eval configuration
135export const MAX_CONCURRENCY = 5;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected