EmbedStartEvent
Namespace: Vercel.AI.Operations
public sealed class EmbedStartEventStart event for embed and embedMany.
Inheritance: object
Constructors
Section titled “Constructors”EmbedStartEvent(string, string, IReadOnlyDictionary<string, object?>, string, string, EmbedEventValue<string, IReadOnlyList<string>>, int, IReadOnlyDictionary<string, string>, JsonElement?, int?)
Section titled “EmbedStartEvent(string, string, IReadOnlyDictionary<string, object?>, string, string, EmbedEventValue<string, IReadOnlyList<string>>, int, IReadOnlyDictionary<string, string>, JsonElement?, int?)”public EmbedStartEvent(string callId, string operationId, IReadOnlyDictionary<string, object?> runtimeContext, string provider, string modelId, EmbedEventValue<string, IReadOnlyList<string>> value, int maxRetries, IReadOnlyDictionary<string, string> headers, JsonElement? providerOptions, int? dimensions = null)Creates a start event.
Parameters
| Name | Type | Description |
|---|---|---|
callId |
string | |
operationId |
string | |
runtimeContext |
IReadOnlyDictionary<string, object> | |
provider |
string | |
modelId |
string | |
value |
EmbedEventValue<string, IReadOnlyList<string>> |
|
maxRetries |
int | |
headers |
IReadOnlyDictionary<string, string> | |
providerOptions |
JsonElement? | |
dimensions |
int? |
Properties
Section titled “Properties”CallId
Section titled “CallId”public string CallId { get; }Correlates start and end.
Value: string
Dimensions
Section titled “Dimensions”public int? Dimensions { get; }Requested output dimensions, when specified.
Value: int?
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Headers sent to the model.
Value: IReadOnlyDictionary<string, string>
MaxRetries
Section titled “MaxRetries”public int MaxRetries { get; }Resolved retry limit.
Value: int
ModelId
Section titled “ModelId”public string ModelId { get; }Model id.
Value: string
OperationId
Section titled “OperationId”public string OperationId { get; }ai.embed or ai.embedMany.
Value: string
Provider
Section titled “Provider”public string Provider { get; }Provider id.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; }Provider options.
Value: JsonElement?
RuntimeContext
Section titled “RuntimeContext”public IReadOnlyDictionary<string, object?> RuntimeContext { get; }Caller runtime context.
Value: IReadOnlyDictionary<string, object>
public EmbedEventValue<string, IReadOnlyList<string>> Value { get; }A string for embed, or the value list for embedMany.
Value: EmbedEventValue<string, IReadOnlyList<string>>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product