EmbedTelemetry
Namespace: Vercel.AI.Operations
public sealed class EmbedTelemetryTelemetry callbacks for an embedding operation.
Inheritance: object
Properties
Section titled “Properties”IncludeRuntimeContext
Section titled “IncludeRuntimeContext”public IReadOnlyDictionary<string, bool>? IncludeRuntimeContext { get; set; }Runtime context keys included in telemetry events.
Value: IReadOnlyDictionary<string, bool>
OnEmbedEnd
Section titled “OnEmbedEnd”public Func<EmbeddingModelCallEvent, Task>? OnEmbedEnd { get; set; }Called when a doEmbed call ends.
Value: Func<EmbeddingModelCallEvent, Task>
OnEmbedStart
Section titled “OnEmbedStart”public Func<EmbeddingModelCallEvent, Task>? OnEmbedStart { get; set; }Called when a doEmbed call starts.
Value: Func<EmbeddingModelCallEvent, Task>
public Func<EmbedEndEvent, Task>? OnEnd { get; set; }Called when the operation ends. Receives filtered runtime context.
Value: Func<EmbedEndEvent, Task>
OnError
Section titled “OnError”public Func<string, Exception, Task>? OnError { get; set; }Called when the operation fails.
Value: Func<string, Exception, Task>
OnStart
Section titled “OnStart”public Func<EmbedStartEvent, Task>? OnStart { get; set; }Called when the operation starts. Receives filtered runtime context.
Value: Func<EmbedStartEvent, Task>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product