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
stringThe type of the content.
Content(string, CacheControl)
Initializes a new instance of the Content class.
protected Content(string type, CacheControl cacheControl)
Parameters
type
stringThe type of the content.
cacheControl
CacheControlThe 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; }