GenerateObjectStartEvent
Namespace: Vercel.AI.GenerateObject
public sealed class GenerateObjectStartEvent : GenerateObjectEvent, IOperationStartEventEvent sent before object generation begins.
Inheritance: object → GenerateObjectEvent
Implements: IOperationStartEvent
Properties
Section titled “Properties”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>
MaxOutputTokens
Section titled “MaxOutputTokens”public int? MaxOutputTokens { get; init; }Maximum number of tokens to generate. 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; }The prompt messages, when supplied.
Value: IReadOnlyList<ModelMessage>
OperationId
Section titled “OperationId”public string OperationId { get; init; }Identifies the operation type, ai.generateObject or ai.streamObject. Maps to operationId.
Value: string
Output
Section titled “Output”public string Output { get; init; }The output strategy type: object, array, enum or no-schema. Maps to output.
Value: string
PresencePenalty
Section titled “PresencePenalty”public double? PresencePenalty { get; init; }Presence penalty. Maps to presencePenalty.
Value: double?
Prompt
Section titled “Prompt”public string? Prompt { get; }The simple prompt, when supplied.
Value: string
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }Additional provider-specific options. Maps to providerOptions.
Value: IReadOnlyDictionary<string, JsonElement>
Schema
Section titled “Schema”public JsonElement? Schema { get; init; }The JSON Schema used for object generation, if any. Maps to schema.
Value: JsonElement?
SchemaDescription
Section titled “SchemaDescription”public string? SchemaDescription { get; init; }Optional description of the schema. Maps to schemaDescription.
Value: string
SchemaName
Section titled “SchemaName”public string? SchemaName { get; init; }Optional name of the schema. Maps to schemaName.
Value: string
public int? Seed { get; init; }Random seed. Maps to seed.
Value: int?
System
Section titled “System”public Instructions? System { get; init; }The system message(s) provided to the model. Maps to system.
Value: Instructions
Temperature
Section titled “Temperature”public double? Temperature { get; init; }Sampling temperature. Maps to temperature.
Value: double?
public int? TopK { get; init; }Top-k sampling parameter. Maps to topK.
Value: int?
public double? TopP { get; init; }Top-p sampling parameter. Maps to topP.
Value: double?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product