PrefectHQ / ControlFlow

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

Handle long tool descriptions #237

Closed jlowin closed 2 months ago

jlowin commented 2 months ago

OpenAI has started erroring if a tool description exceeds 1024 characters, which the talk_to_user tool does. This PR adds functionality to add long tool instructions to the system prompt, and also raises an error if a tool description exceeds the limit.