lib/anthropic/models/tool_choice_any.rb (8 lines of code) (raw):
# frozen_string_literal: true
module Anthropic
module Models
class ToolChoiceAny < Anthropic::Internal::Type::BaseModel
# @!attribute type
#
# @return [Symbol, :any]
required :type, const: :any
# @!attribute [r] disable_parallel_tool_use
# Whether to disable parallel tool use.
#
# Defaults to `false`. If set to `true`, the model will output exactly one tool
# use.
#
# @return [Boolean, nil]
optional :disable_parallel_tool_use, Anthropic::Internal::Type::Boolean
# @!parse
# # @return [Boolean]
# attr_writer :disable_parallel_tool_use
# @!parse
# # The model will use any available tools.
# #
# # @param disable_parallel_tool_use [Boolean]
# # @param type [Symbol, :any]
# #
# def initialize(disable_parallel_tool_use: nil, type: :any, **) = super
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
end
end
end