Skip to content

OpenAICompatibleContentPart

Namespace: Vercel.AI.OpenAICompatible

public sealed class OpenAICompatibleContentPart

One text or reasoning fragment from a Chat Completions content field.

Inheritance: object

View source

public OpenAICompatibleContentPart(bool reasoning, string text)

Creates a fragment.

Parameters

Name Type Description
reasoning bool
text string

View source

public bool Reasoning { get; }

True when the fragment is reasoning.

Value: bool

View source

public string Text { get; }

Fragment text.

Value: string

View source

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