fix: ignore AgentType enum for now

This commit is contained in:
Gabriel Almeida 2023-04-04 21:48:23 -03:00
commit 8c1783eee5

View file

@ -111,7 +111,8 @@ class InitializeAgent(AgentExecutor):
return initialize_agent(
tools=tools,
llm=llm,
agent=agent,
# LangChain now uses Enum for agent, but we still support string
agent=agent, # type: ignore
memory=memory,
return_intermediate_steps=True,
)