Skip to content

The agent engineering platform.

docs: Fix typo in _action_agent docs section (#27698)

Jeong-Minju0a465b80326f
diff --git a/libs/langchain/langchain/agents/agent.py b/libs/langchain/langchain/agents/agent.py
index 7cce580391..500e884cd7 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