Skip to content

Commit 446a281

Browse files
committed
Fix assertion message in AdvisedRequest
Signed-off-by: Ilayaperumal Gopinathan <ilayaperumal.gopinathan@broadcom.com>
1 parent 3ab3bbd commit 446a281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-ai-core/src/main/java/org/springframework/ai/chat/client/advisor/api/AdvisedRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public record AdvisedRequest(
8989
"userText cannot be null or empty unless messages are provided and contain Tool Response message.");
9090
Assert.notNull(media, "media cannot be null");
9191
Assert.noNullElements(media, "media cannot contain null elements");
92-
Assert.notNull(toolNames, "functionNames cannot be null");
93-
Assert.noNullElements(toolNames, "functionNames cannot contain null elements");
92+
Assert.notNull(toolNames, "toolNames cannot be null");
93+
Assert.noNullElements(toolNames, "toolNames cannot contain null elements");
9494
Assert.notNull(toolCallbacks, "toolCallbacks cannot be null");
9595
Assert.noNullElements(toolCallbacks, "toolCallbacks cannot contain null elements");
9696
Assert.notNull(messages, "messages cannot be null");

0 commit comments

Comments
 (0)