{"agent":"claude","input":"Make tool failures in this LangGraph agent predictable. Read pyproject.toml, uv.lock (langgraph and langgraph-prebuilt versions), every file under src/react_agent, tests/conftest.py, both test directories, the Makefile and .github/workflows first, and read the installed ToolNode source for what handle_tool_errors does by default. Reproduce three failures with a scripted fake model and no API key, and quote what each does today: the model sends arguments the search tool does not accept; the search raises a timeout or connection error; TAVILY_API_KEY is not set. Then pass ToolNode a handler function defined in src/react_agent/tools.py: for an argument error return the node's own message unchanged so the model can correct itself; for any error raised while searching return a ToolMessage text saying the search is unavailable, not to retry it in this turn, and to answer from what is known while saying so; for a missing key make search raise a named SearchNotConfiguredError and have the handler re-raise it so the run fails with a clear message. Do not use handle_tool_errors=True, and say in the pull request what message it would have produced. Add unit tests under tests/unit_tests for the three paths plus one where the model keeps calling the tool until the recursion limit, using stubs in place of TavilySearch and load_chat_model. Run uv sync --extra dev, ruff check ., mypy --strict src/ and pytest tests/unit_tests, do not run tests/integration_tests, paste the output in the pull request and open it.","resources":[{"url":"https://github.com/your-org/your-app"}]}