lib/anthropic/models/beta/messages/batch_list_params.rb



# frozen_string_literal: true

module Anthropic
  module Models
    module Beta
      module Messages
        # @see Anthropic::Resources::Beta::Messages::Batches#list
        class BatchListParams < Anthropic::Internal::Type::BaseModel
          # @!parse
          #   extend Anthropic::Internal::Type::RequestParameters::Converter
          include Anthropic::Internal::Type::RequestParameters

          # @!attribute [r] after_id
          #   ID of the object to use as a cursor for pagination. When provided, returns the
          #   page of results immediately after this object.
          #
          #   @return [String, nil]
          optional :after_id, String

          # @!parse
          #   # @return [String]
          #   attr_writer :after_id

          # @!attribute [r] before_id
          #   ID of the object to use as a cursor for pagination. When provided, returns the
          #   page of results immediately before this object.
          #
          #   @return [String, nil]
          optional :before_id, String

          # @!parse
          #   # @return [String]
          #   attr_writer :before_id

          # @!attribute [r] limit
          #   Number of items to return per page.
          #
          #   Defaults to `20`. Ranges from `1` to `1000`.
          #
          #   @return [Integer, nil]
          optional :limit, Integer

          # @!parse
          #   # @return [Integer]
          #   attr_writer :limit

          # @!attribute [r] betas
          #   Optional header to specify the beta version(s) you want to use.
          #
          #   @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
          optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Models::AnthropicBeta] }

          # @!parse
          #   # @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>]
          #   attr_writer :betas

          # @!parse
          #   # @param after_id [String]
          #   # @param before_id [String]
          #   # @param limit [Integer]
          #   # @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>]
          #   # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
          #   #
          #   def initialize(after_id: nil, before_id: nil, limit: nil, betas: nil, request_options: {}, **) = super

          # def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
        end
      end
    end
  end
end