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
valuestringannotationsIEnumerable<Annotation>
Properties
Annotations
Annotations
[JsonInclude]
[JsonPropertyName("annotations")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<Annotation> Annotations { get; }
Property Value
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
Methods
AppendFrom(TextContent)
public void AppendFrom(TextContent other)
Parameters
otherTextContent
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
contentTextContent
Returns
implicit operator TextContent(string)
public static implicit operator TextContent(string value)
Parameters
valuestring