Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

**Core**

- Fixed `MessageHistory.to_list()` returning a reference to the internal list instead of a copy, causing simulator logs to contain future conversation messages that hadn't occurred at the time of logging. (PR: #PR_NUMBER_PLACEHOLDER)

### Added

**Core**
Expand Down
2 changes: 1 addition & 1 deletion maseval/core/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def to_list(self) -> List[Dict[str, Any]]:
Returns:
List of message dictionaries in OpenAI format
"""
return self._messages
return list(self._messages)

def add_message(
self,
Expand Down
Loading