File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44
55import com .sap .ai .sdk .app .services .SpringAiOpenAiService ;
66import com .sap .ai .sdk .foundationmodels .openai .OpenAiModel ;
7+ import java .util .List ;
78import org .junit .jupiter .api .Test ;
89import org .springframework .ai .chat .messages .AssistantMessage ;
910import org .springframework .ai .chat .model .ChatResponse ;
1011
11- import java .util .List ;
12-
1312class SpringAiOpenAiTest {
1413
1514 private final SpringAiOpenAiService service = new SpringAiOpenAiService ();
@@ -63,10 +62,11 @@ void testToolCallingWithoutExecution() {
6362 assertThat (toolCall1 .name ()).isEqualTo ("getCurrentWeather" );
6463 assertThat (toolCall2 .name ()).isEqualTo ("getCurrentWeather" );
6564 assertThat (toolCall1 .arguments ())
66- .isEqualTo ("{\" arg0\" : {\" location\" : \" Potsdam\" , \" unit\" : \" C\" }}" );
65+ .isEqualTo ("{\" arg0\" : {\" location\" : \" Potsdam\" , \" unit\" : \" C\" }}" );
6766 assertThat (toolCall2 .arguments ())
68- .isEqualTo ("{\" arg0\" : {\" location\" : \" Toulouse\" , \" unit\" : \" C\" }}" );
67+ .isEqualTo ("{\" arg0\" : {\" location\" : \" Toulouse\" , \" unit\" : \" C\" }}" );
6968 }
69+
7070 @ Test
7171 void testChatMemory () {
7272 ChatResponse response = service .ChatMemory ();
You can’t perform that action at this time.
0 commit comments