Skip to content

Conversation

christian-bromann
Copy link
Member

Quick patch that documents that user can define tools in middleware as well as ModelRequest now takes a list of tool names instead of tool instances.

@Copilot Copilot AI review requested due to automatic review settings September 25, 2025 22:59
@github-actions github-actions bot added langchain For docs changes to LangChain oss labels Sep 25, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes documentation for LangChain middleware by updating the tool handling specification. The main change is that ModelRequest now expects a list of tool names (strings) instead of tool instances, and adds documentation about static properties that middleware can define.

Key changes:

  • Updates ModelRequest.tools type from list of BaseTool instances to list of strings (tool names)
  • Documents static properties (name, tools, state_schema, context_schema) that middleware can define
  • Updates all code examples to use tool names instead of tool objects

@eyurtsev eyurtsev self-assigned this Sep 26, 2025
Copy link

Preview ID generated: preview-cbtool-1759143368-5a7b798

@lnhsingh lnhsingh merged commit 810c68c into cb/dynamic-tools Sep 29, 2025
8 of 9 checks passed
@lnhsingh lnhsingh deleted the cb/tools-in-middleware branch September 29, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
langchain For docs changes to LangChain oss
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants