Skip to content

Commit fd6db2d

Browse files
committed
feat(test): improve logging in authorsByBooks function tests
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent 7e4b90d commit fd6db2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-ai-integration-tests/src/test/java/org/springframework/ai/integration/tests/tool/FunctionToolCallbackTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,9 @@ Function<Author, List<Book>> booksByAuthor() {
224224
@Description("Get the list of authors who wrote the given books available in the library")
225225
Function<Books, List<Author>> authorsByBooks() {
226226
return books -> {
227-
logger.info("Getting authors by books: {}", books.books().stream().map(Book::title).toList());
228-
return bookService.getAuthorsByBook(books.books());
227+
List<Author> authors = bookService.getAuthorsByBook(books.books());
228+
logger.info("Getting authors: {} by books: {}", authors, books.books().stream().map(Book::title).toList());
229+
return authors;
229230
};
230231
}
231232

0 commit comments

Comments
 (0)