Pandas DataFrame
. It is mostly optimized for question answering.
NOTE: this agent calls the Python
agent under the hood, which executes LLM generated Python code - this can be bad if the LLM generated Python code is harmful. Use cautiously.
NOTE: Since langchain migrated to v0.3 you should upgrade langchain_openai and langchain. This would avoid import errors.
pip install -U langchain_openai
pip install -U langchain
Using ZERO_SHOT_REACT_DESCRIPTION
This shows how to initialize the agent using the ZERO_SHOT_REACT_DESCRIPTION
agent type.