Skip to content

Make History Message

This node generates a ChatHistory struct containing a Message based on the provided role and message type. The node dynamically adjusts the inputs based on the selected message type.

Pin NamePin DescriptionPin TypeValue Type
roleThe Role of the Message AuthorStringMap
typeMessage TypeStringMap
messageConstructed MessageStructArray

Dynamic Pin Generation:

  • If the message type is set to “Text”, the “text” input pin is added and the “image” and “mime” pins are removed.
  • If the message type is set to “Image”, the “image” and “mime” input pins are added and the “text” pin is removed.