def __init__(self, agents: list[Any], tasks: list[Task] | None = None, llm_model: str | None = None, response_format: Any = None, model: ModelNames | None = None):
        """
        Initialize the Team with agents and optionally tasks.
        
        Args:
            agents: List of agent configurations to use
            tasks: List of tasks to execute (optional)
            llm_model: The LLM model to use (optional)
            response_format: The response format for the end task (optional)
        """
        self.agents = agents
        self.tasks = tasks if isinstance(tasks, list) else [tasks] if tasks is not None else []
        self.llm_model = llm_model
        self.response_format = response_format
        self.model = model

        Initialize the Team with agents and optionally tasks.
        
        Args:
            agents: List of agent configurations to use
            tasks: List of tasks to execute (optional)
            llm_model: The LLM model to use (optional)
            response_format: The response format for the end task (optional)
        
src/upsonic/client/team/team.py