Agentic RAG tool_calling issue: Groq + LangChain agent fails with tool_use_failed when calling custom tool (Llama 3.3)
I'm building a Streamlit app using LangChain (latest), LangGraph, and Groq with the model: llama-3.3-70b-versatile I'm using the modern create_agent() API (LangGraph-backed). The agent has two tools: search_pdf (custom tool using a Chroma retriever) web_search (DuckDuckGo tool) The agent correctly chooses the appropriate tool based on the query. However, when it tries to call searchdatasheetget the following error from Groq: groq.BadRequestError: Error code: 400 - {'error': {'message': "Failed to call a function. Please adjust your prompt. See 'failed_generation' for more details.", 'type': 'i
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.