File size: 326 Bytes
411007e |
1 2 3 4 5 6 7 |
from langchain.agents import initialize_agent, AgentType
from models import llm
from agents.tools.shell_tool import shell_tool
from agents.tools.python_code_tool import repl_tool
generate_and_excute_code_agent = initialize_agent([shell_tool, repl_tool], llm(), agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION, verbose=True) |