from langchain_core.messages import( HumanMessage,SystemMessage,ToolMessage,AIMessage,BaseMessage,ChatMessage ) def compose_prompt(system_message,human_message): message=[ SystemMessage(content=system_message), HumanMessage(content=human_message) ] return message