from llama_index.core.llms import ChatMessage
sllm = llm.as_structured_llm(output_cls=Content)
input_msg = ChatMessage.from_str(f"Generate a poem from the content: {content}")
response = sllm.chat(input_msg)
Input should be a valid dictionary or instance of ChatMessage