Skip to content

Commit 40c89cb

Browse files
committed
fix typecheck for evals
1 parent 242eaa9 commit 40c89cb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

evals/impl/agent-runtime.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { success } from '@codebuff/common/util/error'
2+
13
import type { AgentTemplate } from '@codebuff/common/types/agent-template'
24
import type { AgentRuntimeDeps } from '@codebuff/common/types/contracts/agent-runtime'
35

@@ -13,6 +15,13 @@ export const EVALS_AGENT_RUNTIME_IMPL = Object.freeze<AgentRuntimeDeps>({
1315
finishAgentRun: async () => {},
1416
addAgentStep: async () => 'test-agent-step-id',
1517

18+
// Backend
19+
consumeCreditsWithFallback: async () => {
20+
return success({
21+
chargedToOrganization: false,
22+
})
23+
},
24+
1625
// LLM
1726
promptAiSdkStream: async function* () {
1827
throw new Error('promptAiSdkStream not implemented in eval runtime')

0 commit comments

Comments
 (0)