wenjin272 commented on code in PR #1185:
URL: https://github.com/apache/flink-agents/pull/1185#discussion_r4236464409
##########
runtime/src/main/java/org/apache/flink/agents/runtime/eventlog/ChatMessageEventLogSerializer.java:
##########
@@ -47,7 +48,26 @@ public class ChatMessageEventLogSerializer extends
JsonSerializer<ChatMessage> {
/** The module Event Log mappers register to apply the sanitized {@link
ChatMessage} shape. */
public static Module module() {
return new SimpleModule("flink-agents-event-log-chat-messages")
- .addSerializer(ChatMessage.class, new
ChatMessageEventLogSerializer());
+ .addSerializer(ChatMessage.class, new
ChatMessageEventLogSerializer())
+ .addSerializer(
+ ChatResult.class,
Review Comment:
Fixed by registering a serializer directly for `ContentBlock` on the Event
Log mappers, replacing the message/result-specific serializers. This also
sanitizes blocks inside `ToolResponseEvent` and nested tool results, while
ordinary serialization preserves the full payload. Added STANDARD/VERBOSE
tool-response tests and a generic-event SLF4J test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]