wenjin272 commented on PR #1427:
URL: https://github.com/apache/flink-agents/pull/1427#issuecomment-7123008097

   Thanks for putting this together, including the detailed documentation and 
extensive tests. Context management would be a useful addition.
   
   My main concern is that the current scope makes this PR difficult to review. 
It introduces truncation, masking, and summarization together, across Java and 
Python, with roughly 30k added lines. That makes it hard to assess both the 
individual strategies and their interactions.
   
   Could we start with tool-result truncation in Java only? This seems like the 
simplest first step: limit the length of tool results sent to the model while 
preserving the original conversation. I would keep both agent-level 
configuration and request-level overrides, including explicitly disabling 
truncation for a request. The implementation should stay mostly self-contained, 
with only a few integration points in the shared chat execution path. Masking, 
LLM-based summarization, and Python support could follow separately.
   
   The test code is also substantial—roughly 20k added lines. Coverage is 
valuable, but the tests themselves need to be understandable and reviewable. 
With a narrower scope, could we look for opportunities to simplify fixtures and 
consolidate overlapping cases while keeping clear coverage of the truncation 
behavior and configuration semantics?
   
   I think a smaller first PR would make it much easier to establish confidence 
in the design and implementation before expanding it.


-- 
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]

Reply via email to