Receive AI responses in real-time chunks rather than waiting for the complete response, improving user experience for long interactions.
respondStreamed
method:
StreamedAssistantMessage
chunks as shown in the examples above. Tool calls are processed automatically by LarAgent.
streamResponse
method that returns a Laravel StreamedResponse
, making it easy to integrate with your controllers:
streamResponse
method supports three formats: