PrefectHQ/ControlFlow

Allow the ability to customize which tools a task generates

Closed this issue · 0 comments

Enhancement Description

Currently tasks generate succeed/fail tools for all agents (or all completion agents). In some cases, it may be advantageous to only generate a success tool, or no tools!

For example:

  • showing agents a failure case may result in worse performance
  • you want to manually give tools to agents e.g. by calling create_success_tool() yourself, so you want to disable automatic tool generation completely

CF should:

  • make each task's tool generation behavior configurable
  • allow setting this at the flow level
  • allow setting this globally

Use Case

No response

Proposed Implementation

cf.Task(..., completion_tools=['succeed', 'fail'])