AgentSessionExtensions Class

Definition

Provides extension methods for AgentSession.

public static class AgentSessionExtensions
type AgentSessionExtensions = class
Public Module AgentSessionExtensions
Inheritance
AgentSessionExtensions

Methods

Name Description
SetInMemoryChatHistory(AgentSession, List<ChatMessage>, String, JsonSerializerOptions)

Sets the in-memory chat message history for the specified agent session, replacing any existing messages.

TryGetInMemoryChatHistory(AgentSession, List<ChatMessage>, String, JsonSerializerOptions)

Attempts to retrieve the in-memory chat history messages associated with the specified agent session, if the agent is storing memories in the session using the InMemoryChatHistoryProvider

Applies to