From 0a465b80326f73a0e4857c298c00dc0a3f4f3369 Mon Sep 17 00:00:00 2001 From: Jeong-Minju <51041861+JminJ@users.noreply.github.com> Date: Tue, 29 Oct 2024 23:16:42 +0900 Subject: [PATCH] docs: Fix typo in _action_agent docs section (#27698) PR Title: docs: Fix typo in _action_agent function docs section Description: In line 1185, _action_agent function's docs, changing **".agent"** to **"self.agent"**. Issue: N/A Dependencies: None --------- Co-authored-by: Eugene Yurtsev --- libs/langchain/langchain/agents/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/agents/agent.py b/libs/langchain/langchain/agents/agent.py index 7cce5803914..500e884cd73 100644 --- a/libs/langchain/langchain/agents/agent.py +++ b/libs/langchain/langchain/agents/agent.py @@ -1182,7 +1182,7 @@ class AgentExecutor(Chain): def _action_agent(self) -> Union[BaseSingleActionAgent, BaseMultiActionAgent]: """Type cast self.agent. - The .agent attribute type includes Runnable, but is converted to one of + If the `agent` attribute is a Runnable, it will be converted one of RunnableAgentType in the validate_runnable_agent root_validator. To support instantiating with a Runnable, here we explicitly cast the type