ComfyUI Node
PSN LLM History Manager
Appends a message to conversation history and trims if it exceeds max length.
PSN LLM History Manager
- updated_context
◄context{}►
◄new_message►
◄role▾►
◄max_length100►
CategoryParametric/Agents
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| context | STRING | {} | Context. Default {}. |
| new_message | STRING | New message. | |
| role | COMBO | Role. One of 2 choices. | |
| max_lengthopt | INT | 1000–100000 | Max length. From 0 to 100000. Default 100. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| updated_context | STRING | — |