Table of Contents

Class ChatMessage

Namespace
AutoGen.Mistral
Assembly
AutoGen.Mistral.dll
public class ChatMessage
Inheritance
ChatMessage
Inherited Members

Constructors

ChatMessage(RoleEnum?, string?)

Initializes a new instance of the ChatMessage class.

public ChatMessage(ChatMessage.RoleEnum? role = null, string? content = null)

Parameters

role ChatMessage.RoleEnum?

role.

content string

content.

Properties

Content

Gets or Sets Content

[JsonPropertyName("content")]
public string? Content { get; set; }

Property Value

string

Name

Gets or Sets name for tool calls

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

Role

Gets or Sets Role

[JsonPropertyName("role")]
public ChatMessage.RoleEnum? Role { get; set; }

Property Value

ChatMessage.RoleEnum?

ToolCallId

[JsonPropertyName("tool_call_id")]
public string? ToolCallId { get; set; }

Property Value

string

ToolCalls

[JsonPropertyName("tool_calls")]
public List<FunctionContent>? ToolCalls { get; set; }

Property Value

List<FunctionContent>