PrepareStepUpdate
Namespace: Vercel.AI
public sealed class PrepareStepUpdateOptional changes applied before a step.
Inheritance: object
Properties
Section titled “Properties”Instructions
Section titled “Instructions”public Instructions? Instructions { get; set; }Replacement instructions. The override carries forward to later steps.
Value: Instructions
Messages
Section titled “Messages”public IReadOnlyList<ModelMessage>? Messages { get; set; }Replacement prompt, without the instructions. The override carries forward to later steps.
Value: IReadOnlyList<ModelMessage>
public ILanguageModel? Model { get; set; }Replacement model.
Value: ILanguageModel
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }Provider options for this step, such as an Anthropic container id. They are deep-merged onto the call’s provider options.
Value: IReadOnlyDictionary<string, JsonElement>
ToolChoice
Section titled “ToolChoice”public ToolChoice? ToolChoice { get; set; }Replacement tool choice for this step.
Value: ToolChoice
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product