def set_adapter_variables(name:, variables: nil)
      return unless variables

      case variables
      when Hash
        set_adapter_variables_by_hash(name: name, variables: variables)
      when String
        set_adapter_variables(name: name, variables: yaml_content(variables))
      else
        raise "Unknown variables type #{variables.class}"
      end
    rescue StandardError => e
      raise ::Knowledge::LearnError, e.message
    end
def set_adapter_variables(name:, variables: nil)
      return unless variables

      case variables
      when Hash
        set_adapter_variables_by_hash(name: name, variables: variables)
      when String
        set_adapter_variables(name: name, variables: yaml_content(variables))
      else
        raise "Unknown variables type #{variables.class}"
      end
    rescue StandardError => e
      raise ::Knowledge::LearnError, e.message
    end
Sets variables for a given adapter.

 === Usage

 @example:
   learner = Knowledge::Learner.new

   learner.set_adapter_variables(name: :default, variables: { foo: :bar })

 === Parameters

 @param :name [String | Symbol]
 @param :variables [Hash | nil]