Supported Types
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.
chatRequestStop := components.CreateChatRequestStopStr(string{/* values here */})
chatRequestStop := components.CreateChatRequestStopArrayOfStr([]string{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch chatRequestStop.Type {
case components.ChatRequestStopTypeStr:
// chatRequestStop.Str is populated
case components.ChatRequestStopTypeArrayOfStr:
// chatRequestStop.ArrayOfStr is populated
}
Was this page helpful?