MultiActionAgentOutputParser Class — langchain Architecture
Architecture documentation for the MultiActionAgentOutputParser class in agent.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5737332b_3e72_7783_8918_d16b746de940["MultiActionAgentOutputParser"] 0ebc163d_9dba_a521_0e2e_0dd45f356b3e["agent.py"] 5737332b_3e72_7783_8918_d16b746de940 -->|defined in| 0ebc163d_9dba_a521_0e2e_0dd45f356b3e 0ae3960f_2bde_7368_8519_a6b9971ec6e1["parse()"] 5737332b_3e72_7783_8918_d16b746de940 -->|method| 0ae3960f_2bde_7368_8519_a6b9971ec6e1
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/agent.py lines 369–386
class MultiActionAgentOutputParser(
BaseOutputParser[list[AgentAction] | AgentFinish],
):
"""Base class for parsing agent output into agent actions/finish.
This is used for agents that can return multiple actions.
"""
@abstractmethod
def parse(self, text: str) -> list[AgentAction] | AgentFinish:
"""Parse text into agent actions/finish.
Args:
text: Text to parse.
Returns:
List of agent actions or agent finish.
"""
Source
Frequently Asked Questions
What is the MultiActionAgentOutputParser class?
MultiActionAgentOutputParser is a class in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent.py.
Where is MultiActionAgentOutputParser defined?
MultiActionAgentOutputParser is defined in libs/langchain/langchain_classic/agents/agent.py at line 369.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free