Skip to content

Flow Control and Errors

David-Andrew Samson edited this page May 10, 2023 · 3 revisions

(TODO) react loop has 2 error mechanisms:

  • throwing an exception in your tool, which the react loop catches, and shows to the agent, and then the agent can continue the loop
  • using this dependency injected flow control which exits the whole loop by raising failed task

flow mechanisms:

  • dependency injection for breaking out of the loop (on tool success)

Clone this wiki locally