Supported Types
ChatResult
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
sendChatCompletionRequestResponse := operations.CreateSendChatCompletionRequestResponseChatResult(components.ChatResult{/* values here */})
sendChatCompletionRequestResponse := operations.CreateSendChatCompletionRequestResponseEventStream(*stream.EventStream[components.ChatStreamingResponse]{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch sendChatCompletionRequestResponse.Type {
case operations.SendChatCompletionRequestResponseTypeChatResult:
// sendChatCompletionRequestResponse.ChatResult is populated
case operations.SendChatCompletionRequestResponseTypeEventStream:
// sendChatCompletionRequestResponse.EventStream is populated
}