# OpenAIMultiFunctionsAgent

> **Class** in `langchain_classic`

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

Agent driven by OpenAIs function powered API.

## Signature

```python
OpenAIMultiFunctionsAgent()
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `llm` | `unknown` | Yes | This should be an instance of ChatOpenAI, specifically a model that supports using `functions`. |
| `tools` | `unknown` | Yes | The tools this agent has access to. |
| `prompt` | `unknown` | Yes | The prompt for this agent, should support agent_scratchpad as one of the variables. For an easy way to construct this prompt, use `OpenAIMultiFunctionsAgent.create_prompt(...)` |

## Extends

- `BaseMultiActionAgent`

## Properties

- `llm`
- `tools`
- `prompt`
- `input_keys`
- `functions`

## Methods

- [`get_allowed_tools()`](https://reference.langchain.com/python/langchain-classic/agents/openai_functions_multi_agent/base/OpenAIMultiFunctionsAgent/get_allowed_tools)
- [`plan()`](https://reference.langchain.com/python/langchain-classic/agents/openai_functions_multi_agent/base/OpenAIMultiFunctionsAgent/plan)
- [`aplan()`](https://reference.langchain.com/python/langchain-classic/agents/openai_functions_multi_agent/base/OpenAIMultiFunctionsAgent/aplan)
- [`create_prompt()`](https://reference.langchain.com/python/langchain-classic/agents/openai_functions_multi_agent/base/OpenAIMultiFunctionsAgent/create_prompt)
- [`from_llm_and_tools()`](https://reference.langchain.com/python/langchain-classic/agents/openai_functions_multi_agent/base/OpenAIMultiFunctionsAgent/from_llm_and_tools)

## ⚠️ Deprecated

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

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/9f232caa7a8fe1ca042a401942d5d90d54ceb1a6/libs/langchain/langchain_classic/agents/openai_functions_multi_agent/base.py#L106)