Skip to main content

create

Function create 

Source
pub fn create(
    session: &str,
    keep_recent_turns: usize,
    summary: String,
) -> Result<(), String>
Expand description

Create a new directive for session. Fails when the session has no valid id, or when its previous one was created less than MIN_INTERVAL_SECS ago (rate limit — nothing is ever blocked, the agent simply keeps its current, already-compacted context).