The TaskForce Class

👥 The TaskForce Class

Manage a group of Agent objects for collaboration and complex workflows.

Key Attributes

  • agents: List of Agent objects in the task force

  • caching_dir: Directory to store cached responses

Key Methods

  • start_force(): Begin the task force's workflow

  • execute_agent(agent, prompt): Execute a specific agent's workflow

  • record_result(agent): Save the result of an agent's workflow

  • exit_force(): End the task force's workflow also delete the cache


Last updated