mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-25 00:52:25 +02:00
docs(mcp): update workflow usage examples (#5525)
Update mcp.md "END" is missing
This commit is contained in:
@@ -58,7 +58,7 @@ The `langchain-mcp-adapters` package enables agents to use tools defined across
|
||||
```python title="Workflow using MCP tools with ToolNode"
|
||||
from langchain_mcp_adapters.client import MultiServerMCPClient
|
||||
from langchain.chat_models import init_chat_model
|
||||
from langgraph.graph import StateGraph, MessagesState, START
|
||||
from langgraph.graph import StateGraph, MessagesState, START, END
|
||||
from langgraph.prebuilt import ToolNode
|
||||
|
||||
# Initialize the model
|
||||
|
||||
Reference in New Issue
Block a user