PromptChatMessage: Extract<PromptVersion["template"], { messages: unknown[] }>["messages"][number]

Extracts the chat message type from the prompt template who may be a StringTemplate or ChatTemplate.