Skip to main content

last_active_ms

Function last_active_ms 

Source
pub(crate) fn last_active_ms(
    state: &AppState,
    uid: &str,
    block: &Block,
) -> Option<u64>
Expand description

When the agent’s transcript was last written (ms): its last turn. None when it has none. A turn is appended to the agent’s zone in the global transcript store and, unless that took it, to the block’s own zone in this channel’s store (an older layout kept the agent’s zone there too): the newest of them. The controller names the agent’s zone by the block’s agentId meta, which for a block launched from a template is the template’s id; the bound instance’s id (uid) names the other.