MessageUnion:
    | typeof HumanMessage
    | typeof AIMessage
    | typeof SystemMessage
    | typeof ChatMessage
    | typeof FunctionMessage
    | typeof ToolMessage
    | typeof RemoveMessage