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

Function createTimeoutBash

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

Source from the content-addressed store, hash-verified

157}
158
159function createTimeoutBash(bash: Bash, timeoutMs: number) {
160 return {
161 async exec(command: string) {
162 return withTimeout(bash.exec(command), timeoutMs, command);
163 },
164 fs: bash.fs,
165 };
166}
167
168function truncateOutput(output: string): string {
169 if (output.length <= MAX_OUTPUT_CHARS) return output;

Callers 1

runBashSqliteAgentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected