Skip to content

Commit 8b26ce4

Browse files
Updated test
1 parent 01eed13 commit 8b26ce4

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

orchestration/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<coverage.complexity>83%</coverage.complexity>
3535
<coverage.line>94%</coverage.line>
3636
<coverage.instruction>94%</coverage.instruction>
37-
<coverage.branch>75%</coverage.branch>
37+
<coverage.branch>77%</coverage.branch>
3838
<coverage.method>93%</coverage.method>
3939
<coverage.class>100%</coverage.class>
4040
</properties>

orchestration/src/test/java/com/sap/ai/sdk/orchestration/OrchestrationUnitTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ void testGrounding() throws IOException {
205205
"grounding_result",
206206
"First chunk```Second chunk```Last found chunk");
207207
assertThat(groundingModule.getData()).isEqualTo(groundingData);
208+
assertThat(response.getOriginalResponse().getModuleResults().getInputMasking()).isNotNull();
208209

209210
try (var requestInputStream = fileLoader.apply("groundingRequest.json")) {
210211
final String request = new String(requestInputStream.readAllBytes());

orchestration/src/test/resources/__files/groundingResponse.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
"content": "Context message with embedded grounding results. First chunk```Second chunk```Last found chunk"
1515
}
1616
],
17+
"input_masking": {
18+
"message": "Input to LLM and Grounding is masked successfully.",
19+
"data": {
20+
"masked_template": "[{\"role\": \"user\", \"content\": \"Context message with embedded grounding results. First chunk```MASKED_SENSITIVE_DATA```Last found chunk\"}]",
21+
"masked_grounding_input": "[\"What does Joule do?\"]"
22+
}
23+
},
1724
"llm": {
1825
"id": "chatcmpl-Apz5s3CMf99jkOnxvPshH1rGLwvvU",
1926
"object": "chat.completion",
@@ -59,4 +66,4 @@
5966
"total_tokens": 380
6067
}
6168
}
62-
}
69+
}

0 commit comments

Comments
 (0)