Table of Contents

Class Content

Namespace
AnthropicClient.Models
Assembly
AnthropicClient.dll

Represents part of the content of a message.

public abstract class Content
Inheritance
Content
Derived
Inherited Members

Constructors

Content(string)

Initializes a new instance of the Content class.

protected Content(string type)

Parameters

type string

The type of the content.

Content(string, CacheControl)

Initializes a new instance of the Content class.

protected Content(string type, CacheControl cacheControl)

Parameters

type string

The type of the content.

cacheControl CacheControl

The cache control to be used for the content.

Properties

CacheControl

Gets the cache control to be used for the content.

[JsonPropertyName("cache_control")]
public CacheControl? CacheControl { get; set; }

Property Value

CacheControl

Type

Gets the type of the content.

public string Type { get; init; }

Property Value

string