class_docstr: This class manages the server session
class_docstr_tok: ["This","class","manages","the","server","session"]
docstr: Initialize the session
docstr_tok: ["Initialize","the","session"]
code: def __init__(self) -> object:
      """
      Initialize the session
      """
  
      self.username = None
      self.auth = False
      self.logging = logger
      self.database = None
  
      self.config = Config()
  
      self.model_controller = ModelController()
      self.integration_controller = integration_controller
      self.database_controller = DatabaseController()
      self.skills_controller = SkillsController()
      self.agents_controller = AgentsController()
  
      # to prevent circular imports
      from mindsdb.interfaces.knowledge_base.controller import (
          KnowledgeBaseController,
      )
  
      self.kb_controller = KnowledgeBaseController(self)
  
      self.datahub = init_datahub(self)
  
      self.prepared_stmts = {}
      self.packet_sequence_number = 0
      self.profiling = False
      self.predictor_cache = True
  
imports: import os
  from uuid import uuid4
  import requests
  from mindsdb.api.executor.datahub.datahub import init_datahub
  from mindsdb.utilities.config import Config
  from mindsdb.interfaces.agents.agents_controller import AgentsController
  from mindsdb.interfaces.model.model_controller import ModelController
  from mindsdb.interfaces.database.database import DatabaseController
  from mindsdb.interfaces.database.integrations import integration_controller
  from mindsdb.interfaces.skills.skills_controller import SkillsController
  from mindsdb.utilities import log
label_desc: Use image node_id 1 to create a new SessionController object  with example: obj = SessionController()