Commit a9199a7
committed
fix(mcp): migrate from deprecated create_react_agent to create_agent
- Replace langgraph.prebuilt.create_react_agent with langchain.agents.create_agent
- Update parameter from prompt/state_modifier to system_prompt
- Remove unnecessary signature introspection (new API is stable)
- Follows LangChain v1 / LangGraph v1 migration guide1 parent 30c7442 commit a9199a7
3 files changed
Lines changed: 1901 additions & 1494 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | 192 | | |
200 | 193 | | |
201 | 194 | | |
| |||
0 commit comments