Share via


ChatHistoryAgentThread Constructors

Definition

Overloads

ChatHistoryAgentThread()

Initializes a new instance of the ChatHistoryAgentThread class.

ChatHistoryAgentThread(ChatHistory, String)

Initializes a new instance of the ChatHistoryAgentThread class that resumes an existing thread.

ChatHistoryAgentThread()

Initializes a new instance of the ChatHistoryAgentThread class.

public ChatHistoryAgentThread();
Public Sub New ()

Applies to

ChatHistoryAgentThread(ChatHistory, String)

Initializes a new instance of the ChatHistoryAgentThread class that resumes an existing thread.

public ChatHistoryAgentThread(Microsoft.SemanticKernel.ChatCompletion.ChatHistory chatHistory, string? id = default);
new Microsoft.SemanticKernel.Agents.ChatHistoryAgentThread : Microsoft.SemanticKernel.ChatCompletion.ChatHistory * string -> Microsoft.SemanticKernel.Agents.ChatHistoryAgentThread
Public Sub New (chatHistory As ChatHistory, Optional id As String = Nothing)

Parameters

chatHistory
ChatHistory

An existing chat history to base this thread on.

id
String

The id of the existing thread. If not provided, a new one will be generated.

Applies to