project_id="*****",
                params=parameters,
            )
    """
    model_id: str = ""
    """Type of model to use."""
    project_id: str = ""
    """ID of the Watson Studio project."""
    space_id: str = ""
    """ID of the Watson Studio space."""
    url: Optional[SecretStr] = None
    """Url to Watson Machine Learning instance"""
    apikey: Optional[SecretStr] = None
    """Apikey to Watson Machine Learning instance"""
    token: Optional[SecretStr] = None
    """Token to Watson Machine Learning instance"""
    password: Optional[SecretStr] = None
    """Password to Watson Machine Learning instance"""
    username: Optional[SecretStr] = None
    """Username to Watson Machine Learning instance"""
    instance_id: Optional[SecretStr] = None
    """Instance_id of Watson Machine Learning instance"""
    version: Optional[SecretStr] = None
    """Version of Watson Machine Learning instance"""
    params: Optional[dict] = None
    """Model parameters to use during generate requests."""
    verify: Union[str, bool] = ""
    """User can pass as verify one of following:
        the path to a CA_BUNDLE file
        the path of directory with certificates of trusted CAs
        True - default path to truststore will be taken
        False - no verification will be made"""
    streaming: bool = False
    """ Whether to stream the results or not. """
    watsonx_model: Any
    class Config:
        """Configuration for this pydantic object."""
        extra = Extra.forbid
[docs]    @classmethod
    def is_lc_serializable(cls) -> bool:
        return False
    @property