Skip to main content

compact

Function compact 

Source
pub async fn compact(
    agent: &Agent,
    instructions: Option<&str>,
) -> Result<AgentStream, AgentError>
Expand description

Compact the session’s context now.