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

Method constructor

src/agents/bash-agent.ts:55–60  ·  view source on GitHub ↗
(command: string, timeoutMs: number)

Source from the content-addressed store, hash-verified

53
54class TimeoutError extends Error {
55 constructor(command: string, timeoutMs: number) {
56 super(
57 `Command timed out after ${timeoutMs / 1000}s: ${command.slice(0, 100)}${command.length > 100 ? '...' : ''}`,
58 );
59 this.name = 'TimeoutError';
60 }
61}
62
63// Wrapper that adds timeout to bash commands

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected