Table of Contents

Class TextContent

Namespace
OpenAI.Responses
Assembly
OpenAI-DotNet.dll
public sealed class TextContent : BaseResponse, IListItem, IResponseContent, IServerSentEvent
Inheritance
TextContent
Implements
Inherited Members

Constructors

TextContent()

public TextContent()

TextContent(string)

public TextContent(string text)

Parameters

text string

Properties

Annotations

The annotations of the text output.

[JsonInclude]
[JsonPropertyName("annotations")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<IAnnotation> Annotations { get; }

Property Value

IReadOnlyList<IAnnotation>

Delta

[JsonInclude]
[JsonPropertyName("delta")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Delta { get; }

Property Value

string

LogProbs

A list of message content tokens with log probability information.

[JsonInclude]
[JsonPropertyName("logprobs")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<LogProbInfo> LogProbs { get; }

Property Value

IReadOnlyList<LogProbInfo>

Object

[JsonIgnore]
public string Object { get; }

Property Value

string

Text

[JsonInclude]
[JsonPropertyName("text")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Text { get; }

Property Value

string

Type

[JsonInclude]
[JsonPropertyName("type")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public ResponseContentType Type { get; }

Property Value

ResponseContentType

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator TextContent(string)

public static implicit operator TextContent(string value)

Parameters

value string

Returns

TextContent