2.11.6
Reporting STOP_REASON from the LLM response via the AssistantMessage.
You can now get this information with a dedicated method:
$response = MyAgent::make()->chat(...);
$reson = $response->stopReason();Reporting STOP_REASON from the LLM response via the AssistantMessage.
You can now get this information with a dedicated method:
$response = MyAgent::make()->chat(...);
$reson = $response->stopReason();