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.
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.
Global Configuration
The default strategy for every node is set on theFlowManager constructor, in both forms of flow:
Per-Node Configuration
A node can override the global strategy:- Declarative
- Programmatic
context_strategy is either append or reset. Omit it to use the FlowManager’s strategy.RESET_WITH_SUMMARY is not available in a flow config. It takes a
summary_prompt alongside the strategy, which a node’s single
context_strategy key has nowhere to put. It is deprecated in any case —
prefer context summarization.