Skip to content

Commit cf711a2

Browse files
committed
Leftovers
1 parent e8a95fc commit cf711a2

File tree

9 files changed

+17
-705
lines changed

9 files changed

+17
-705
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.sap.ai.sdk.orchestration;
2+
3+
import static org.assertj.core.api.Assertions.assertThat;
4+
5+
import org.junit.jupiter.api.Test;
6+
7+
class TemplateVariableTest {
8+
@Test
9+
void testTemplateFormat() {
10+
final var templateVariable = TemplateVariable.of("test");
11+
final var templateString = templateVariable.toTemplateString();
12+
assertThat(templateString).isEqualTo("{{?test}}");
13+
}
14+
}

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

Lines changed: 0 additions & 379 deletions
This file was deleted.

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

Lines changed: 0 additions & 86 deletions
This file was deleted.

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

Lines changed: 0 additions & 76 deletions
This file was deleted.

orchestration/src/test/resources/__files/templatingResponse.json renamed to orchestration/src/test/resources/__files/successResponse.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"templating": [
55
{
66
"role": "user",
7-
"content": "Reply with 'Orchestration Service is working!' in German"
7+
"content": "Hello there!"
88
}
99
],
1010
"llm": {
@@ -17,7 +17,7 @@
1717
"index": 0,
1818
"message": {
1919
"role": "assistant",
20-
"content": "Orchestration Service funktioniert!"
20+
"content": "General Kenobi!"
2121
},
2222
"finish_reason": "stop"
2323
}
@@ -39,7 +39,7 @@
3939
"index": 0,
4040
"message": {
4141
"role": "assistant",
42-
"content": "Orchestration Service funktioniert!"
42+
"content": "General Kenobi!"
4343
},
4444
"finish_reason": "stop"
4545
}

orchestration/src/test/resources/filteringLooseRequest.json

Lines changed: 0 additions & 56 deletions
This file was deleted.

orchestration/src/test/resources/maskingRequest.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

orchestration/src/test/resources/messagesHistoryRequest.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

orchestration/src/test/resources/templatingRequest.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)