Skip to content

EmbeddingModelCallEvent

Namespace: Vercel.AI.Operations

public sealed class EmbeddingModelCallEvent

One inner doEmbed telemetry event.

Inheritance: object

View source

EmbeddingModelCallEvent(string, string, string, string, string, IReadOnlyList<string>, IReadOnlyList<double[]>?, OperationUsage?, int?)

Section titled “EmbeddingModelCallEvent(string, string, string, string, string, IReadOnlyList<string>, IReadOnlyList<double[]>?, OperationUsage?, int?)”
public EmbeddingModelCallEvent(string callId, string embedCallId, string operationId, string provider, string modelId, IReadOnlyList<string> values, IReadOnlyList<double[]>? embeddings, OperationUsage? usage, int? dimensions = null)

Creates the event.

Parameters

Name Type Description
callId string
embedCallId string
operationId string
provider string
modelId string
values IReadOnlyList<string>
embeddings IReadOnlyList<double[]>
usage OperationUsage
dimensions int?

View source

public string CallId { get; }

Operation call id.

Value: string

View source

public int? Dimensions { get; }

Requested output dimensions, when specified.

Value: int?

View source

public string EmbedCallId { get; }

Id of this doEmbed invocation.

Value: string

View source

public IReadOnlyList<double[]>? Embeddings { get; }

Embeddings, on the end event.

Value: IReadOnlyList<double[]>

View source

public string ModelId { get; }

Model id.

Value: string

View source

public string OperationId { get; }

ai.embed.doEmbed or ai.embedMany.doEmbed.

Value: string

View source

public string Provider { get; }

Provider id.

Value: string

View source

public OperationUsage? Usage { get; }

Usage, on the end event.

Value: OperationUsage

View source

public IReadOnlyList<string> Values { get; }

Values in this call.

Value: IReadOnlyList<string>

View source

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