Skip to content

AgentPrismSessionStateKeys

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The stable keys AgentPrism uses in an AgentSession state bag.

public static class AgentPrismSessionStateKeys

objectAgentPrismSessionStateKeys

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

These values are stable; changing them breaks existing sessions’ history.

The key the chat history provider stores the conversation identifier under.

public const string ChatHistory = "AgentPrism.ChatHistory"

string

The provider instance is shared across all sessions (Microsoft Agent Framework’s explicit warning), so the conversation identifier is carried in the session’s own state, not in the provider’s field.