Interface EmbeddingStoreListener
A
EmbeddingStore listener that listens for requests, responses and errors.- Since:
- 1.11.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonError(EmbeddingStoreErrorContext<?> errorContext) This method is called when an error occurs during interaction with the embedding store.default voidonRequest(EmbeddingStoreRequestContext<?> requestContext) This method is called before the request is executed against the embedding store.default voidonResponse(EmbeddingStoreResponseContext<?> responseContext) This method is called after a successful operation completes.
-
Method Details
-
onRequest
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
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
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.
-