@@ -30,7 +30,7 @@ import type { ParamsExcluding } from '@codebuff/common/types/function-params'
3030let agentRuntimeImpl : AgentRuntimeDeps & AgentRuntimeScopedDeps
3131let runAgentStepBaseParams : ParamsExcluding <
3232 typeof runAgentStep ,
33- 'fileContext' | 'localAgentTemplates' | 'agentState' | 'prompt'
33+ 'fileContext' | 'localAgentTemplates' | 'agentState' | 'prompt' | 'agentTemplate'
3434>
3535
3636import type { StreamChunk } from '@codebuff/common/types/contracts/llm'
@@ -126,6 +126,7 @@ describe('read_docs tool with researcher agent (via web API facade)', () => {
126126 ...runAgentStepBaseParams ,
127127 fileContext : mockFileContextWithAgents ,
128128 localAgentTemplates : agentTemplates ,
129+ agentTemplate : agentTemplates [ 'researcher' ] ,
129130 agentState,
130131 prompt : 'Get React documentation' ,
131132 } )
@@ -173,6 +174,7 @@ describe('read_docs tool with researcher agent (via web API facade)', () => {
173174 ...runAgentStepBaseParams ,
174175 fileContext : mockFileContextWithAgents ,
175176 localAgentTemplates : agentTemplates ,
177+ agentTemplate : agentTemplates [ 'researcher' ] ,
176178 agentState,
177179 prompt : 'Get React hooks documentation' ,
178180 } )
@@ -212,6 +214,7 @@ describe('read_docs tool with researcher agent (via web API facade)', () => {
212214 ...runAgentStepBaseParams ,
213215 fileContext : mockFileContextWithAgents ,
214216 localAgentTemplates : agentTemplates ,
217+ agentTemplate : agentTemplates [ 'researcher' ] ,
215218 agentState,
216219 prompt : 'Get documentation for NonExistentLibrary' ,
217220 } )
@@ -251,6 +254,7 @@ describe('read_docs tool with researcher agent (via web API facade)', () => {
251254 ...runAgentStepBaseParams ,
252255 fileContext : mockFileContextWithAgents ,
253256 localAgentTemplates : agentTemplates ,
257+ agentTemplate : agentTemplates [ 'researcher' ] ,
254258 agentState,
255259 prompt : 'Get React documentation' ,
256260 } )
@@ -289,6 +293,7 @@ describe('read_docs tool with researcher agent (via web API facade)', () => {
289293 ...runAgentStepBaseParams ,
290294 fileContext : mockFileContextWithAgents ,
291295 localAgentTemplates : agentTemplates ,
296+ agentTemplate : agentTemplates [ 'researcher' ] ,
292297 agentState,
293298 prompt : 'Get React server components documentation' ,
294299 } )
@@ -329,6 +334,7 @@ describe('read_docs tool with researcher agent (via web API facade)', () => {
329334 ...runAgentStepBaseParams ,
330335 fileContext : mockFileContextWithAgents ,
331336 localAgentTemplates : agentTemplates ,
337+ agentTemplate : agentTemplates [ 'researcher' ] ,
332338 agentState,
333339 prompt : 'Get React documentation' ,
334340 } )
@@ -374,6 +380,7 @@ describe('read_docs tool with researcher agent (via web API facade)', () => {
374380 ...runAgentStepBaseParams ,
375381 fileContext : mockFileContextWithAgents ,
376382 localAgentTemplates : agentTemplates ,
383+ agentTemplate : agentTemplates [ 'researcher' ] ,
377384 agentState,
378385 prompt : 'Get React documentation' ,
379386 } )
0 commit comments