Interface EmbeddingStoreListener


@Experimental public interface EmbeddingStoreListener
A EmbeddingStore listener that listens for requests, responses and errors.
Since:
1.11.0
  • Method Details

    • onRequest

      default void onRequest(EmbeddingStoreRequestContext<?> requestContext)
      This method is called before the request is executed against the embedding store.
      Parameters:
      requestContext - The request context. It contains operation details and attributes. The attributes can be used to pass data between methods of this listener or between multiple listeners.
    • onResponse

      default void onResponse(EmbeddingStoreResponseContext<?> responseContext)
      This method is called after a successful operation completes.
      Parameters:
      responseContext - The response context. It contains operation details and attributes. The attributes can be used to pass data between methods of this listener or between multiple listeners.
    • onError

      default void onError(EmbeddingStoreErrorContext<?> errorContext)
      This method is called when an error occurs during interaction with the embedding store.
      Parameters:
      errorContext - The error context. It contains the error, operation details and attributes. The attributes can be used to pass data between methods of this listener or between multiple listeners.