TsgcAIOpenAIEmbeddings › Events

TsgcAIOpenAIEmbeddings Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Batch lifecycle

NameDescription
OnCreateEmbeddingsStartFired once when a batch of embeddings starts, reporting the total input size.
OnCreateEmbeddingsProgressFired after each chunk is processed, reporting the current position in the input.
OnCreateEmbeddingsStopFired once when the batch of embeddings has finished.

Per-embedding

NameDescription
OnBeforeCreateEmbeddingFired before each chunk is sent, allowing the request to be inspected or skipped.
OnAfterCreateEmbeddingFired after each chunk is processed, exposing the OpenAI request and response.

All Events (alphabetical)

NameDescription
OnAfterCreateEmbeddingFired after each chunk is processed, exposing the OpenAI request and response.
OnBeforeCreateEmbeddingFired before each chunk is sent, allowing the request to be inspected or skipped.
OnCreateEmbeddingsProgressFired after each chunk is processed, reporting the current position in the input.
OnCreateEmbeddingsStartFired once when a batch of embeddings starts, reporting the total input size.
OnCreateEmbeddingsStopFired once when the batch of embeddings has finished.