SQLagent always giving me AttributeError: items for Snowflake tables
Labels: name: area: agent, name: auto:bug, name: area: models

### System Info

Langchain version = 0.0.344
Python version = 3.11.5

### Who can help?

@hwchase17 @agola11

### Information

- [ ] The official example notebooks/scripts
- [ ] My own modified scripts

### Related Components

- [X] 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

Here is my code for connecting to Snowflake database and getting the tables and executing them in langchain SQLagent.. Howver i always get AttributeError: items.

from snowflake.sqlalchemy import URL
llm=AzureChatOpenAI(temperature=0.0,deployment_name=gpt-4-32k)
snowflake_url = URL(
    account='xxxxx,
    user='xxxxxx',
    password='xxxxxx',
    database='xxxxx',
    schema='xxxxxx',
    warehouse='xxxxxxx'
)
db = SQLDatabase.from_uri(snowflake_url, sample_rows_in_table_info=1, include_tables=['gc'])

# Create the SQLDatabaseToolkit
toolkit = SQLDatabaseToolkit(db=db, llm=llm)

agent_executor = create_sql_agent(
    llm=llm,
    toolkit=toolkit,
    verbose=True,
    prefix=MSSQL_AGENT_PREFIX,
    format_instructions = MSSQL_AGENT_FORMAT_INSTRUCTIONS,
    agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
    top_k=30,
    early_stopping_method="generate", 
    handle_parsing_errors = True,
    
)
question = "List top 10 records from gc" 
response = agent_executor.run(question)

Entering new AgentExecutor chain...
Action: sql_db_list_tables
Action Input: ""
Observation: gc
Thought:The 'gc' table is available in the database. I should now check the schema of the 'gc' table to understand its structure and the data it contains.
Action: sql_db_schema
Action Input: "gc"
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
File [c:\Anaconda_3\Lib\site-packages\sqlalchemy\sql\base.py:1150](file:///C:/Anaconda_3/Lib/site-packages/sqlalchemy/sql/base.py:1150), in ColumnCollection.__getattr__(self, key)
   [1149](file:///C:/Anaconda_3/Lib/site-packages/sqlalchemy/sql/base.py:1149) try:
-> [1150](file:///C:/Anaconda_3/Lib/site-packages/sqlalchemy/sql/base.py:1150)     return self._index[key]
   [1151](file:///C:/Anaconda_3/Lib/site-packages/sqlalchemy/sql/base.py:1151) except KeyError as err:

KeyError: 'items'

The above exception was the direct cause of the following exception:

AttributeError                            Traceback (most recent call last)
Cell In[66], [line 33](vscode-notebook-cell:?execution_count=66&line=33)
     [31](vscode-notebook-cell:?execution_count=66&line=31) from langchain.globals import set_debug
     [32](vscode-notebook-cell:?execution_count=66&line=32) set_debug(False)
---> [33](vscode-notebook-cell:?execution_count=66&line=33) response = agent_executor.run(question)

File [~\AppData\Roaming\Python\Python311\site-packages\langchain\chains\base.py:507](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/W67529/Autogen/~/AppData/Roaming/Python/Python311/site-packages/langchain/chains/base.py:507), in Chain.run(self, callbacks, tags, metadata, *args, **kwargs)
    [505](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/W67529/Autogen/~/AppData/Roaming/Python/Python311/site-packages/langchain/chains/base.py:505)     if len(args) != 1:
    [506](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/W67529/Autogen/~/AppData/Roaming/Python/Python311/site-packages/langchain/chains/base.py:506)         raise ValueError("`run` supports only one positional argument.")
--> [507](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/W67529/Autogen/~/AppData/Roaming/Python/Python311/site-packages/langchain/chains/base.py:507)     return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
    [508](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/W67529/Autogen/~/AppData/Roaming/Python/Python311/site-packages/langchain/chains/base.py:508)         _output_key
    [509](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/W67529/Autogen/~/AppData/Roaming/Python/Python311/site-packages/langchain/chains/base.py:509)     ]
    [511](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/W67529/Autogen/~/AppData/Roaming/Python/Python311/site-packages/langchain/chains/base.py:511) if kwargs and not args:
    [512](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/W67529/Autogen/~/AppData/Roaming/Python/Python311/site-packages/langchain/chains/base.py:512)     return self(kwargs, callbacks=callbacks, tags=tags, metadata=metadata)[
...
    [201](file:///C:/Anaconda_3/Lib/site-packages/sqlalchemy/util/compat.py:201)     # https://cosmicpercolator.com/2016/01/13/exception-leaks-in-python-2-and-3/
    [202](file:///C:/Anaconda_3/Lib/site-packages/sqlalchemy/util/compat.py:202)     # as the __traceback__ object creates a cycle
    [203](file:///C:/Anaconda_3/Lib/site-packages/sqlalchemy/util/compat.py:203)     del exception, replace_context, from_, with_traceback

AttributeError: items


### Expected behavior

Should have executed the question.