{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# How to handle tool calling errors\n", "\n", "LLMs aren't perfect at calling tools. The model may try to call a tool that doesn't exist or fail to return arguments that match the requested schema. Strategies like keeping schemas simple, reducing the number of tools you pass at once, and having good names and descriptions can help mitigate this risk, but aren't foolproof.\n", "\n", "This guide covers some ways to build error handling into your graphs to mitigate these failure modes.\n", "\n", "
Compatibility
\n", "\n",
" This guide requires @langchain/langgraph>=0.0.28
, @langchain/anthropic>=0.2.6
, and @langchain/core>=0.2.17
. For help upgrading, see this guide.\n",
"