Skip to main content

head_session

Function head_session 

Source
pub(crate) fn head_session(
    segments: &[Segment],
    current: Option<&str>,
) -> Option<String>
Expand description

The provider session the agent’s conversation was last in: the session of the newest segment, other than current (the spawn now running or just failed), that has one. None when the agent has no such segment.