File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ private function handleToolCallsCallback(Output $output): \Closure
106106 $ event = new ToolCallsExecuted (...$ results );
107107 $ this ->eventDispatcher ?->dispatch($ event );
108108
109- $ result = $ event ->hasResponse () ? $ event ->getResult () : $ this ->agent ->call ($ messages , $ output ->getOptions ());
109+ $ result = $ event ->hasResult () ? $ event ->getResult () : $ this ->agent ->call ($ messages , $ output ->getOptions ());
110110 } while ($ result instanceof ToolCallResult);
111111
112112 return $ result ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function __construct(ToolResult ...$toolResults)
3030 $ this ->toolResults = $ toolResults ;
3131 }
3232
33- public function hasResponse (): bool
33+ public function hasResult (): bool
3434 {
3535 return isset ($ this ->result );
3636 }
You can’t perform that action at this time.
0 commit comments