Skip to content

Commit 8bd48b7

Browse files
committed
remove promptAiSdkStream from AgentRuntimeDeps
1 parent 938df5d commit 8bd48b7

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

backend/src/impl/agent-runtime.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { addAgentStep, finishAgentRun, startAgentRun } from '../agent-run'
2-
import { promptAiSdkStream } from '../llm-apis/vercel-ai-sdk/ai-sdk'
32
import { logger } from '../util/logger'
43

54
import type { AgentRuntimeDeps } from '@codebuff/common/types/contracts/agent-runtime'
@@ -10,5 +9,5 @@ export const backendAgentRuntimeImpl: AgentRuntimeDeps = {
109
startAgentRun,
1110
finishAgentRun,
1211
addAgentStep,
13-
promptAiSdkStream,
12+
// promptAiSdkStream,
1413
}

common/src/testing/impl/agent-runtime.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const testAgentRuntimeImpl: AgentRuntimeDeps = {
1414
startAgentRun: async () => 'test-agent-run-id',
1515
finishAgentRun: async () => {},
1616
addAgentStep: async () => 'test-agent-step-id',
17-
promptAiSdkStream: async function* () {
18-
throw new Error('promptAiSdkStream not implemented in test runtime')
19-
},
17+
// promptAiSdkStream: async function* () {
18+
// throw new Error('promptAiSdkStream not implemented in test runtime')
19+
// },
2020
}

common/src/types/contracts/agent-runtime.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type {
33
FinishAgentRunFn,
44
StartAgentRunFn,
55
} from './database'
6-
import type { PromptAiSdkStreamFn } from './llm'
76
import type { Logger } from './logger'
87

98
export type AgentRuntimeDeps = {
@@ -13,5 +12,5 @@ export type AgentRuntimeDeps = {
1312
finishAgentRun: FinishAgentRunFn
1413
addAgentStep: AddAgentStepFn
1514

16-
promptAiSdkStream: PromptAiSdkStreamFn
15+
// promptAiSdkStream: PromptAiSdkStreamFn
1716
}

evals/impl/agent-runtime.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const evalAgentRuntimeImpl: AgentRuntimeDeps = {
66
startAgentRun: async () => 'test-agent-run-id',
77
finishAgentRun: async () => {},
88
addAgentStep: async () => 'test-agent-step-id',
9-
promptAiSdkStream: async function* () {
10-
throw new Error('promptAiSdkStream not implemented in eval runtime')
11-
},
9+
// promptAiSdkStream: async function* () {
10+
// throw new Error('promptAiSdkStream not implemented in eval runtime')
11+
// },
1212
}

0 commit comments

Comments
 (0)