Skip to content

GenerateObjectStepStartEvent

Namespace: Vercel.AI.GenerateObject

public sealed class GenerateObjectStepStartEvent : GenerateObjectEvent

Event sent immediately before the generate-object model call.

Inheritance: object → GenerateObjectEvent

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 IReadOnlyList<ModelMessage>? PromptMessages { get; init; }

The prompt messages in provider format. Maps to promptMessages.

Value: IReadOnlyList<ModelMessage>

View source

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

Additional provider-specific options. Maps to providerOptions.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public int StepNumber { get; }

The only step number made by generateObject.

Value: int

View source

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