Skip to content

Pop History Message

Purpose of the Node

This node is designed to remove and return the last message from a given ChatHistory. It takes an input execution signal and a ChatHistory, then outputs the removed message, the updated ChatHistory, or an execution signal indicating that the history was empty.

Pins

Pin NamePin DescriptionPin TypeValue Type
StartInitiate ExecutionExecution-
HistoryChatHistoryStructHistory
EndDone with the ExecutionExecution-
HistoryUpdated ChatHistoryStructHistory
MessageRemoved MessageStructHistoryMessage
EmptyHistory was emptyExecution-