PrefectHQ / ControlFlow

🦾 Take control of your AI agents
https://controlflow.ai
Apache License 2.0
747 stars 53 forks source link

Add an `end_turn` field to tools #213

Open jlowin opened 4 months ago

jlowin commented 4 months ago

Enhancement Description

Generally, when an agent uses a tool we need to show it the result. However, for some tools we know the turn should end -- almost all builtin tools work this way (like marking a task successful). However, today they must issue the EndTurn event before the ToolResult event. By adding a flag to the tool, the tool call handler could emit the end turn event automatically.

Use Case

No response

Proposed Implementation

No response