File tree 2 files changed +8
-1
lines changed
core/langchain_core/callbacks
langchain/langchain/agents/react
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2502,7 +2502,8 @@ async def foo(inputs):
2502
2502
):
2503
2503
print(event)
2504
2504
2505
- .. warning: If using python <= 3.10 and async, you MUST
2505
+ .. warning::
2506
+ If using python <= 3.10 and async, you MUST
2506
2507
specify the `config` parameter or the function will raise an error.
2507
2508
This is due to a limitation in asyncio for python <= 3.10 that prevents
2508
2509
LangChain from automatically propagating the config object on the user's
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ def create_react_agent(
27
27
Based on paper "ReAct: Synergizing Reasoning and Acting in Language Models"
28
28
(https://arxiv.org/abs/2210.03629)
29
29
30
+ .. warning::
31
+ This implementation is based on the foundational ReAct paper but is older and not well-suited for production applications.
32
+ For a more robust and feature-rich implementation, we recommend using the `create_react_agent` function from the LangGraph library.
33
+ See the [reference doc](https://langchain-ai.github.io/langgraph/reference/prebuilt/#langgraph.prebuilt.chat_agent_executor.create_react_agent)
34
+ for more information.
35
+
30
36
Args:
31
37
llm: LLM to use as the agent.
32
38
tools: Tools this agent has access to.
You can’t perform that action at this time.
0 commit comments