AttributeError: 'VectorStoreRetriever' object has no attribute 'args_schema'
Labels: name: area: agent, name: auto:bug

### System Info

- LangChain: 0.0.353
- System: Ubuntu 22.04
- Python: 3.10.12

### Information

I run the code in the quickstart part of the [document](https://python.langchain.com/docs/get_started/quickstart#agent), code:
```python
from langchain.chat_models import ChatOpenAI
from langchain import hub
from langchain.agents import create_openai_functions_agent
from langchain.agents import AgentExecutor

# Get the prompt to use - you can modify this!
prompt = hub.pull("hwchase17/openai-functions-agent")
llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0)
agent = create_openai_functions_agent(llm, tools, prompt)
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
```

However, the Python interpreter told me:
```
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_665358/3241410387.py in <module>
      7 prompt = hub.pull("hwchase17/openai-functions-agent")
      8 llm = ChatOpenAI(openai_api_key=openai_api_key, model="gpt-3.5-turbo", temperature=0)
----> 9 agent = create_openai_functions_agent(llm=llm, tools=tools, prompt=prompt)
     10 agent_executor = AgentExecutor(agent, tools, verbose=True)

[~/.local/lib/python3.10/site-packages/langchain/agents/openai_functions_agent/base.py](https://vscode-remote+ssh-002dremote-002b158-002e132-002e9-002e210.vscode-resource.vscode-cdn.net/home/iot/Documents/langchain/~/.local/lib/python3.10/site-packages/langchain/agents/openai_functions_agent/base.py) in create_openai_functions_agent(llm, tools, prompt)
    285         )
    286     llm_with_tools = llm.bind(
--> 287         functions=[format_tool_to_openai_function(t) for t in tools]
    288     )
    289     agent = (

[~/.local/lib/python3.10/site-packages/langchain/agents/openai_functions_agent/base.py](https://vscode-remote+ssh-002dremote-002b158-002e132-002e9-002e210.vscode-resource.vscode-cdn.net/home/iot/Documents/langchain/~/.local/lib/python3.10/site-packages/langchain/agents/openai_functions_agent/base.py) in <listcomp>(.0)
    285         )
    286     llm_with_tools = llm.bind(
--> 287         functions=[format_tool_to_openai_function(t) for t in tools]
    288     )
    289     agent = (

[~/.local/lib/python3.10/site-packages/langchain_community/tools/convert_to_openai.py](https://vscode-remote+ssh-002dremote-002b158-002e132-002e9-002e210.vscode-resource.vscode-cdn.net/home/iot/Documents/langchain/~/.local/lib/python3.10/site-packages/langchain_community/tools/convert_to_openai.py) in format_tool_to_openai_function(tool)
     10 def format_tool_to_openai_function(tool: BaseTool) -> FunctionDescription:
     11     """Format tool into the OpenAI function API."""
---> 12     if tool.args_schema:
     13         return convert_pydantic_to_openai_function(
     14             tool.args_schema, name=tool.name, description=tool.description

AttributeError: 'VectorStoreRetriever' object has no attribute 'args_schema'
```

It seems that some packages have version incompatibility.

- [X] The official example notebooks/scripts
- [ ] My own modified scripts

### Related Components

- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async

### Reproduction

1. Directly run the following code:
```
from langchain.chat_models import ChatOpenAI
from langchain import hub
from langchain.agents import create_openai_functions_agent
from langchain.agents import AgentExecutor

# Get the prompt to use - you can modify this!
prompt = hub.pull("hwchase17/openai-functions-agent")
llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0)
agent = create_openai_functions_agent(llm, tools, prompt)
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
```

### Expected behavior

It should run successfully without any error report.