IBM watsonx.ai rerank wrapper.
Extract params.
Normalize deprecated 'apikey' to 'api_key'.
Resolve watsonx credentials.
Return default factory that yields a SecretStr from the first non-empty env var.
The factory:
names_priority).deprecated.Validate that scope (project_id or space_id) is provided when using model_id.