Share via


AgentChatSerializer Class

Definition

Serializes and deserializes an AgentChat.

public sealed class AgentChatSerializer
type AgentChatSerializer = class
Public NotInheritable Class AgentChatSerializer
Inheritance
AgentChatSerializer

Properties

Participants

Gets the participants of the original AgentChat so that the caller can include them in the restored AgentChat.

Methods

DeserializeAsync(Stream, JsonSerializerOptions)

Provides a AgentChatSerializer that's able to restore an AgentChat.

DeserializeAsync<TChat>(TChat)

Restores the AgentChat to the previously captured state.

SerializeAsync<TChat>(TChat, Stream, JsonSerializerOptions)

Serializes the provided AgentChat to the target stream.

Applies to