Skip to content

Commit c2e0387

Browse files
committed
Rename hasResponse of ToolCallsExecuted event to hasResult
1 parent 4b22015 commit c2e0387

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/agent/src/Toolbox/AgentProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/agent/src/Toolbox/Event/ToolCallsExecuted.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)