# frozen_string_literal: true

module OpenAI
  module Models
    module Responses
      class ResponseWebSearchCallSearchingEvent < OpenAI::Internal::Type::BaseModel
        # @!attribute item_id
        #   Unique ID for the output item associated with the web search call.
        #
        #   @return [String]
        required :item_id, String

        # @!attribute output_index
        #   The index of the output item that the web search call is associated with.
        #
        #   @return [Integer]
        required :output_index, Integer

        # @!attribute sequence_number
        #   The sequence number of the web search call being processed.
        #
        #   @return [Integer]
        required :sequence_number, Integer

        # @!attribute type
        #   The type of the event. Always `response.web_search_call.searching`.
        #
        #   @return [Symbol, :"response.web_search_call.searching"]
        required :type, const: :"response.web_search_call.searching"

        # @!method initialize(item_id:, output_index:, sequence_number:, type: :"response.web_search_call.searching")
        #   Some parameter documentations has been truncated, see
        #   {OpenAI::Models::Responses::ResponseWebSearchCallSearchingEvent} for more
        #   details.
        #
        #   Emitted when a web search call is executing.
        #
        #   @param item_id [String] Unique ID for the output item associated with the web search call.
        #
        #   @param output_index [Integer] The index of the output item that the web search call is associated with.
        #
        #   @param sequence_number [Integer] The sequence number of the web search call being processed.
        #
        #   @param type [Symbol, :"response.web_search_call.searching"] The type of the event. Always `response.web_search_call.searching`.
      end
    end
  end
end
