LangChain - Agents
Identify the error in this code snippet that tries to create a structured chat agent:
from langchain.chat_models import ChatOpenAI
from langchain.agents import StructuredChatAgent
llm = ChatOpenAI(temperature=0.5)
agent = StructuredChatAgent(llm)
response = agent.invoke({'input': 'Hi'})
print(response['output'])