Skip to content

Commit

Permalink
Deprecate auditing stuff
Browse files Browse the repository at this point in the history
Fixes #1218
  • Loading branch information
edeandrea committed Jan 14, 2025
1 parent e0f1362 commit 148c22e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@

/**
* Abstract class to be implemented in order to keep track of whatever information is useful for the application auditing.
* <p>
*
* @deprecated All the auditing stuff is going to be re-written, so don't use any of this stuff
* @see <a href=
* "https://github.com/quarkiverse/quarkus-langchain4j/issues/1217">https://github.com/quarkiverse/quarkus-langchain4j/issues/1217</a>
* </p>
*/
@Deprecated(forRemoval = true)
public abstract class Audit {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
* <p>
* When using {@link io.quarkiverse.langchain4j.RegisterAiService} if the application provides an implementation
* of {@link AuditService} that is a CDI bean, it will be used by default.
* </p>
* <p>
*
* @deprecated All the auditing stuff is going to be re-written, so don't use any of this stuff
* @see <a href=
* "https://github.com/quarkiverse/quarkus-langchain4j/issues/1217">https://github.com/quarkiverse/quarkus-langchain4j/issues/1217</a>
* </p>
*/
@Deprecated(forRemoval = true)
public interface AuditService {

/**
Expand Down
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/ai-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ The extension allows users to audit the process of implementing an AiService by
By default, if a bean of type `AuditService` is present in the application, it will be used in order to create an `Audit`, which received various callbacks pertaining to the implementation
of the AiService method. More information can be found on the javadoc of these two classes.

CAUTION: The above-mentioned auditing capabilities are https://github.com/quarkiverse/quarkus-langchain4j/issues/1217[in process of being re-written]. Until that is complete it is advised to not use the auditing features.

=== Working with images

An _AI Service_ can also be used when working with images, both to describe an image and to generate one.
Expand Down

0 comments on commit 148c22e

Please sign in to comment.