from langchain.chat_models import ChatOpenAI
File "/home/Junaid0080/.local/lib/python3.10/site-packages/langchain/__init__.py", line 6, in <module>
from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
File "/home/Junaid0080/.local/lib/python3.10/site-packages/langchain/agents/__init__.py", line 31, in <module>
from langchain.agents.agent import (
File "/home/Junaid0080/.local/lib/python3.10/site-packages/langchain/agents/agent.py", line 14, in <module>
from langchain.agents.agent_iterator import AgentExecutorIterator
File "/home/Junaid0080/.local/lib/python3.10/site-packages/langchain/agents/agent_iterator.py", line 21, in <module>
from langchain.callbacks.manager import (
File "/home/Junaid0080/.local/lib/python3.10/site-packages/langchain/callbacks/__init__.py", line 10, in <module>
from langchain.callbacks.aim_callback import AimCallbackHandler
File "/home/Junaid0080/.local/lib/python3.10/site-packages/langchain/callbacks/aim_callback.py", line 5, in <module>
from langchain.schema import AgentAction, AgentFinish, LLMResult
class Generation(Serializable):
File "/home/Junaid0080/.local/lib/python3.10/site-packages/langchain/schema/__init__.py", line 3, in <module>
from langchain.schema.cache import BaseCache
File "/home/Junaid0080/.local/lib/python3.10/site-packages/langchain/schema/cache.py", line 6, in <module>
from langchain.schema.output import Generation
File "/home/Junaid0080/.local/lib/python3.10/site-packages/langchain/schema/output.py", line 12, in <module>
class Generation(Serializable):
File "pydantic/main.py", line 197, in pydantic.main.ModelMetaclass.__new__
File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.__init__
File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 668, in pydantic.fields.ModelField._type_analysis
File "/usr/local/lib/python3.10/typing.py", line 1157, in __subclasscheck__
return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class