def update_session_var(
        self,
        variables: Dict[str, str],
    ):
        """
        Update the session variables.
        :param variables: The variables to update.
        """
        assert self.config.num_code_interpreters > 0, "No code_interpreter role is provided."
        self.session_var.update(variables)
        # get the alias of the code_interpreter
        code_interpreter_role_name = [w for w in self.config.roles if w.startswith("code_interpreter")][0]
        code_interpreter_role_entry = self.role_registry.get(code_interpreter_role_name)
        code_interpreter_instance = self.worker_instances[code_interpreter_role_entry.alias]
        code_interpreter_instance.update_session_variables(variables)
        self.logger.info(f"Update session variables: {variables} for {code_interpreter_instance.get_alias()}")

        Update the session variables.
        :param variables: The variables to update.
        
taskweaver/session/session.py