Before you begin
Before you start, make sure you have:- Bearer credential and shell variables:
ATLAN_GATEWAY_URLandATLAN_TOKENset in your shell. See Connect to Agent Registry. - Agent ID: The
AGENT_IDof a registered agent whose sessions you want to inspect. - Session ID (optional): If you already know which session to read, export
SESSION_IDnow. If not, the first step below retrieves it.
Inspect your sessions
1
List sessions for your agent
Filter sessions by agent to see all runs the Registry has recorded for it.
Pass The response is a paginated list. Each item includes the session
subject_kind and subject_id as query parameters.id,
name, session_status, model_id, stop_reason, and source_created_at.
Pick the session ID you want to inspect and set it:2
Read session metadata
A session record holds everything about the run except its messages:
which agent ran, which model was used, how it ended, and when it happened.Key fields to look at:
3
Retrieve transcript
Messages are stored separately from session metadata. Retrieve them in one
call by session ID.Messages are ordered by
sequence_number. Each message has a
message_role (user or assistant) and a content field with the
turn text.Confirm the message count, roles, and order match what you expect. If
messages are missing, check whether they were recorded with the correct
session_id path and sequence_number.