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 <eugene@langchain.dev>
This commit is contained in:
Jeong-Minju 2024-10-29 23:16:42 +09:00 committed by GitHub
parent c3021e9322
commit 0a465b8032
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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