Skip to content

EmbedTelemetry

Namespace: Vercel.AI.Operations

public sealed class EmbedTelemetry

Telemetry callbacks for an embedding operation.

Inheritance: object

View source

public IReadOnlyDictionary<string, bool>? IncludeRuntimeContext { get; set; }

Runtime context keys included in telemetry events.

Value: IReadOnlyDictionary<string, bool>

View source

public Func<EmbeddingModelCallEvent, Task>? OnEmbedEnd { get; set; }

Called when a doEmbed call ends.

Value: Func<EmbeddingModelCallEvent, Task>

View source

public Func<EmbeddingModelCallEvent, Task>? OnEmbedStart { get; set; }

Called when a doEmbed call starts.

Value: Func<EmbeddingModelCallEvent, Task>

View source

public Func<EmbedEndEvent, Task>? OnEnd { get; set; }

Called when the operation ends. Receives filtered runtime context.

Value: Func<EmbedEndEvent, Task>

View source

public Func<string, Exception, Task>? OnError { get; set; }

Called when the operation fails.

Value: Func<string, Exception, Task>

View source

public Func<EmbedStartEvent, Task>? OnStart { get; set; }

Called when the operation starts. Receives filtered runtime context.

Value: Func<EmbedStartEvent, Task>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product