pub struct CallRecord {Show 16 fields
pub seq: u64,
pub ts: u64,
pub session_id: Option<String>,
pub parent_session_id: Option<String>,
pub agent_type: Option<String>,
pub turn_id: Option<String>,
pub turn: u32,
pub step: u32,
pub purpose: Option<String>,
pub provider: String,
pub api_type: ApiType,
pub params: RecordedParams,
pub system: Vec<BlobId>,
pub tools: BlobId,
pub messages: Vec<BlobId>,
pub input_map: Option<InputMap>,
}Fields§
§seq: u64§ts: u64§session_id: Option<String>Which session issued this call. The header names one session, but a recording configured with an explicit name holds a parent’s calls and its sub-agents’ interleaved, and replay hands each live session only its own — so the file has to say per call, not once at the top.
parent_session_id: Option<String>The lineage of session_id, repeated on every call for the same reason
session_id is: the header can only describe one session, and a
recording written under an explicit name holds several. Without this a
sub-agent’s parentage is simply absent from any recording but its own.
agent_type: Option<String>§turn_id: Option<String>The turn this call belongs to, as the session’s events name it.
turn: u32§step: u32§purpose: Option<String>Present for a call made outside any turn — compact, memory, and so
on; the conventional values are
base::interface::model::call_purpose’s constants. Absent
for turn work, where turn/step are the coordinates that mean
something. Deliberately not part of the replay divergence check.
provider: String§api_type: ApiType§params: RecordedParams§system: Vec<BlobId>One entry per assembled prompt block, in order. Kept per block rather than joined: the boundaries are what tell the system prompt, the skills inventory, and MCP instructions apart.
tools: BlobId§messages: Vec<BlobId>§input_map: Option<InputMap>What the turn’s user message is made of, as coordinates over
messages. Absent for a call that started no turn, or when compaction
folded the message away before this call went out.