We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 242eaa9 commit 40c89cbCopy full SHA for 40c89cb
evals/impl/agent-runtime.ts
@@ -1,3 +1,5 @@
1
+import { success } from '@codebuff/common/util/error'
2
+
3
import type { AgentTemplate } from '@codebuff/common/types/agent-template'
4
import type { AgentRuntimeDeps } from '@codebuff/common/types/contracts/agent-runtime'
5
@@ -13,6 +15,13 @@ export const EVALS_AGENT_RUNTIME_IMPL = Object.freeze<AgentRuntimeDeps>({
13
15
finishAgentRun: async () => {},
14
16
addAgentStep: async () => 'test-agent-step-id',
17
18
+ // Backend
19
+ consumeCreditsWithFallback: async () => {
20
+ return success({
21
+ chargedToOrganization: false,
22
+ })
23
+ },
24
25
// LLM
26
promptAiSdkStream: async function* () {
27
throw new Error('promptAiSdkStream not implemented in eval runtime')
0 commit comments