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

Function createTimeoutBash

src/agents/bash-agent.ts:83–90  ·  view source on GitHub ↗
(bash: Bash, timeoutMs: number)

Source from the content-addressed store, hash-verified

81
82// Wrapper that adds timeout to just-bash exec calls
83function createTimeoutBash(bash: Bash, timeoutMs: number) {
84 return {
85 async exec(command: string) {
86 return withTimeout(bash.exec(command), timeoutMs, command);
87 },
88 fs: bash.fs,
89 };
90}
91
92function truncateOutput(output: string): string {
93 if (output.length <= MAX_OUTPUT_CHARS) return output;

Callers 1

runBashAgentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected