# agents

> **Module** in `langchain_classic`

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

**Agent** is a class that uses an LLM to choose a sequence of actions to take.

In Chains, a sequence of actions is hardcoded. In Agents,
a language model is used as a reasoning engine to determine which actions
to take and in which order.

Agents select and use **Tools** and **Toolkits** for actions.

## Properties

- `DEPRECATED_CODE`
- `DEPRECATED_LOOKUP`

## Methods

- [`create_importer()`](https://reference.langchain.com/python/langchain-classic/agents/create_importer)
- [`create_vectorstore_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_vectorstore_agent)
- [`create_vectorstore_router_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_vectorstore_router_agent)
- [`initialize_agent()`](https://reference.langchain.com/python/langchain-classic/agents/initialize_agent)
- [`create_json_chat_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_json_chat_agent)
- [`load_agent()`](https://reference.langchain.com/python/langchain-classic/agents/load_agent)
- [`create_openai_functions_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_openai_functions_agent)
- [`create_openai_tools_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_openai_tools_agent)
- [`create_react_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_react_agent)
- [`create_self_ask_with_search_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_self_ask_with_search_agent)
- [`create_structured_chat_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_structured_chat_agent)
- [`create_tool_calling_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_tool_calling_agent)
- [`create_xml_agent()`](https://reference.langchain.com/python/langchain-classic/agents/create_xml_agent)

---

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