@@ -148,7 +148,7 @@ public function testSourcesEndUpInResultMetadataWithSettingOn()
148148 ->method ('call ' )
149149 ->willReturn (new TextResult ('Final response based on the two articles. ' ));
150150
151- $ processor = new AgentProcessor ($ toolbox , keepToolSources : true );
151+ $ processor = new AgentProcessor ($ toolbox , includeSources : true );
152152 $ processor ->setAgent ($ agent );
153153
154154 $ output = new Output ('gpt-4 ' , $ result , $ messageBag );
@@ -181,7 +181,7 @@ public function testSourcesDoNotEndUpInResultMetadataWithSettingOff()
181181 ->method ('call ' )
182182 ->willReturn (new TextResult ('Final response based on the two articles. ' ));
183183
184- $ processor = new AgentProcessor ($ toolbox , keepToolSources : false );
184+ $ processor = new AgentProcessor ($ toolbox , includeSources : false );
185185 $ processor ->setAgent ($ agent );
186186
187187 $ output = new Output ('gpt-4 ' , $ result , $ messageBag );
@@ -220,7 +220,7 @@ public function testSourcesGetCollectedAcrossConsecutiveToolCalls()
220220 new DeferredResult (new PlainConverter (new TextResult ('Final response based on both articles. ' )), new InMemoryRawResult ())
221221 );
222222
223- $ processor = new AgentProcessor ($ toolbox , keepToolSources : true );
223+ $ processor = new AgentProcessor ($ toolbox , includeSources : true );
224224 $ agent = new Agent ($ platform , 'foo-bar ' , [$ processor ], [$ processor ]);
225225 $ processor ->setAgent ($ agent );
226226
0 commit comments