# AgentExecutor

> **Class** in `langchain_classic`

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

Agent that is using tools.

## Signature

```python
AgentExecutor()
```

## Extends

- `Chain`

## Properties

- `agent`
- `tools`
- `return_intermediate_steps`
- `max_iterations`
- `max_execution_time`
- `early_stopping_method`
- `handle_parsing_errors`
- `trim_intermediate_steps`
- `input_keys`
- `output_keys`

## Methods

- [`from_agent_and_tools()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentExecutor/from_agent_and_tools)
- [`validate_tools()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentExecutor/validate_tools)
- [`validate_runnable_agent()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentExecutor/validate_runnable_agent)
- [`save()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentExecutor/save)
- [`save_agent()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentExecutor/save_agent)
- [`iter()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentExecutor/iter)
- [`lookup_tool()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentExecutor/lookup_tool)
- [`stream()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentExecutor/stream)
- [`astream()`](https://reference.langchain.com/python/langchain-classic/agents/agent/AgentExecutor/astream)

---

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