# ToolsAgentOutputParser

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/agents/output_parsers/tools/ToolsAgentOutputParser)

Parses a message into agent actions/finish.

If a tool_calls parameter is passed, then that is used to get
the tool names and tool inputs.

If one is not passed, then the AIMessage is assumed to be the final output.

## Signature

```python
ToolsAgentOutputParser()
```

## Extends

- `MultiActionAgentOutputParser`

## Methods

- [`parse_result()`](https://reference.langchain.com/python/langchain-classic/agents/output_parsers/tools/ToolsAgentOutputParser/parse_result)
- [`parse()`](https://reference.langchain.com/python/langchain-classic/agents/output_parsers/tools/ToolsAgentOutputParser/parse)

---

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