lib/boxcars/boxcar.rb in boxcars-0.2.15 vs lib/boxcars/boxcar.rb in boxcars-0.2.16

- old
+ new

@@ -37,11 +37,11 @@ # check that all outputs are present # @param outputs [Array<String>] The output keys. # @raise [RuntimeError] If the outputs are not the same. def validate_outputs(outputs:) - return if outputs.sort == output_keys.sort + return if (outputs - output_keys - ['log']).empty? raise "Did not get output keys that were expected, got: #{outputs}. Expected: #{output_keys}" end # Run the logic of this chain and return the output. @@ -151,10 +151,12 @@ require "boxcars/result" require "boxcars/boxcar/engine_boxcar" require "boxcars/boxcar/calculator" require "boxcars/boxcar/google_search" require "boxcars/boxcar/wikipedia_search" -require "boxcars/boxcar/sql" +require "boxcars/boxcar/sql_base" +require "boxcars/boxcar/sql_active_record" +require "boxcars/boxcar/sql_sequel" require "boxcars/boxcar/swagger" require "boxcars/boxcar/active_record" require "boxcars/vector_store" require "boxcars/vector_search" require "boxcars/boxcar/vector_answer"