Skip to content

Set System Message

This node is used to update the system prompt message in a given ChatHistory. It takes the existing history, removes any existing system messages, and inserts the new system prompt at the beginning of the history.

Pin NamePin DescriptionPin TypeValue Type
StartInitiate ExecutionStructNormal
HistoryChatHistoryStructArray
MessageSystem Prompt MessageStringMap
EndDone with the ExecutionStructNormal
HistoryUpdated ChatHistoryStructArray