Protected_ProtectedchangeProtectedchatProtectedchatProtectedchatProtecteddeserializerProtected ReadonlyloggerProtected ReadonlyonProtected ReadonlypendingProtectedpinProtectedsessionProtectedtoolProtectedvariableProtectedcancelOptionaloptions: SessionOptionsOptionalpinnedAgent: ChatAgentProtecteddeleteProtectedgetGet an existing session or restore from storage
Get all persisted session metadata. Note: This may trigger storage initialization if not already initialized.
ProtectedgetCheck if an agent is pinned, and use it if no other agent is mentioned.
Check if there are persisted sessions available.
ProtectedinitialProtectedisDetermines if chat agent pinning is enabled. Can be overridden by subclasses to provide different logic (e.g., using preferences).
ProtectedloadLoads a tool request from the registry or creates a fallback if not found.
ProtectedresolveProtectedrestoreProtectedrestoreProtectedrestoreDeserialize response content and restore changesets. Called after basic chat model structure was created.
ProtectedrestoreExtracts and resolves tool requests from serialized data. Looks up actual ToolRequest objects from the registry, or creates fallbacks if not found.
ProtectedsaveOptionaloptions: SessionOptionsProtectedsetupSet up auto-save for a session by listening to model changes.
Protectedupdate
In-flight session restores by id, so concurrent requests for the same session share one restore.