Represents the result of starting a chat, which can be either a text result or a textStream result.
This type is a union of ChatTextResult and ChatStreamResult.
It allows for flexibility in handling different types of chat responses.
if you use streamMethod as "text", it will return ChatTextResult.
If you use streamMethod as "stream", it will return ChatStreamResult.
Represents the result of starting a chat, which can be either a text result or a textStream result. This type is a union of ChatTextResult and ChatStreamResult. It allows for flexibility in handling different types of chat responses. if you use
streamMethodas "text", it will returnChatTextResult. If you usestreamMethodas "stream", it will returnChatStreamResult.