Class ChatMessage
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
stringcontent.
Properties
Content
Gets or Sets Content
[JsonPropertyName("content")]
public string? Content { get; set; }
Property Value
Name
Gets or Sets name for tool calls
[JsonPropertyName("name")]
public string? Name { get; set; }
Property Value
Role
Gets or Sets Role
[JsonPropertyName("role")]
public ChatMessage.RoleEnum? Role { get; set; }
Property Value
ToolCallId
[JsonPropertyName("tool_call_id")]
public string? ToolCallId { get; set; }
Property Value
ToolCalls
[JsonPropertyName("tool_calls")]
public List<FunctionContent>? ToolCalls { get; set; }