Table of Contents

Class TextContent

Namespace
OpenAI
Assembly
OpenAI-DotNet.dll
public sealed class TextContent
Inheritance
TextContent
Inherited Members

Constructors

TextContent()

public TextContent()

TextContent(string, IEnumerable<Annotation>)

public TextContent(string value, IEnumerable<Annotation> annotations = null)

Parameters

value string
annotations IEnumerable<Annotation>

Properties

Annotations

Annotations

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

Property Value

IReadOnlyList<Annotation>

Index

[JsonInclude]
[JsonPropertyName("index")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public int? Index { get; }

Property Value

int?

Value

The data that makes up the text.

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

Property Value

string

Methods

AppendFrom(TextContent)

public void AppendFrom(TextContent other)

Parameters

other TextContent

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 string(TextContent)

public static implicit operator string(TextContent content)

Parameters

content TextContent

Returns

string

implicit operator TextContent(string)

public static implicit operator TextContent(string value)

Parameters

value string

Returns

TextContent