Constructs an instance of WatsonxBaseService with passed in options and external configuration.
Optional options: UserOptions & WatsonXAI.Certificates & WatsonXAI.TokenAuthenticationOptions = {}The parameters to send to the service.
Optional projectURL required for watsonx inference endpoints
Optional spaceThe version date for the API of the form YYYY-MM-DD.
URL required for dataplatform endpoints
Static PLATFORM_Private resolvePrivate Resolves projectId and spaceId with fallback to instance values.
This method implements a priority-based resolution strategy:
This ensures that explicitly passed parameters always override instance configuration when both are present, preventing unintended mixing of project and space contexts.
Object containing optional projectId and spaceId
Optional projectThe project ID to use for the request
Optional spaceThe space ID to use for the request
Resolved projectId and spaceId values
Optional projectOptional space
WatsonxBaseService class extends BaseService and provides common functionalities for Watsonx services.