Skip to main content

everruns_engine/execution/reason/
background_call.rs

1//! Durable background-response context for the Reason LLM call (EVE-1134).
2
3use everruns_contracts::background_call::BackgroundCallContext;
4
5impl super::ReasonAtom {
6    /// Let a background provider call survive a worker restart and stop on an
7    /// explicit turn cancel. The host scopes the context to this turn; the atom
8    /// hands it to every LLM call it makes.
9    pub fn with_background_call(mut self, context: BackgroundCallContext) -> Self {
10        self.background_call = context;
11        self
12    }
13}