struct OpenAI::ToolChoice inherits Struct # Defines a tool that can be used in an API response Included modules JSON::Serializable Constructors# .new(type : ToolType, function : FunctionDefinition | Nil = nil)# View source .new(pull : JSON::PullParser)# View source Methods# #clone# View source #copy_with(type _type = @type, function _function = @function)# View source #function : FunctionDefinition | ::Nil# #type : ToolType#