Build a smart DNS assistant using Quarkus, LangChain4j, and a local LLM.
Hi,
I tried to follow your tutorial, and it seems you are missing @ApplicationScoped annotation for DnsTools class. It will return java.lang.IllegalStateException: Unknown tool: error if no annotation added.
Hi! Thanks for the feedback! You were right. I forgot to add that to the blog. The class in the example repo had it: https://github.com/myfear/ejq_substack_articles/blob/main/dns-ai/src/main/java/org/acme/DnsTools.java
I'll try to be more diligent. It happens, when I develop first and try to adopt the blog after :)
Hi,
I tried to follow your tutorial, and it seems you are missing @ApplicationScoped annotation for DnsTools class. It will return java.lang.IllegalStateException: Unknown tool: error if no annotation added.
Hi! Thanks for the feedback! You were right. I forgot to add that to the blog. The class in the example repo had it: https://github.com/myfear/ejq_substack_articles/blob/main/dns-ai/src/main/java/org/acme/DnsTools.java
I'll try to be more diligent. It happens, when I develop first and try to adopt the blog after :)