Strategy Types
- APPEND (Default): New node messages are added to the existing context, preserving the full conversation history. The context grows as the conversation progresses.
- RESET: The context is cleared and replaced with only the new node’s messages. Useful when previous conversation history is no longer relevant or to reduce context window size.
- RESET_WITH_SUMMARY: The context is cleared but includes an AI-generated summary of the previous conversation along with the new node’s messages. Helps reduce context size while preserving key information.
Initial node behavior: The initial flow node follows its context strategy (default
APPEND)
instead of always replacing the context. With the default strategy, context written before the
node’s first inference — for example by a tts_say pre-action — is now preserved rather than
discarded. Set context_strategy=RESET on the initial node for the previous clean-slate behavior.When to Use Each Strategy
- Use APPEND when full conversation history is important for context
- Use RESET when starting a new topic or when previous context might confuse the current task
- Use RESET_WITH_SUMMARY (deprecated) for long conversations where you need to preserve key points but reduce context size. Prefer Pipecat’s native context summarization for new code.