Table of Contents

Class TextContent

Namespace
AnthropicClient.Models
Assembly
AnthropicClient.dll

Represents text content that is part of a message.

public class TextContent : Content
Inheritance
TextContent
Inherited Members

Constructors

TextContent(string)

Initializes a new instance of the TextContent class.

public TextContent(string text)

Parameters

text string

The text of the content.

Exceptions

ArgumentNullException

Thrown when the text is null.

Properties

Text

Gets the text of the content.

public string Text { get; init; }

Property Value

string