Skip to content

ConvertToModelMessagesOptions

Namespace: Vercel.AI.Ui

public sealed class ConvertToModelMessagesOptions

Options of ConvertToModelMessagesOptions).

Inheritance: object

View source

public Func<DataUIPart, UserContentPart?>? ConvertDataPart { get; set; }

Converts a data part to a text or file part. Returns null if the part should be ignored.

Value: Func<DataUIPart, UserContentPart>

View source

public bool IgnoreIncompleteToolCalls { get; set; }

Whether to ignore incomplete tool calls. Default is false.

Value: bool

View source

public IReadOnlyDictionary<string, Tool>? Tools { get; set; }

The tools to use, by name.

Value: IReadOnlyDictionary<string, Tool>

View source

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