Class TextContent
Text content in a message
public class TextContent : MessageContent
- Inheritance
-
TextContent
- Inherited Members
Constructors
TextContent(string)
public TextContent(string text)
Parameters
textstring
Properties
Text
public string Text { get; set; }
Property Value
Type
public override string Type { get; }
Property Value
Methods
EstimateTokens()
Estimates the token count for this content
public override uint EstimateTokens()
Returns
GetDescription()
Gets a display-friendly description of the content
public override string GetDescription()
Returns
ToRequestFormat(string)
Converts the content to the appropriate format for the specified AI provider
public override object ToRequestFormat(string provider)
Parameters
providerstring