Skip to content

PruneReasoning

Namespace: Vercel.AI.GenerateText

public enum PruneReasoning

How PruneMessages(PruneMessagesOptions) removes reasoning from assistant messages.

View source

All = 1

Remove reasoning from every assistant message.

Value: PruneReasoning

View source

BeforeLastMessage = 2

Remove reasoning from every assistant message except the last message.

Value: PruneReasoning

View source

None = 0

Keep all reasoning.

Value: PruneReasoning

View source

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