pub enum TurnNotice {
ContextCompacted {
model: Option<String>,
},
ContextCompactionFailed {
reason: String,
},
SandboxUnavailable {
message: String,
remedy: String,
},
SandboxAvailable,
LikelySandboxDenial,
HostCachesNotShared {
caches: Vec<String>,
},
}Expand description
Something about how a turn ran that the user should know, reported at most once per occurrence while the turn runs. Hosts show it in the session transcript beside the turn’s answer.
Variants§
ContextCompacted
Earlier turns were summarized into a checkpoint that later requests carry in their place, so the session fits the model’s context window.
ContextCompactionFailed
Summarizing earlier turns failed, so the oldest turns that no longer fit were dropped from the context instead.
Fields
The turn’s shell commands run without the native sandbox, or inside it without a grant this host cannot honor. Every turn offering commands reports it while the condition lasts.
SandboxAvailable
The turn offered shell commands and the native sandbox ran them, so a host can tell the user when an earlier warning no longer applies.
LikelySandboxDenial
A sandboxed command failed with an operating-system denial the sandbox may have caused. The guess is heuristic, since the command’s own output can trigger it; hosts never rerun a command outside the sandbox because of it.
The turn asked to share the host’s dependency caches, but these stay
per session because sharing them could not be confined: a cache that
is a link, lies outside the home directory or on PATH, or whose
lock file has another link.
Trait Implementations§
Source§impl Clone for TurnNotice
impl Clone for TurnNotice
Source§impl Debug for TurnNotice
impl Debug for TurnNotice
impl Eq for TurnNotice
Source§impl PartialEq for TurnNotice
impl PartialEq for TurnNotice
impl StructuralPartialEq for TurnNotice
Auto Trait Implementations§
impl Forget for TurnNotice
impl Freeze for TurnNotice
impl Move for TurnNotice
impl RefUnwindSafe for TurnNotice
impl Send for TurnNotice
impl Sync for TurnNotice
impl Unpin for TurnNotice
impl UnsafeUnpin for TurnNotice
impl UnwindSafe for TurnNotice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.