Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ void whenEmptyResponseThenOutputNothing(CapturedOutput output) {
this.observationHandler.onStop(context);
assertThat(output).contains("""
INFO o.s.a.c.c.o.ChatClientCompletionObservationHandler -- Chat Client Completion:
[]
""");
[]""");
}

@Test
Expand All @@ -83,8 +82,7 @@ void whenNullResponseThenOutputNothing(CapturedOutput output) {
this.observationHandler.onStop(context);
assertThat(output).contains("""
INFO o.s.a.c.c.o.ChatClientCompletionObservationHandler -- Chat Client Completion:
[]
""");
[]""");
}

@Test
Expand All @@ -102,8 +100,7 @@ void whenResponseWithTextThenOutputIt(CapturedOutput output) {
this.observationHandler.onStop(context);
assertThat(output).contains("""
INFO o.s.a.c.c.o.ChatClientCompletionObservationHandler -- Chat Client Completion:
["Test message"]
""");
["Test message"]""");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ void whenEmptyPromptThenOutputNothing(CapturedOutput output) {
this.observationHandler.onStop(context);
assertThat(output).contains("""
INFO o.s.a.c.c.o.ChatClientPromptContentObservationHandler -- Chat Client Prompt Content:
[]
""");
[]""");
}

@Test
Expand All @@ -76,8 +75,7 @@ void whenPromptWithTextThenOutputIt(CapturedOutput output) {
this.observationHandler.onStop(context);
assertThat(output).contains("""
INFO o.s.a.c.c.o.ChatClientPromptContentObservationHandler -- Chat Client Prompt Content:
["user":"supercalifragilisticexpialidocious"]
""");
["user":"supercalifragilisticexpialidocious"]""");
}

@Test
Expand All @@ -91,8 +89,7 @@ void whenPromptWithMessagesThenOutputIt(CapturedOutput output) {
this.observationHandler.onStop(context);
assertThat(output).contains("""
INFO o.s.a.c.c.o.ChatClientPromptContentObservationHandler -- Chat Client Prompt Content:
["system":"you're a chimney sweep", "user":"supercalifragilisticexpialidocious"]
""");
["system":"you're a chimney sweep", "user":"supercalifragilisticexpialidocious"]""");
}

}