Table of Contents

Class TextContent

Namespace
Mythosia.AI.Models.Messages
Assembly
Mythosia.AI.Abstractions.dll

Text content in a message

public class TextContent : MessageContent
Inheritance
TextContent
Inherited Members

Constructors

TextContent(string)

public TextContent(string text)

Parameters

text string

Properties

Text

public string Text { get; set; }

Property Value

string

Type

public override string Type { get; }

Property Value

string

Methods

EstimateTokens()

Estimates the token count for this content

public override uint EstimateTokens()

Returns

uint

GetDescription()

Gets a display-friendly description of the content

public override string GetDescription()

Returns

string

ToRequestFormat(string)

Converts the content to the appropriate format for the specified AI provider

public override object ToRequestFormat(string provider)

Parameters

provider string

Returns

object