Skip to main content

Module session

Module session 

Source

Enums§

SessionSource
Source of the Claude session

Functions§

detect_automation
Detect whether message content was produced by a known automation tool. Returns the tool name if a marker is found, None otherwise.
extract_leaf_uuid
Extract leafUuid from a JSON record.
extract_parent_uuid
Extract parentUuid from a JSON record.
extract_record_type
Extract record type from a JSON record.
extract_session_id
Extract session ID from a JSON record. Supports both CLI format (sessionId) and Desktop format (session_id).
extract_timestamp
Extract timestamp from a JSON record. Supports both CLI format (timestamp) and Desktop format (_audit_timestamp).
extract_uuid
Extract uuid from a JSON record.
is_synthetic_linear_record
Whether a JSON record belongs to a synthetic linearized resume session.
mark_synthetic_linear_record
Mark a JSON record as belonging to a synthetic linearized resume session.