# XMLAgent

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/agents/xml/base/XMLAgent)

Agent that uses XML tags.

## Signature

```python
XMLAgent()
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `tools` | `unknown` | Yes | list of tools the agent can choose from |
| `llm_chain` | `unknown` | Yes | The LLMChain to call to predict the next action |

## Extends

- `BaseSingleActionAgent`

## Properties

- `tools`
- `llm_chain`
- `input_keys`

## Methods

- [`get_default_prompt()`](https://reference.langchain.com/python/langchain-classic/agents/xml/base/XMLAgent/get_default_prompt)
- [`get_default_output_parser()`](https://reference.langchain.com/python/langchain-classic/agents/xml/base/XMLAgent/get_default_output_parser)
- [`plan()`](https://reference.langchain.com/python/langchain-classic/agents/xml/base/XMLAgent/plan)
- [`aplan()`](https://reference.langchain.com/python/langchain-classic/agents/xml/base/XMLAgent/aplan)

## ⚠️ Deprecated

Deprecated since version 0.1.0. Use create_xml_agent instead. Will be removed in version 1.0.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/f0c5a28fa05adcda89aebcb449d897245ab21fa4/libs/langchain/langchain_classic/agents/xml/base.py#L22)