# 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/185119f98e6286253a2326d7cf4f59592678023d/libs/langchain/langchain_classic/agents/agent.py#L361)