Skip to content

PrepareStepUpdate

Namespace: Vercel.AI

public sealed class PrepareStepUpdate

Optional changes applied before a step.

Inheritance: object

View source

public Instructions? Instructions { get; set; }

Replacement instructions. The override carries forward to later steps.

Value: Instructions

View source

public IReadOnlyList<ModelMessage>? Messages { get; set; }

Replacement prompt, without the instructions. The override carries forward to later steps.

Value: IReadOnlyList<ModelMessage>

View source

public ILanguageModel? Model { get; set; }

Replacement model.

Value: ILanguageModel

View source

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>

View source

public ToolChoice? ToolChoice { get; set; }

Replacement tool choice for this step.

Value: ToolChoice

View source

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