Skip to content

Commit

Permalink
Update langchain4j/src/main/java/dev/langchain4j/service/AiServices.java
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain4j committed May 17, 2024
1 parent 0b1f5ef commit bdca065
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public AiServices<T> tools(List<Object> objectsWithTools) { // TODO Collection?

for (Object objectWithTool : objectsWithTools) {
if (objectWithTool instanceof Class) {
throw illegalConfiguration("Tools list must be an object instance, not a Class.");
throw illegalConfiguration("Tool '%s' must be an object, not a class", objectWithTool);
}

for (Method method : objectWithTool.getClass().getDeclaredMethods()) {
Expand Down

0 comments on commit bdca065

Please sign in to comment.