# AgentOutputParser

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentOutputParser)

Base class for parsing agent output into agent action/finish.

## Signature

```python
AgentOutputParser()
```

## Extends

- `BaseOutputParser[AgentAction | AgentFinish]`

## Methods

- [`parse()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentOutputParser/parse)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/311675a517f51ec6c77454124293c58df517e952/libs/langchain/langchain_classic/agents/agent.py#L361)