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 Type
    Method
    Description
    void
    complete(Audit audit)
    Invoked just before the AiService method returns its result - or throws an exception.
    Invoked when an AiService method is invoked and before any interaction with the LLM is performed.
  • Method Details

    • create

      Audit create(Audit.CreateInfo createInfo)
      Invoked when an AiService method is invoked and before any interaction with the LLM is performed.
    • complete

      void complete(Audit audit)
      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.