Skip to content

GeneratedReasoning

Namespace: Vercel.AI.Provider

public class GeneratedReasoning : GeneratedContent

Reasoning text kept separate from the answer.

Inheritance: object → GeneratedContent

Derived: GoogleReasoning, HuggingFaceReasoning, XaiReasoning

View source

public GeneratedReasoning(string text)

Creates reasoning content.

Parameters

Name Type Description
text string

View source

public GeneratedReasoning(string text, JsonElement? providerMetadata)

Creates reasoning content that carries provider metadata, such as an itemId or encrypted content.

Parameters

Name Type Description
text string
providerMetadata JsonElement?

View source

public JsonElement? ProviderMetadata { get; }

Provider metadata for this reasoning, keyed by provider name.

Value: JsonElement?

View source

public string Text { get; }

Reasoning text.

Value: string

View source

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