Skip to content

Commit c639b7b

Browse files
authored
docs: Add typing import for CustomMiddleware (#1298)
## Overview It might be better to add the missing import, since it’s not as commonly imported as create_agent. ## Type of change **Type:** [Update existing documentation] ## Related issues/PRs <!-- Link to related issues, feature PRs, or discussions (if applicable) To automatically close an issue when this PR is merged, use closing keywords: - "closes #123" or "fixes #123" or "resolves #123" For regular references without auto-closing, just use: - "#123" or "See issue #123" Examples: - closes #456 (will auto-close issue #456 when PR is merged) - See #789 for context (will reference but not auto-close issue #789) --> - GitHub issue: - Feature PR: <!-- For LangChain employees, if applicable: --> - Linear issue: - Slack thread: ## Checklist <!-- Put an 'x' in all boxes that apply --> - [x] I have read the [contributing guidelines](README.md) - [x] I have tested my changes locally using `docs dev` - [x] All code examples have been tested and work correctly - [x] I have used **root relative** paths for internal links - [x] I have updated navigation in `src/docs.json` if needed - I have gotten approval from the relevant reviewers - (Internal team members only / optional) I have created a preview deployment using the [Create Preview Branch workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml) ## Additional notes <!-- Any other information that would be helpful for reviewers -->
1 parent 97bfb29 commit c639b7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/oss/langchain/agents.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ Use middleware to define custom state when your custom state needs to be accesse
690690
```python
691691
from langchain.agents import AgentState
692692
from langchain.agents.middleware import AgentMiddleware
693+
from typing import Any
693694

694695

695696
class CustomState(AgentState):

0 commit comments

Comments
 (0)