ChatHistory behavior changes from v2 to v3? #422
-
|
Hello, I’d like to ask whether there were any behavioral or structural changes to ChatHistory between v2 and v3. In v2, I had my own custom implementation of ChatHistory, and everything worked fine, including: After upgrading to v3, the same implementation consistently throws the following exception: I noticed that ToolCallResultMessage has been renamed to ToolResultMessage, and I have already updated my code accordingly. However, the exception still occurs. To clarify, this issue did not occur in v2 at all — the same logic and flow worked correctly before the upgrade. So I’d like to ask: Were there any breaking or behavioral changes to ChatHistory in v3? Are there any new constraints or required behaviors when implementing a custom ChatHistory in v3? Is there anything in v3 that could cause the chat history to be considered “empty” even though messages were successfully added (and worked in v2)? Any guidance or migration notes would be greatly appreciated. Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
The Chat History was touched very little. Also unit tests didn't changed. I need to have more context about your implementation to understand the detail that is causing this issue in your code, in particular the implementation of |
Beta Was this translation helpful? Give feedback.
It's fixed in the latest commit. You should get the latest version with a
composer update.Thank you for pointing it out.