pub fn parse_session(document: &Value, session_id: &str) -> Option<Conversation>Expand description
Read a Gemini chat session into the universal conversation format.
session_id is the identity the archive is recorded under. The document’s
own sessionId is used when the caller has none — a hook payload that named
no session is still a session.