Supported Types
ChatToolChoiceNone
ChatToolChoiceAuto
ChatToolChoiceRequired
ChatNamedToolChoice
ChatServerToolChoice
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.
chatToolChoice := components.CreateChatToolChoiceChatToolChoiceNone(components.ChatToolChoiceNone{/* values here */})
chatToolChoice := components.CreateChatToolChoiceChatToolChoiceAuto(components.ChatToolChoiceAuto{/* values here */})
chatToolChoice := components.CreateChatToolChoiceChatToolChoiceRequired(components.ChatToolChoiceRequired{/* values here */})
chatToolChoice := components.CreateChatToolChoiceChatNamedToolChoice(components.ChatNamedToolChoice{/* values here */})
chatToolChoice := components.CreateChatToolChoiceChatServerToolChoice(components.ChatServerToolChoice{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch chatToolChoice.Type {
case components.ChatToolChoiceTypeChatToolChoiceNone:
// chatToolChoice.ChatToolChoiceNone is populated
case components.ChatToolChoiceTypeChatToolChoiceAuto:
// chatToolChoice.ChatToolChoiceAuto is populated
case components.ChatToolChoiceTypeChatToolChoiceRequired:
// chatToolChoice.ChatToolChoiceRequired is populated
case components.ChatToolChoiceTypeChatNamedToolChoice:
// chatToolChoice.ChatNamedToolChoice is populated
case components.ChatToolChoiceTypeChatServerToolChoice:
// chatToolChoice.ChatServerToolChoice is populated
}