Open
Description
Describe the bug
When using the ChatHistoryTruncationReducer
the reducer reduces the system prompt (both if added to the constructor via system_message
or when manually added as first message to the history )
To Reproduce
Steps to reproduce the behavior:
- Create a History using the ChatHistoryTruncationReducer, and add a
target_count
- populate the ChatHistory with more elements than the
target_count
- call the reduce function
Expected behavior
I expect the System Prompt to be kept, as it is an integral part of the conversation
Screenshots
see first comment.
Platform
- Language: Python
- Source: pip semantic-kernel 1.34.0
- AI model: OpenAI:GPT-4o-mini(2024-12-01-preview)
- IDE: VS Code
- OS: Windows
Additional context
Nothing, but additional context can be provided if needed.
Metadata
Metadata
Assignees
Type
Projects
Status
Bug