class_docstr: AutoGenWorkFlowManager class to load agents from a provided configuration and run a chat between them
docstr: Initializes the AutoGenFlow with agents specified in the config and optional
  message history.
  
  Args:
      config: The configuration settings for the sender and receiver agents.
      history: An optional list of previous messages to populate the agents' history.
docstr_tok: ["Initializes","the","AutoGenFlow","with","agents","specified","in","the","config","and","optional","message","history",".","Args",":","config",":","The","configuration","settings","for","the","sender","and","receiver","agents",".","history",":","An","optional","list","of","previous","messages","to","populate","the","agents","'","history","."]
code: def __init__(
      self,
      config: AgentWorkFlowConfig,
      history: Optional[List[Message]] = None,
      work_dir: str = None,
      clear_work_dir: bool = True,
  ) -> None:
      """
      Initializes the AutoGenFlow with agents specified in the config and optional
      message history.
  
      Args:
          config: The configuration settings for the sender and receiver agents.
          history: An optional list of previous messages to populate the agents' history.
  
      """
      self.work_dir = work_dir or "work_dir"
      if clear_work_dir:
          clear_folder(self.work_dir)
  
      self.sender = self.load(config.sender)
      self.receiver = self.load(config.receiver)
      self.agent_history = []
  
      if history:
          self.populate_history(history)
  
file_path: autogen/samples/apps/autogen-studio/autogenstudio/workflowmanager.py
imports: from typing import List, Optional
  from dataclasses import asdict
  import autogen
  from .datamodel import AgentFlowSpec, AgentWorkFlowConfig, Message
  from .utils import get_skills_from_prompt, clear_folder
  from datetime import datetime
label_desc: Use image node_id 1 to create a new AutoGenWorkFlowManager object  with example: obj = AutoGenWorkFlowManager(config, history, work_dir, clear_work_dir)