Skip to content

GenerateObjectStartEvent

Namespace: Vercel.AI.GenerateObject

public sealed class GenerateObjectStartEvent : GenerateObjectEvent, IOperationStartEvent

Event sent before object generation begins.

Inheritance: object → GenerateObjectEvent

Implements: IOperationStartEvent

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 int? MaxOutputTokens { get; init; }

Maximum number of tokens to generate. 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; }

The prompt messages, when supplied.

Value: IReadOnlyList<ModelMessage>

View source

public string OperationId { get; init; }

Identifies the operation type, ai.generateObject or ai.streamObject. Maps to operationId.

Value: string

View source

public string Output { get; init; }

The output strategy type: object, array, enum or no-schema. Maps to output.

Value: string

View source

public double? PresencePenalty { get; init; }

Presence penalty. Maps to presencePenalty.

Value: double?

View source

public string? Prompt { get; }

The simple prompt, when supplied.

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 JsonElement? Schema { get; init; }

The JSON Schema used for object generation, if any. Maps to schema.

Value: JsonElement?

View source

public string? SchemaDescription { get; init; }

Optional description of the schema. Maps to schemaDescription.

Value: string

View source

public string? SchemaName { get; init; }

Optional name of the schema. Maps to schemaName.

Value: string

View source

public int? Seed { get; init; }

Random seed. Maps to seed.

Value: int?

View source

public Instructions? System { get; init; }

The system message(s) provided to the model. Maps to system.

Value: Instructions

View source

public double? Temperature { get; init; }

Sampling temperature. Maps to temperature.

Value: double?

View source

public int? TopK { get; init; }

Top-k sampling parameter. Maps to topK.

Value: int?

View source

public double? TopP { get; init; }

Top-p sampling parameter. Maps to topP.

Value: double?

View source

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