@VisibleForTesting
    String renderContext(Map<String, String> context) {
        try {
            return objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(context);
        } catch (JsonProcessingException e) {
            log.warn("Failed to render context", e);
            return "{}";
        }
    }
@Test
    void renderContext() {
        ReActAgent reActAgent = new ReActAgent(null, null, null, "Task", new HashMap<>());
        String result = reActAgent.renderContext(Map.of(
                "username", "johndoe"
        ));
        Assertions.assertEquals("{\n  \"username\" : \"johndoe\"\n}", result);
    }