EmbeddingModelCallEvent
Namespace: Vercel.AI.Operations
public sealed class EmbeddingModelCallEventOne inner doEmbed telemetry event.
Inheritance: object
Constructors
Section titled “Constructors”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? |
Properties
Section titled “Properties”CallId
Section titled “CallId”public string CallId { get; }Operation call id.
Value: string
Dimensions
Section titled “Dimensions”public int? Dimensions { get; }Requested output dimensions, when specified.
Value: int?
EmbedCallId
Section titled “EmbedCallId”public string EmbedCallId { get; }Id of this doEmbed invocation.
Value: string
Embeddings
Section titled “Embeddings”public IReadOnlyList<double[]>? Embeddings { get; }Embeddings, on the end event.
Value: IReadOnlyList<double[]>
ModelId
Section titled “ModelId”public string ModelId { get; }Model id.
Value: string
OperationId
Section titled “OperationId”public string OperationId { get; }ai.embed.doEmbed or ai.embedMany.doEmbed.
Value: string
Provider
Section titled “Provider”public string Provider { get; }Provider id.
Value: string
public OperationUsage? Usage { get; }Usage, on the end event.
Value: OperationUsage
Values
Section titled “Values”public IReadOnlyList<string> Values { get; }Values in this call.
Value: IReadOnlyList<string>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product