(agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION)
| 8 | |
| 9 | |
| 10 | def create_react_agent(agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION): |
| 11 | llm = ChatOpenAI(model='gpt-4', temperature=0) |
| 12 | tools = load_tools(["serpapi"], llm=llm) |
| 13 | agent = initialize_agent(tools, llm, agent=agent_type) |
| 14 | return agent |
no outgoing calls
no test coverage detected