Session identifier
Session Identifier (session_id) is the ID that every run in a multi-turn conversation records, which ties the separate runs of one conversation together.
What it is.
Session Identifier (session_id) is the ID that every run in a multi-turn conversation records, which ties the separate runs of one conversation together. Where the runtime assigns its own session ID, that value is used unchanged.
What to consider.
Use these as a checklist when you review an agent. Tick each one you have covered.
Groups runs into conversations
All the runs belonging to one conversation share the same session_id.
Runtime value used as-is
No reformatting, prefixing or replacing, so the value matches the runtime's own logs and toolsToolA named operation an agent can call to act outside its own context, such as reading a record or sending a message. A tool is served by a tool server (an MCP server), has an Effect and can be called only if it is on the agent's allowlist. exactly.
Recorded where it applies
Multi-turn conversations carry it. Single, standalone runs may not.
Matching across systems
The runtime's view of a conversation can be joined directly with the governed records of it.
Why it matters.
A conversation often spans many runs, and the runtime and the governance system each keep their own records.
Using the runtime's ID unchanged lines the two views up exactly. Investigators can follow a whole conversation end to end without translation tables or guesswork.
Words that go with it.
Stuck on another word?
Every AI governance term, explained in plain English.