deerflow2/tests/integration
Willem Jiang d4ab77de5c
fix: migrate from deprecated create_react_agent to langchain.agents.create_agent (#802)
* fix: migrate from deprecated create_react_agent to langchain.agents.create_agent

Fixes #799

- Replace deprecated langgraph.prebuilt.create_react_agent with
  langchain.agents.create_agent (LangGraph 1.0 migration)
- Add DynamicPromptMiddleware to handle dynamic prompt templates
  (replaces the 'prompt' callable parameter)
- Add PreModelHookMiddleware to handle pre-model hooks
  (replaces the 'pre_model_hook' parameter)
- Update AgentState import from langchain.agents in template.py
- Update tests to use the new API

* fix:update the code with review comments
2026-01-07 09:06:16 +08:00
..
test_crawler.py fix: some lint fix using tools (#98) 2025-07-12 13:59:02 +08:00
test_nodes.py fix: handle greetings without triggering research workflow (#755) 2025-12-13 20:25:46 +08:00
test_template.py feat: 1. replace black with ruff for fomatting and sort import (#489) 2025-08-17 22:57:23 +08:00
test_tool_interceptor_integration.py fix: migrate from deprecated create_react_agent to langchain.agents.create_agent (#802) 2026-01-07 09:06:16 +08:00
test_tts.py feat: 1. replace black with ruff for fomatting and sort import (#489) 2025-08-17 22:57:23 +08:00