@@ -61,10 +61,7 @@ function* handleStepsSonnet({
6161> {
6262 const implementorAgent = 'best-of-n-implementor'
6363 const selectorAgent = 'best-of-n-selector'
64- const n = Math . min (
65- 10 ,
66- Math . max ( 1 , ( params ?. n as number | undefined ) ?? 5 ) ,
67- )
64+ const n = Math . min ( 10 , Math . max ( 1 , ( params ?. n as number | undefined ) ?? 5 ) )
6865
6966 // Remove userInstruction message for this agent.
7067 const messages = agentState . messageHistory . concat ( )
@@ -158,6 +155,7 @@ function* handleStepsSonnet({
158155 response : chosenImplementation . content ,
159156 toolResults : editToolResults ,
160157 } ,
158+ includeToolCall : false ,
161159 } satisfies ToolCall < 'set_output' >
162160
163161 function extractSpawnResults < T > (
@@ -189,10 +187,7 @@ function* handleStepsGpt5({
189187> {
190188 const implementorAgent = 'best-of-n-implementor-gpt-5'
191189 const selectorAgent = 'best-of-n-selector-gpt-5'
192- const n = Math . min (
193- 10 ,
194- Math . max ( 1 , ( params ?. n as number | undefined ) ?? 5 ) ,
195- )
190+ const n = Math . min ( 10 , Math . max ( 1 , ( params ?. n as number | undefined ) ?? 5 ) )
196191
197192 // Remove userInstruction message for this agent.
198193 const messages = agentState . messageHistory . concat ( )
0 commit comments