Skip to content

feat: add support for multiple tools in run_until_tool_used#345

Merged
brainlid merged 1 commit into
brainlid:mainfrom
tuist:feat/until-multiple-tools
Jul 28, 2025
Merged

feat: add support for multiple tools in run_until_tool_used#345
brainlid merged 1 commit into
brainlid:mainfrom
tuist:feat/until-multiple-tools

Conversation

@fortmarek

Copy link
Copy Markdown
Contributor

Hey 👋

First of all, thanks a lot for this repo ❤️

This PR adds support for adding multiple tools in LLMChain.run_until_tool_used in case you want to exit the loop early when either of multiple tools are called.

Our use-case specifically was that we wanted to delete some messages to keep the context window low when a specific tool was called – and then we continue with the execution until a tool signalizing a complete end of the chain is called.

Let me know if that's something you'd consider adding and if so, if you'd implement this differently. I'm new to using LangChain, so I wouldn't be surprised if there was a better way to go about this that I'm not aware of 😉

@brainlid

Copy link
Copy Markdown
Owner

This makes sense and I see the value of it. Thanks for the updated docs and tests!
❤️💛💙💜

@brainlid
brainlid merged commit dcac483 into brainlid:main Jul 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants