You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will see that a new extension was added to your application:
@@ -295,15 +295,26 @@ There is a fair bit of code in this file, but the main thing you should pay atte
295
295
296
296
To wire everything up, we will need to tell the AI Service about this tool. In the `src/main/java/org/parasol/ai` folder, open the `ClaimService.java` class again.
297
297
298
-
Find the `@RegisterAiService` annotation. We need to register the `NotificationService` class as a tool. Go ahead and replace the existing line with the following:
298
+
We need to register the `NotificationService` class as a tool. Find the `chat` method and add the following annotation to it:
By doing this we have now registered the `NotificationService` file as class that contains one or more `@Tool` annotated methods.
306
+
[NOTE]
307
+
====
308
+
You may need to add the following import to the `ClaimService` class if it isn't already added for you:
309
+
310
+
[.console-input]
311
+
[source,java,subs="+attributes,macros+"]
312
+
----
313
+
import io.quarkiverse.langchain4j.ToolBox;
314
+
----
315
+
====
316
+
317
+
By doing this we have now registered the `NotificationService` file as class that contains one or more `@Tool` annotated methods. These methods become available to the LLM to be called.
0 commit comments