Skip to content

Conversation

@liugddx
Copy link
Contributor

@liugddx liugddx commented Oct 30, 2025

Close #4735

Add getTextContent() method to AbstractMessage class to comply with JavaBean naming conventions.
This ensures that the textContent field is properly serialized by standard JSON serialization libraries.

Changes:

  • Added getTextContent() getter method in AbstractMessage
  • Method is inherited by all Message implementation classes (UserMessage, AssistantMessage, SystemMessage, etc.)
  • Maintains backward compatibility with existing getText() method

Signed-off-by: liugddx <liugddx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting textContent but method name getText causes serialization failure issue !!!!

1 participant