Class TextContent
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
Delta
[JsonInclude]
[JsonPropertyName("delta")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Delta { get; }
Property Value
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
Object
[JsonIgnore]
public string Object { get; }
Property Value
Text
[JsonInclude]
[JsonPropertyName("text")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Text { get; }
Property Value
Type
[JsonInclude]
[JsonPropertyName("type")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public ResponseContentType Type { get; }
Property Value
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