File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed
Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 11import { addAgentStep , finishAgentRun , startAgentRun } from '../agent-run'
2- import { promptAiSdkStream } from '../llm-apis/vercel-ai-sdk/ai-sdk'
32import { logger } from '../util/logger'
43
54import 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import type {
33 FinishAgentRunFn ,
44 StartAgentRunFn ,
55} from './database'
6- import type { PromptAiSdkStreamFn } from './llm'
76import type { Logger } from './logger'
87
98export type AgentRuntimeDeps = {
@@ -13,5 +12,5 @@ export type AgentRuntimeDeps = {
1312 finishAgentRun : FinishAgentRunFn
1413 addAgentStep : AddAgentStepFn
1514
16- promptAiSdkStream : PromptAiSdkStreamFn
15+ // promptAiSdkStream: PromptAiSdkStreamFn
1716}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments