mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 15:19:33 +00:00
langchain[patch]: Add warning in react agent (#26980)
This commit is contained in:
parent
2f6254605d
commit
b4cb2089a2
@ -2502,7 +2502,8 @@ async def adispatch_custom_event(
|
|||||||
):
|
):
|
||||||
print(event)
|
print(event)
|
||||||
|
|
||||||
.. warning: If using python <= 3.10 and async, you MUST
|
.. warning::
|
||||||
|
If using python <= 3.10 and async, you MUST
|
||||||
specify the `config` parameter or the function will raise an error.
|
specify the `config` parameter or the function will raise an error.
|
||||||
This is due to a limitation in asyncio for python <= 3.10 that prevents
|
This is due to a limitation in asyncio for python <= 3.10 that prevents
|
||||||
LangChain from automatically propagating the config object on the user's
|
LangChain from automatically propagating the config object on the user's
|
||||||
|
@ -27,6 +27,12 @@ def create_react_agent(
|
|||||||
Based on paper "ReAct: Synergizing Reasoning and Acting in Language Models"
|
Based on paper "ReAct: Synergizing Reasoning and Acting in Language Models"
|
||||||
(https://arxiv.org/abs/2210.03629)
|
(https://arxiv.org/abs/2210.03629)
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
This implementation is based on the foundational ReAct paper but is older and not well-suited for production applications.
|
||||||
|
For a more robust and feature-rich implementation, we recommend using the `create_react_agent` function from the LangGraph library.
|
||||||
|
See the [reference doc](https://langchain-ai.github.io/langgraph/reference/prebuilt/#langgraph.prebuilt.chat_agent_executor.create_react_agent)
|
||||||
|
for more information.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
llm: LLM to use as the agent.
|
llm: LLM to use as the agent.
|
||||||
tools: Tools this agent has access to.
|
tools: Tools this agent has access to.
|
||||||
|
Loading…
Reference in New Issue
Block a user