Package io.quarkiverse.langchain4j.audit
Interface AuditService
public interface AuditService
Allow applications to audit parts of the interactions with the LLM that interest them
When using RegisterAiService if the application provides an implementation
of AuditService that is a CDI bean, it will be used by default.
-
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked just before the AiService method returns its result - or throws an exception.create(Audit.CreateInfo createInfo) Invoked when an AiService method is invoked and before any interaction with the LLM is performed.
-
Method Details
-
create
Invoked when an AiService method is invoked and before any interaction with the LLM is performed. -
complete
Invoked just before the AiService method returns its result - or throws an exception. The parameter is meant to be built up by implementing its callbacks.
-