getSessionMetadata
Retrieve metadata associated with a session. Always returns an object — callers can check truthiness or iterate keys without a null guard.
Parameters
sessionId
The session identifier.
Returns
Record<string, unknown> — The metadata record for the session, or an empty
object ({}) when no metadata has been stored. This matches the Python SDK’s
get_session_metadata behavior.