pub struct CallOrigin {
pub session_id: String,
pub parent_session_id: Option<String>,
pub agent_type: Option<String>,
pub turn_id: Option<String>,
pub kind: CallKind,
}Expand description
Which session issued a call, and what the call is doing there.
Every model call has one, auxiliary calls included: naming the kind of call keeps the session known (so concurrent sessions’ auxiliary calls are not filed under one shared name) while still refusing to give an auxiliary call turn coordinates it does not have.
Fields§
§session_id: String§parent_session_id: Option<String>The session that spawned this one — a sub-agent’s parent. None for a
top-level session. This is what lets a set of recordings be read as one
tree rather than as unrelated files.
agent_type: Option<String>Which kind of agent this session runs, for a sub-agent that has one.
turn_id: Option<String>The turn this call belongs to, the same turn_id the session’s events carry; None for a call outside any turn or whose caller does not know it.
kind: CallKindImplementations§
Source§impl CallOrigin
impl CallOrigin
Sourcepub fn turn(session_id: impl Into<String>, turn: u32, step: u32) -> Self
pub fn turn(session_id: impl Into<String>, turn: u32, step: u32) -> Self
A turn-loop call in session_id.
Sourcepub fn auxiliary(
session_id: impl Into<String>,
purpose: impl Into<String>,
) -> Self
pub fn auxiliary( session_id: impl Into<String>, purpose: impl Into<String>, ) -> Self
A call outside any turn, still belonging to session_id.