From 52b8dc3cc8ec0e254a37bc7ce7d11d1fa456545a Mon Sep 17 00:00:00 2001 From: Lauren Hirata Singh Date: Thu, 13 Nov 2025 11:58:37 -0500 Subject: [PATCH] Add info for LLM Tool Selector Added explanation of middleware functionality and structured output for tool selection. --- src/oss/langchain/middleware/built-in.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/oss/langchain/middleware/built-in.mdx b/src/oss/langchain/middleware/built-in.mdx index 28f147fbc7..f08acb05f7 100644 --- a/src/oss/langchain/middleware/built-in.mdx +++ b/src/oss/langchain/middleware/built-in.mdx @@ -1069,6 +1069,8 @@ Use an LLM to intelligently select relevant tools before calling the main model. - Reducing token usage by filtering irrelevant tools. - Improving model focus and accuracy. +This middleware uses structured output to ask an LLM which tools are most relevant for the current query. The structured output schema defines the available tool names and descriptions. Model providers often add this structured output information to the system prompt behind the scenes. + :::python **API reference:** @[`LLMToolSelectorMiddleware`]