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
typestringThe type of the content.
Content(string, CacheControl)
Initializes a new instance of the Content class.
protected Content(string type, CacheControl cacheControl)
Parameters
typestringThe type of the content.
cacheControlCacheControlThe 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
Type
Gets the type of the content.
public string Type { get; init; }