Skip to content

unpinMessage

function unpinMessage(messages, index): void;

Defined in: src/conversation-manager/pin-message.ts:100

Unpin a message so it can be evicted during context reduction. Mutates the message in place by removing the pinned flag from metadata.

ParameterTypeDescription
messagesMessage[]The messages array containing the message to unpin.
indexnumberThe index of the message to unpin.

void