self.new

in rbi/lib/openai/models/batch.rbi [149:198]


      def self.new(
        id:,
        completion_window:,
        created_at:,
        endpoint:,
        input_file_id:,
        status:,
        cancelled_at: nil,
        cancelling_at: nil,
        completed_at: nil,
        error_file_id: nil,
        errors: nil,
        expired_at: nil,
        expires_at: nil,
        failed_at: nil,
        finalizing_at: nil,
        in_progress_at: nil,
        metadata: nil,
        output_file_id: nil,
        request_counts: nil,
        object: :batch
      ); end
      sig do
        override
          .returns(
            {
              id: String,
              completion_window: String,
              created_at: Integer,
              endpoint: String,
              input_file_id: String,
              object: Symbol,
              status: OpenAI::Models::Batch::Status::TaggedSymbol,
              cancelled_at: Integer,
              cancelling_at: Integer,
              completed_at: Integer,
              error_file_id: String,
              errors: OpenAI::Models::Batch::Errors,
              expired_at: Integer,
              expires_at: Integer,
              failed_at: Integer,
              finalizing_at: Integer,
              in_progress_at: Integer,
              metadata: T.nilable(T::Hash[Symbol, String]),
              output_file_id: String,
              request_counts: OpenAI::Models::BatchRequestCounts
            }
          )
      end