Table of Contents

Class ChatMessage

Namespace
AutoGen.Anthropic.DTO
Assembly
AutoGen.Anthropic.dll
public class ChatMessage
Inheritance
ChatMessage
Inherited Members

Constructors

ChatMessage(string, List<ContentBase>)

public ChatMessage(string role, List<ContentBase> content)

Parameters

role string
content List<ContentBase>

ChatMessage(string, string)

public ChatMessage(string role, string content)

Parameters

role string
content string

Properties

Content

[JsonPropertyName("content")]
public List<ContentBase> Content { get; set; }

Property Value

List<ContentBase>

Role

[JsonPropertyName("role")]
public string Role { get; set; }

Property Value

string

Methods

AddContent(ContentBase)

public void AddContent(ContentBase content)

Parameters

content ContentBase