class Multiwoven::Integrations::Source::DatabricksModel::Client

def run_model(connection_config, payload)

def run_model(connection_config, payload)
  connection_config = connection_config.with_indifferent_access
  url = build_url(DATABRICKS_SERVING_URL, connection_config)
  token = connection_config[:token]
  response = send_request(url, token, payload)
  process_response(response)
rescue StandardError => e
  handle_exception(e, context: "DATABRICKS MODEL:RUN_MODEL:EXCEPTION", type: "error")
end