diff --git a/src/ChatSession.php b/src/ChatSession.php index 3ed100c..09ff8ec 100644 --- a/src/ChatSession.php +++ b/src/ChatSession.php @@ -26,6 +26,17 @@ public function sendMessage(string $text): string ->text(); } + /** + * @throws ClientExceptionInterface + */ + public function sendMessageStream( + string $text, + ): string { + return $this->chatSession + ->sendMessage(new TextPart($text)) + ->text(); + } + /** * @return array