Langchain users see tool calls dropped from LLM responses
20 posts in the last 60 days, all from GitHub.
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x]…”
“Before Submitting [x] I searched open and closed issues and discussions for an existing report. [x] I reproduced this bug on the latest release AND on the current dev branch, right before submitting this report. I did not just check an old version or rely on a check from days…”
“Bug Description ag ui message to llama index message (utils.py) converts an AG UI assistant message with toolCalls into an assistant message whose content is”
Several users report issues with Langchain, specifically related to tool calls. Some users see tool calls dropped from LLM responses, others see tool parameters lose their types, and some see the system prompt growing with each run. These issues appear to stem from how Langchain handles tool interactions and message formatting.
SOURCES (20)
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is…”
“Before Submitting [x] I searched open and closed issues and discussions for an existing report. [x] I reproduced this bug on the latest release AND on the current dev branch, right before submitting this report. I did not just check an old version or rely on a check from days ago. I reproduced it on v0.13.4, the latest release. On dev I checked the code at f688ab2 , not a running instance. The code path below is unchanged there. [x] I understand that maintainers want a well written issue before”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“Before Submitting [x] I searched open and closed issues and discussions for an existing report. [ ] I reproduced this bug on the latest release AND on the current dev branch, right before submitting this report. I did not just check an old version or rely on a check from days ago. [x] I understand that maintainers want a well written issue before any code pull request. [x] This is not a security vulnerability. Installation Method Docker Open WebUI Version v0.13.3 (ghcr.io/open webui/open webui:c”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“Before Submitting [X] I searched open and closed issues and discussions for an existing report. [X] I reproduced this bug on the latest release AND on the current dev branch, right before submitting this report. I did not just check an old version or rely on a check from days ago. [X] I understand that maintainers want a well written issue before any code pull request. [X] This is not a security vulnerability. Installation Method Docker Open WebUI Version v0.13.3, and dev at 782f4b7 ( ghcr.io/op”
“Before Submitting [X] I searched open and closed issues and discussions for an existing report. [X] I reproduced this bug on the latest release AND on the current dev branch, right before submitting this report. I did not just check an old version or rely on a check from days ago. [X] I understand that maintainers want a well written issue before any code pull request. [X] This is not a security vulnerability. Installation Method Docker Open WebUI Version v0.13.3, and dev at 3f26c03 ( ghcr.io/op”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“Your current environment <details <summary Environment</summary collect env.py asserts Linux, so I couldn't run it here. The bug is in pure Python parsing code ( vllm/tool parsers/olmo3 tool parser.py ) and doesn't depend on hardware. </details 🐛 Describe the bug Olmo3PythonicToolParser.extract tool calls strips the wrapper tags with a non greedy regex: If a string argument contains </function calls , the match stops there. What's left isn't valid Python, so the parser returns the whole output”
“Bug Description ag ui message to llama index message (utils.py) converts an AG UI assistant message with toolCalls into an assistant message whose content is <tool call <name …</name <arguments …</arguments </tool call text, and a ToolMessage into a user message (the code calls this "an opinionated hack for now"). An OpenAI compatible request therefore never contains tool calls or role: "tool" for earlier turns. Models imitate the format they see in the history. After the first tool call of a co”
“Bug Description AG UI clients send app context in RunAgentInput.context (a list of {description, value} ). CopilotKit fills it from useAgentContext (formerly useCopilotReadable ), and it is the main way an app tells the agent what's on screen. The LlamaIndex AG UI workflow reads messages , state and tools but never context ; the package has no reference to it. Whatever the app sends there silently never reaches the LLM. Possible fix: render the context items into the system message after system”
“Bug Description Tools sent by the client in RunAgentInput.tools are rebuilt by ag ui tool to llama index (agent.py) as a pydantic model where every property is str (required) or Optional[str] , and only description is kept. enum , integer / number / boolean / object / array types, minimum / maximum , nested properties and items are all dropped before the schema reaches the LLM. The client (CopilotKit, for example) sends a correct JSON Schema; the LLM is told every argument is a free string. In p”
“Bug Description With get ag ui workflow router(..., system prompt=...) , the server's system prompt ends up in the client's thread and is added again on every run, so the prompt the LLM receives grows by one copy per run. AGUIChatWorkflow.chat inserts ChatMessage(role="system", content=system prompt) at the start of chat history . If the first message is already a system message, it appends TextBlock(system prompt) to it instead (agent.py, around line 238). snapshot messages then emits the whole”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
“Submission checklist [x] This is a bug, not a usage question. [x] I added a clear and descriptive title that summarizes this issue. [x] I used the GitHub search to find a similar question and didn't find it. [x] I am sure that this is a bug in LangChain rather than my code. [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). [x] This is not related to the langchain community package. [x] I posted a self contained, minimal, repr”
