Skip to content

GenerateTextStartEvent

Namespace: Vercel.AI

public sealed class GenerateTextStartEvent : IOperationStartEvent

Passed to OnStart when the generation begins, before any model call. Maps to GenerateTextStartEvent.

Inheritance: object

Implements: IOperationStartEvent

View source

public IReadOnlyList<string>? ActiveTools { get; init; }

Limits which tools are available for the model to call. Maps to activeTools.

Value: IReadOnlyList<string>

View source

public string CallId { get; init; }

Unique identifier for this generation call, used to correlate events. Maps to callId.

Value: string

View source

public double? FrequencyPenalty { get; init; }

Frequency penalty. Maps to frequencyPenalty.

Value: double?

View source

public IReadOnlyDictionary<string, string?>? Headers { get; init; }

Additional HTTP headers sent with the request. Maps to headers.

Value: IReadOnlyDictionary<string, string>

View source

public Instructions? Instructions { get; init; }

Instructions of the call. Maps to instructions.

Value: Instructions

View source

public int? MaxOutputTokens { get; init; }

Maximum output tokens. Maps to maxOutputTokens.

Value: int?

View source

public int MaxRetries { get; init; }

Maximum number of retries for failed requests. Maps to maxRetries.

Value: int

View source

public IReadOnlyList<ModelMessage> Messages { get; init; }

Messages of the call, without the instructions. Maps to messages.

Value: IReadOnlyList<ModelMessage>

View source

public string ModelId { get; init; }

The model identifier. Maps to modelId.

Value: string

View source

public string OperationId { get; init; }

Identifies the operation type, ai.generateText. Maps to operationId.

Value: string

View source

public OutputSpec? Output { get; init; }

The output specification for structured outputs, if configured. Maps to output.

Value: OutputSpec

View source

public double? PresencePenalty { get; init; }

Presence penalty. Maps to presencePenalty.

Value: double?

View source

public string Provider { get; init; }

The provider identifier. Maps to provider.

Value: string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }

Additional provider-specific options. Maps to providerOptions.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public string? Reasoning { get; init; }

Reasoning effort. Maps to reasoning.

Value: string

View source

public IReadOnlyDictionary<string, object?>? RuntimeContext { get; init; }

User-defined runtime context. Maps to runtimeContext.

Value: IReadOnlyDictionary<string, object>

View source

public int? Seed { get; init; }

Seed. Maps to seed.

Value: int?

View source

public IReadOnlyList<string>? StopSequences { get; init; }

Stop sequences. Maps to stopSequences.

Value: IReadOnlyList<string>

View source

public double? Temperature { get; init; }

Temperature. Maps to temperature.

Value: double?

View source

public TimeoutConfiguration? Timeout { get; init; }

Timeout configuration for the generation. Maps to timeout.

Value: TimeoutConfiguration

View source

public ToolChoice? ToolChoice { get; init; }

The tool choice strategy for this generation. Maps to toolChoice.

Value: ToolChoice

View source

public IReadOnlyList<string>? ToolOrder { get; init; }

Controls the order in which tools are sent to the provider. Maps to toolOrder.

Value: IReadOnlyList<string>

View source

public IReadOnlyList<Tool>? Tools { get; init; }

The tools available for this generation. Maps to tools.

Value: IReadOnlyList<Tool>

View source

public IReadOnlyDictionary<string, JsonElement>? ToolsContext { get; init; }

Tool context, keyed by tool name. Maps to toolsContext.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public int? TopK { get; init; }

Top-k. Maps to topK.

Value: int?

View source

public double? TopP { get; init; }

Top-p. Maps to topP.

Value: double?

View source

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