PANE

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]…”
GitHub
“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…”
GitHub
“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”
GitHub

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.

aidevtoolslangchainllmtooling
FIT
0%
SIGNAL
67%
SOURCES20
FRESHEST POST8D AGO
TRACKED SINCE50D AGO

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…”

GITHUB8d ago

“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”

GITHUB12d ago

“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”

GITHUB15d ago

“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”

GITHUB16d ago

“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”

GITHUB19d ago

“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”

GITHUB19d ago

“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”

GITHUB22d ago

“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”

GITHUB22d ago

“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”

GITHUB26d ago

“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”

GITHUBOct 27

“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”

GITHUBOct 24

“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”

GITHUBOct 19

“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”

GITHUBOct 17

“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”

GITHUBOct 14

“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”

GITHUBOct 14

“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”

GITHUBOct 14

“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”

GITHUBOct 14

“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”

GITHUBOct 14

“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”

GITHUBOct 14

“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”

GITHUBOct 14

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.

Related panes

/ same corner of the problem

More ideas in AI & LLMs →