purushah commented on code in PR #1484:
URL: https://github.com/apache/flink-agents/pull/1484#discussion_r4779791856


##########
runtime/src/test/java/org/apache/flink/agents/runtime/context/ChatModelActionContextRecoveryTest.java:
##########
@@ -114,6 +117,10 @@ void 
restoredToolRequestMemoryKeepsTheOriginalRequestContext() throws Exception
                         .orElseThrow();
         assertThat(parked.getValue()).isEqualTo(liveParked);
         assertThat(parked.getValue()).isNotSameAs(liveParked);
+        // The request's policy is restored as the map it was parked as.
+        Map<?, ?> parkedContext = (Map<?, ?>) parked.getValue();
+        assertThat(((Map<?, ?>) 
parkedContext.get(toolRequest.getId())).get("context_management"))
+                .isEqualTo(Map.of("tool_result_max_chars", 500));

Review Comment:
   Done. The test checks the model input after recovery.
   



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