We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef97f01 commit 8e599d2Copy full SHA for 8e599d2
1 file changed
sdk/src/impl/agent-runtime.ts
@@ -1,4 +1,5 @@
1
import { trackEvent } from '@codebuff/common/analytics'
2
+import { success } from '@codebuff/common/util/error'
3
4
import {
5
fetchAgentFromDatabase,
@@ -15,7 +16,6 @@ import type {
15
16
export const CLI_AGENT_RUNTIME_IMPL: Omit<
17
AgentRuntimeDeps & AgentRuntimeScopedDeps,
18
| 'addAgentStep'
- | 'consumeCreditsWithFallback'
19
| 'promptAiSdkStream'
20
| 'promptAiSdk'
21
| 'promptAiSdkStructured'
@@ -35,7 +35,10 @@ export const CLI_AGENT_RUNTIME_IMPL: Omit<
35
// addAgentStep: AddAgentStepFn
36
37
// Billing
38
- // consumeCreditsWithFallback: ConsumeCreditsWithFallbackFn,
+ consumeCreditsWithFallback: async () =>
39
+ success({
40
+ chargedToOrganization: false,
41
+ }),
42
43
// LLM
44
// promptAiSdkStream: PromptAiSdkStreamFn,
0 commit comments