[GH-ISSUE #5542] [FEAT]: Enable tool selection in LLM block for Agent Flows #5160

Open
opened 2026-06-05 14:52:22 -04:00 by yindo · 3 comments
Owner

Originally created by @Fahube on GitHub (Apr 27, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5542

What would you like to see?

Problem/Use Case

Currently, when building Agent Flows, there is no way to use existing tools directly within the LLM block.

Proposed Solution

Add an option in the LLM block of the Agent Flow, to specify which tool should be available to the LLM during that step.

Benefits

  • Reduces duplication by using tools that already exist.
  • Improve the speed of development of the Agent Flow.
Originally created by @Fahube on GitHub (Apr 27, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5542 ### What would you like to see? ### Problem/Use Case Currently, when building Agent Flows, there is no way to use existing tools directly within the LLM block. ### Proposed Solution Add an option in the LLM block of the Agent Flow, to specify which tool should be available to the LLM during that step. ### Benefits - Reduces duplication by using tools that already exist. - Improve the speed of development of the Agent Flow.
yindo added the enhancementfeature request labels 2026-06-05 14:52:22 -04:00
Author
Owner

@timothycarambat commented on GitHub (Apr 28, 2026):

For a tool, do you mean a built in agent skill or another flow?

<!-- gh-comment-id:4337407366 --> @timothycarambat commented on GitHub (Apr 28, 2026): For a tool, do you mean a built in agent skill or another flow?
Author
Owner

@Fahube commented on GitHub (Apr 29, 2026):

To illustrate my point, I will give you an example of an application.

Suppose I create an Agent Flow using the builder tool. At one step in the flow, I use the LLM Instruction block. At this stage, I would like the LLM to generate a PDF file. To do this, I want to use the Document Creation tool. Therefore, I would like to specify that the model can use the Document Creation tool inside this LLM Instruction block. To avoid any unexpected behaviour, I also want to disable any other tools that I don't need at this stage of the flow.

Please tell me if my description is still unclear.

<!-- gh-comment-id:4342486759 --> @Fahube commented on GitHub (Apr 29, 2026): To illustrate my point, I will give you an example of an application. Suppose I create an Agent Flow using the builder tool. At one step in the flow, I use the LLM Instruction block. At this stage, I would like the LLM to generate a PDF file. To do this, I want to use the Document Creation tool. Therefore, I would like to specify that the model can use the Document Creation tool inside this LLM Instruction block. To avoid any unexpected behaviour, I also want to disable any other tools that I don't need at this stage of the flow. Please tell me if my description is still unclear.
Author
Owner

@timothycarambat commented on GitHub (Apr 29, 2026):

@Fahube 100% clear on this now - thanks for that. Great idea that frankly, shouldve been done a long time ago but fortunately this is near a good time as we have been massively overhauling our tool-calling code

<!-- gh-comment-id:4348203476 --> @timothycarambat commented on GitHub (Apr 29, 2026): @Fahube 100% clear on this now - thanks for that. Great idea that frankly, shouldve been done a long time ago but fortunately this is near a good time as we have been massively overhauling our tool-calling code
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5160