pub struct ReasoningEffortHandle { /* private fields */ }Expand description
A live, shared handle to the reasoning effort for the current turn (EVE-595).
Each internal LLM step within a single run_turn re-reads this handle when
building its provider request. A tool (or any in-turn actor) can call
ReasoningEffortHandle::set mid-turn so that subsequent LLM steps in the
same turn use the new effort, without waiting for the next turn.
When the handle holds None, the engine reason phase falls back to
the effort resolved from the latest user message’s controls — so callers
that never set an override see no behavior change.
Implementations§
Source§impl ReasoningEffortHandle
impl ReasoningEffortHandle
Sourcepub fn with_effort(effort: ReasoningEffort) -> Self
pub fn with_effort(effort: ReasoningEffort) -> Self
Create a handle pre-seeded with an effort override.
Sourcepub fn set(&self, effort: Option<ReasoningEffort>)
pub fn set(&self, effort: Option<ReasoningEffort>)
Set (or replace) the override effort. Subsequent LLM steps in the same
turn pick this up. Pass None to clear the override and fall back to the
message-derived effort.
Sourcepub fn get(&self) -> Option<ReasoningEffort>
pub fn get(&self) -> Option<ReasoningEffort>
Read the current override effort, if any.
Trait Implementations§
Source§impl Clone for ReasoningEffortHandle
impl Clone for ReasoningEffortHandle
Source§fn clone(&self) -> ReasoningEffortHandle
fn clone(&self) -> ReasoningEffortHandle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more