Nodes/Parametric Studio/PSN LLM History Manager
ComfyUI Node

PSN LLM History Manager

Appends a message to conversation history and trims if it exceeds max length.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
PSN LLM History Manager
    • updated_context
    ◄context{}►
    ◄new_message►
    ◄role▾►
    ◄max_length100►
    CategoryParametric/Agents

    Inputs (4)

    NameTypeDefaultDescription
    contextSTRING{}Context. Default {}.
    new_messageSTRINGNew message.
    roleCOMBORole. One of 2 choices.
    max_lengthoptINT1000–100000Max length. From 0 to 100000. Default 100.

    Outputs (1)

    NameTypeDescription
    updated_contextSTRING—