GenerateTextStartEvent
Namespace: Vercel.AI
public sealed class GenerateTextStartEvent : IOperationStartEventPassed to OnStart when the generation begins, before any model call. Maps to GenerateTextStartEvent.
Inheritance: object
Implements: IOperationStartEvent
Properties
Section titled “Properties”ActiveTools
Section titled “ActiveTools”public IReadOnlyList<string>? ActiveTools { get; init; }Limits which tools are available for the model to call. Maps to activeTools.
Value: IReadOnlyList<string>
CallId
Section titled “CallId”public string CallId { get; init; }Unique identifier for this generation call, used to correlate events. Maps to callId.
Value: string
FrequencyPenalty
Section titled “FrequencyPenalty”public double? FrequencyPenalty { get; init; }Frequency penalty. Maps to frequencyPenalty.
Value: double?
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string?>? Headers { get; init; }Additional HTTP headers sent with the request. Maps to headers.
Value: IReadOnlyDictionary<string, string>
Instructions
Section titled “Instructions”public Instructions? Instructions { get; init; }Instructions of the call. Maps to instructions.
Value: Instructions
MaxOutputTokens
Section titled “MaxOutputTokens”public int? MaxOutputTokens { get; init; }Maximum output tokens. Maps to maxOutputTokens.
Value: int?
MaxRetries
Section titled “MaxRetries”public int MaxRetries { get; init; }Maximum number of retries for failed requests. Maps to maxRetries.
Value: int
Messages
Section titled “Messages”public IReadOnlyList<ModelMessage> Messages { get; init; }Messages of the call, without the instructions. Maps to messages.
Value: IReadOnlyList<ModelMessage>
ModelId
Section titled “ModelId”public string ModelId { get; init; }The model identifier. Maps to modelId.
Value: string
OperationId
Section titled “OperationId”public string OperationId { get; init; }Identifies the operation type, ai.generateText. Maps to operationId.
Value: string
Output
Section titled “Output”public OutputSpec? Output { get; init; }The output specification for structured outputs, if configured. Maps to output.
Value: OutputSpec
PresencePenalty
Section titled “PresencePenalty”public double? PresencePenalty { get; init; }Presence penalty. Maps to presencePenalty.
Value: double?
Provider
Section titled “Provider”public string Provider { get; init; }The provider identifier. Maps to provider.
Value: string
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }Additional provider-specific options. Maps to providerOptions.
Value: IReadOnlyDictionary<string, JsonElement>
Reasoning
Section titled “Reasoning”public string? Reasoning { get; init; }Reasoning effort. Maps to reasoning.
Value: string
RuntimeContext
Section titled “RuntimeContext”public IReadOnlyDictionary<string, object?>? RuntimeContext { get; init; }User-defined runtime context. Maps to runtimeContext.
Value: IReadOnlyDictionary<string, object>
public int? Seed { get; init; }Seed. Maps to seed.
Value: int?
StopSequences
Section titled “StopSequences”public IReadOnlyList<string>? StopSequences { get; init; }Stop sequences. Maps to stopSequences.
Value: IReadOnlyList<string>
Temperature
Section titled “Temperature”public double? Temperature { get; init; }Temperature. Maps to temperature.
Value: double?
Timeout
Section titled “Timeout”public TimeoutConfiguration? Timeout { get; init; }Timeout configuration for the generation. Maps to timeout.
Value: TimeoutConfiguration
ToolChoice
Section titled “ToolChoice”public ToolChoice? ToolChoice { get; init; }The tool choice strategy for this generation. Maps to toolChoice.
Value: ToolChoice
ToolOrder
Section titled “ToolOrder”public IReadOnlyList<string>? ToolOrder { get; init; }Controls the order in which tools are sent to the provider. Maps to toolOrder.
Value: IReadOnlyList<string>
public IReadOnlyList<Tool>? Tools { get; init; }The tools available for this generation. Maps to tools.
Value: IReadOnlyList<Tool>
ToolsContext
Section titled “ToolsContext”public IReadOnlyDictionary<string, JsonElement>? ToolsContext { get; init; }Tool context, keyed by tool name. Maps to toolsContext.
Value: IReadOnlyDictionary<string, JsonElement>
public int? TopK { get; init; }Top-k. Maps to topK.
Value: int?
public double? TopP { get; init; }Top-p. Maps to topP.
Value: double?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product