Skip to content

Commit 0483ec9

Browse files
authored
Add info for LLM Tool Selector (#1401)
1 parent 7e2e0b1 commit 0483ec9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/oss/langchain/middleware/built-in.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,8 @@ Use an LLM to intelligently select relevant tools before calling the main model.
10691069
- Reducing token usage by filtering irrelevant tools.
10701070
- Improving model focus and accuracy.
10711071

1072+
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.
1073+
10721074
:::python
10731075
**API reference:** @[`LLMToolSelectorMiddleware`]
10741076

0 commit comments

Comments
 (0)