Skip to content

Commit

Permalink
Adding message about infinite tool calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ajosh0504 committed Nov 26, 2024
1 parent d70999f commit dca175c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/60-create-agent/6-build-and-execute-graph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,8 @@ graph.add_conditional_edges(
)
```
</div>
</details>
</details>

:::caution
Upon executing the graph, if you see the agent get stuck in an infinite tool-calling loop, play around with the prompt in Step 7 and run the cells that follow until you initialize the `llm_with_tools` variable. If this doesn't work, consider this a lesson in working with non-deterministic ML models. 🙂
:::

0 comments on commit dca175c

Please sign in to comment.