mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-29 09:58:44 +00:00
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:
parent
c3021e9322
commit
0a465b8032
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user