pub struct ScriptedToolExecutor { /* private fields */ }Expand description
In-memory scripted tool executor fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
Implementations§
Source§impl ScriptedToolExecutor
impl ScriptedToolExecutor
Sourcepub fn new(executor_ref: ExecutorRef, output: ToolExecutionOutput) -> Self
pub fn new(executor_ref: ExecutorRef, output: ToolExecutionOutput) -> Self
Creates a new testing::tool value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
§Panics
Panics if constructor invariants fail, such as invalid identifier
text or constructor-specific bounds. Use a fallible constructor such as
try_new when one is available for untrusted input.
Sourcepub fn calls(&self) -> Vec<ToolExecutionRequest>
pub fn calls(&self) -> Vec<ToolExecutionRequest>
Operates on in-memory or journal-derived testing::tool state for diagnostics and repair evidence. It does not create a second run loop or product workflow owner.
Sourcepub fn call_count(&self) -> usize
pub fn call_count(&self) -> usize
Returns the call count currently held by this value. This reads deterministic in-memory test state and performs no external I/O.
Trait Implementations§
Source§impl Clone for ScriptedToolExecutor
impl Clone for ScriptedToolExecutor
Source§fn clone(&self) -> ScriptedToolExecutor
fn clone(&self) -> ScriptedToolExecutor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more