def __init__(
        self,
        client: Optional["WorkspaceClient"] = None,
        *,
        profile: Optional[str] = None,
        execution_mode: str = "serverless",
        **kwargs: Any,
    ) -> None:
        """
        Databricks UC function calling client.

        Args:
            client: The databricks workspace client. If it's None, a default databricks workspace client
                is generated based on the configuration. Defaults to None.
            profile: The configuration profile to use for databricks connect. Defaults to None.
            execution_mode: The execution mode of the client. Defaults to "serverless".
        """
        _warn_if_workspace_provided(**kwargs)
        self.client = client or get_default_databricks_workspace_client(profile=profile)
        self.profile = profile
        self.execution_mode = ExecutionModeDatabricks.validate(execution_mode)
        self.spark = None
        if self.execution_mode == ExecutionModeDatabricks.SERVERLESS:
            self.set_spark_session()
        self._is_default_client = client is None
        super().__init__()

        Databricks UC function calling client.

        Args:
            client: The databricks workspace client. If it's None, a default databricks workspace client
                is generated based on the configuration. Defaults to None.
            profile: The configuration profile to use for databricks connect. Defaults to None.
            execution_mode: The execution mode of the client. Defaults to "serverless".
        
ai/core/src/unitycatalog/ai/core/databricks.py