ReadonlysessionStable identifier that correlates traces across agent turns.
Adds artifacts to the session, deduplicating items by name. Emits 'artifactAdded' for new artifacts and 'artifactUpdated' for replacements.
Appends a list of messages to the session.
Retrieves the list of artifacts generated during the session.
Retrieves the custom state of the session.
Retrieves all messages associated with the session.
Returns a copy so callers cannot mutate the session's internal message array in place.
Returns a deep copy of the current session state.
Gets the current mutation version of the session state.
Overwrites the session messages.
State manager for a session turn, tracking messages, custom state, and artifacts.